Documentation
¶
Index ¶
- Constants
- type GoogleLLM
- type GoogleSTT
- func (s *GoogleSTT) Capabilities() stt.STTCapabilities
- func (s *GoogleSTT) Close() error
- func (s *GoogleSTT) InputSampleRate() uint32
- 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 WithGoogleSTTMinConfidenceThreshold(threshold float64) 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
- func WithGoogleSTTVoiceActivityEvents(enabled bool) GoogleSTTOption
- func WithGoogleSTTWordConfidence(enabled bool) GoogleSTTOption
- type GoogleTTS
- func (t *GoogleTTS) Capabilities() tts.TTSCapabilities
- func (t *GoogleTTS) Close() error
- func (t *GoogleTTS) Label() string
- func (t *GoogleTTS) Model() string
- func (t *GoogleTTS) NumChannels() int
- func (t *GoogleTTS) Provider() string
- 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)
- func (t *GoogleTTS) UpdateOptions(opts ...GoogleTTSOption)
- type GoogleTTSOption
- func WithGoogleTTSEffectsProfileID(profileID string) GoogleTTSOption
- func WithGoogleTTSLanguage(language string) GoogleTTSOption
- func WithGoogleTTSModel(model string) GoogleTTSOption
- func WithGoogleTTSPitch(pitch float64) GoogleTTSOption
- func WithGoogleTTSPrompt(prompt string) GoogleTTSOption
- func WithGoogleTTSSpeakingRate(rate float64) GoogleTTSOption
- func WithGoogleTTSVoice(voice string) GoogleTTSOption
- func WithGoogleTTSVolumeGainDB(volumeGainDB float64) GoogleTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.google" PluginVersion = "v0.1.3" 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
func (*GoogleSTT) InputSampleRate ¶ added in v0.1.0
type GoogleSTTOption ¶ added in v0.0.15
type GoogleSTTOption func(*GoogleSTT)
func WithGoogleSTTMinConfidenceThreshold ¶ added in v0.1.0
func WithGoogleSTTMinConfidenceThreshold(threshold float64) GoogleSTTOption
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
func WithGoogleSTTVoiceActivityEvents ¶ added in v0.1.0
func WithGoogleSTTVoiceActivityEvents(enabled bool) GoogleSTTOption
func WithGoogleSTTWordConfidence ¶ added in v0.1.0
func WithGoogleSTTWordConfidence(enabled 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 ¶
func (*GoogleTTS) UpdateOptions ¶ added in v0.1.0
func (t *GoogleTTS) UpdateOptions(opts ...GoogleTTSOption)
type GoogleTTSOption ¶ added in v0.0.15
type GoogleTTSOption func(*googleTTSConfig)
func WithGoogleTTSEffectsProfileID ¶ added in v0.1.0
func WithGoogleTTSEffectsProfileID(profileID string) GoogleTTSOption
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 WithGoogleTTSPitch ¶ added in v0.1.0
func WithGoogleTTSPitch(pitch float64) GoogleTTSOption
func WithGoogleTTSPrompt ¶ added in v0.1.0
func WithGoogleTTSPrompt(prompt string) GoogleTTSOption
func WithGoogleTTSSpeakingRate ¶ added in v0.1.0
func WithGoogleTTSSpeakingRate(rate float64) GoogleTTSOption
func WithGoogleTTSVoice ¶ added in v0.0.15
func WithGoogleTTSVoice(voice string) GoogleTTSOption
func WithGoogleTTSVolumeGainDB ¶ added in v0.1.0
func WithGoogleTTSVolumeGainDB(volumeGainDB float64) GoogleTTSOption
Click to show internal directories.
Click to hide internal directories.