Documentation
¶
Index ¶
- Constants
- type GoogleLLM
- type GoogleSTT
- func (s *GoogleSTT) Capabilities() stt.STTCapabilities
- func (s *GoogleSTT) Label() string
- func (s *GoogleSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *GoogleSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type GoogleSTTOption
- func WithGoogleSTTModel(model string) GoogleSTTOption
- func WithGoogleSTTProfanityFilter(profanityFilter bool) GoogleSTTOption
- func WithGoogleSTTPunctuate(punctuate bool) GoogleSTTOption
- func WithGoogleSTTSampleRate(sampleRate int32) GoogleSTTOption
- func WithGoogleSTTSpokenPunctuation(spokenPunctuation bool) GoogleSTTOption
- type GoogleTTS
- func (t *GoogleTTS) Capabilities() tts.TTSCapabilities
- func (t *GoogleTTS) Label() string
- func (t *GoogleTTS) NumChannels() int
- func (t *GoogleTTS) SampleRate() int
- func (t *GoogleTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *GoogleTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type GoogleTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.google" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.google" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleLLM ¶
type GoogleLLM struct {
// contains filtered or unexported fields
}
type GoogleSTT ¶
type GoogleSTT struct {
// contains filtered or unexported fields
}
func NewGoogleSTT ¶
func NewGoogleSTT(credentialsFile string, providerOpts ...GoogleSTTOption) (*GoogleSTT, error)
NewGoogleSTT creates a new STT client using Application Default Credentials, or by providing a path to a credentials JSON file.
func (*GoogleSTT) Capabilities ¶
func (s *GoogleSTT) Capabilities() stt.STTCapabilities
type GoogleSTTOption ¶ added in v0.0.15
type GoogleSTTOption func(*GoogleSTT)
func WithGoogleSTTModel ¶ added in v0.0.15
func WithGoogleSTTModel(model string) GoogleSTTOption
func WithGoogleSTTProfanityFilter ¶ added in v0.0.15
func WithGoogleSTTProfanityFilter(profanityFilter bool) GoogleSTTOption
func WithGoogleSTTPunctuate ¶ added in v0.0.15
func WithGoogleSTTPunctuate(punctuate bool) GoogleSTTOption
func WithGoogleSTTSampleRate ¶ added in v0.0.15
func WithGoogleSTTSampleRate(sampleRate int32) GoogleSTTOption
func WithGoogleSTTSpokenPunctuation ¶ added in v0.0.15
func WithGoogleSTTSpokenPunctuation(spokenPunctuation bool) GoogleSTTOption
type GoogleTTS ¶
type GoogleTTS struct {
// contains filtered or unexported fields
}
func NewGoogleTTS ¶
func NewGoogleTTS(credentialsFile string, ttsOpts ...GoogleTTSOption) (*GoogleTTS, error)
NewGoogleTTS creates a new TTS client using Application Default Credentials, or by providing a path to a credentials JSON file.
func (*GoogleTTS) Capabilities ¶
func (t *GoogleTTS) Capabilities() tts.TTSCapabilities
func (*GoogleTTS) NumChannels ¶
func (*GoogleTTS) SampleRate ¶
func (*GoogleTTS) Synthesize ¶
type GoogleTTSOption ¶ added in v0.0.15
type GoogleTTSOption func(*googleTTSConfig)
func WithGoogleTTSLanguage ¶ added in v0.0.15
func WithGoogleTTSLanguage(language string) GoogleTTSOption
func WithGoogleTTSModel ¶ added in v0.0.15
func WithGoogleTTSModel(model string) GoogleTTSOption
func WithGoogleTTSVoice ¶ added in v0.0.15
func WithGoogleTTSVoice(voice string) GoogleTTSOption
Click to show internal directories.
Click to hide internal directories.