Documentation
¶
Index ¶
- Constants
- type GradiumSTTdeprecated
- type GradiumSTTOptiondeprecated
- type GradiumSTTUpdateOption
- type GradiumTTSdeprecated
- type GradiumTTSOptiondeprecated
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- func (s *STT) InputSampleRate() uint32
- func (s *STT) Label() string
- func (s *STT) Model() string
- func (s *STT) Provider() string
- func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *STT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- func (s *STT) UpdateOptions(opts ...GradiumSTTUpdateOption)
- type STTOption
- func WithGradiumSTTBufferSizeSeconds(seconds float64) STTOption
- func WithGradiumSTTLanguage(language string) STTOption
- func WithGradiumSTTModelEndpoint(endpoint string) STTOption
- func WithGradiumSTTModelName(modelName string) STTOption
- func WithGradiumSTTTemperature(temperature float64) STTOption
- func WithGradiumSTTVADBucket(bucket *int) STTOption
- func WithGradiumSTTVADFlush(enabled bool) STTOption
- type TTS
- func (t *TTS) Capabilities() tts.TTSCapabilities
- func (t *TTS) Label() string
- func (t *TTS) Model() string
- func (t *TTS) NumChannels() int
- func (t *TTS) Provider() string
- func (t *TTS) SampleRate() int
- func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *TTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type TTSOption
- func WithGradiumTTSJSONConfig(jsonConfig map[string]any) TTSOption
- func WithGradiumTTSModelEndpoint(endpoint string) TTSOption
- func WithGradiumTTSModelName(modelName string) TTSOption
- func WithGradiumTTSPronunciationID(pronunciationID string) TTSOption
- func WithGradiumTTSVoiceID(voiceID string) TTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.gradium" PluginVersion = "v0.4.2" PluginPackage = "rtp-agent.plugins.gradium" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GradiumSTT
deprecated
type GradiumSTT = STT
Deprecated: use STT.
type GradiumSTTOption
deprecated
added in
v0.0.15
type GradiumSTTOption = STTOption
Deprecated: use STTOption.
type GradiumSTTUpdateOption ¶ added in v0.1.6
type GradiumSTTUpdateOption func(*gradiumSTTUpdateOptions)
func WithGradiumSTTUpdateBufferSizeSeconds ¶ added in v0.1.6
func WithGradiumSTTUpdateBufferSizeSeconds(seconds float64) GradiumSTTUpdateOption
type GradiumTTS
deprecated
type GradiumTTS = TTS
Deprecated: use TTS.
type GradiumTTSOption
deprecated
added in
v0.0.15
type GradiumTTSOption = TTSOption
Deprecated: use TTSOption.
type STT ¶ added in v0.4.2
type STT struct {
// contains filtered or unexported fields
}
func NewGradiumSTT
deprecated
func (*STT) Capabilities ¶ added in v0.4.2
func (s *STT) Capabilities() stt.STTCapabilities
func (*STT) InputSampleRate ¶ added in v0.4.2
func (*STT) Recognize ¶ added in v0.4.2
func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*STT) UpdateOptions ¶ added in v0.4.2
func (s *STT) UpdateOptions(opts ...GradiumSTTUpdateOption)
type STTOption ¶ added in v0.4.2
type STTOption func(*STT)
func WithGradiumSTTBufferSizeSeconds ¶ added in v0.0.15
func WithGradiumSTTLanguage ¶ added in v0.0.15
func WithGradiumSTTModelEndpoint ¶ added in v0.0.15
func WithGradiumSTTModelName ¶ added in v0.0.15
func WithGradiumSTTTemperature ¶ added in v0.0.15
func WithGradiumSTTVADBucket ¶ added in v0.0.15
func WithGradiumSTTVADFlush ¶ added in v0.0.15
type TTS ¶ added in v0.4.2
type TTS struct {
// contains filtered or unexported fields
}
func NewGradiumTTS
deprecated
func (*TTS) Capabilities ¶ added in v0.4.2
func (t *TTS) Capabilities() tts.TTSCapabilities
func (*TTS) NumChannels ¶ added in v0.4.2
func (*TTS) SampleRate ¶ added in v0.4.2
func (*TTS) Synthesize ¶ added in v0.4.2
type TTSOption ¶ added in v0.4.2
type TTSOption func(*TTS)
func WithGradiumTTSJSONConfig ¶ added in v0.0.15
func WithGradiumTTSModelEndpoint ¶ added in v0.0.15
func WithGradiumTTSModelName ¶ added in v0.0.15
func WithGradiumTTSPronunciationID ¶ added in v0.0.15
func WithGradiumTTSVoiceID ¶ added in v0.0.15
Click to show internal directories.
Click to hide internal directories.