Documentation
¶
Index ¶
- Constants
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- func (s *STT) Close() error
- 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 ...STTOption)
- type STTOption
- func WithSTTBaseURL(baseURL string) STTOption
- func WithSTTBufferSizeSeconds(seconds float64) STTOption
- func WithSTTDiarization(enabled bool, minSpeakers, maxSpeakers int) STTOption
- func WithSTTEncoding(encoding string) STTOption
- func WithSTTEndpoint(endpoint string) STTOption
- func WithSTTLanguage(language string) STTOption
- func WithSTTModel(modelName string) STTOption
- func WithSTTModelEndpoints(endpoints ...string) STTOption
- func WithSTTModelOptions(options map[string]any) STTOption
- func WithSTTPartialTranscripts(enabled bool) STTOption
- func WithSTTRegionOverride(region any) STTOption
- func WithSTTSampleRate(sampleRate int) STTOption
- func WithSTTVADMinSilenceDurationMS(milliseconds int) STTOption
- func WithSTTVADSpeechPadMS(milliseconds int) STTOption
- func WithSTTVADThreshold(threshold float64) STTOption
- type TTS
- func (t *TTS) Capabilities() tts.TTSCapabilities
- func (t *TTS) Close() error
- 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)
- func (t *TTS) UpdateOptions(opts ...TTSOption)
- type TTSOption
- func WithTTSBaseURL(baseURL string) TTSOption
- func WithTTSEndpoint(endpoint string) TTSOption
- func WithTTSLanguage(language string) TTSOption
- func WithTTSModel(modelName string) TTSOption
- func WithTTSModelOptions(options map[string]any) TTSOption
- func WithTTSRegionOverride(region any) TTSOption
- func WithTTSSampleRate(sampleRate int) TTSOption
- func WithTTSSpeed(speed float64) TTSOption
- func WithTTSVoice(voice string) TTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.slng" PluginVersion = "v0.4.0" PluginPackage = "rtp-agent.plugins.slng" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type STT ¶
type STT struct {
// contains filtered or unexported fields
}
func (*STT) Capabilities ¶
func (s *STT) Capabilities() stt.STTCapabilities
func (*STT) Recognize ¶
func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*STT) UpdateOptions ¶ added in v0.1.0
type STTOption ¶
type STTOption func(*STT)
func WithSTTBaseURL ¶
func WithSTTBufferSizeSeconds ¶ added in v0.1.0
func WithSTTDiarization ¶
func WithSTTEncoding ¶
func WithSTTEndpoint ¶
func WithSTTLanguage ¶
func WithSTTModel ¶
func WithSTTModelEndpoints ¶ added in v0.1.0
func WithSTTModelOptions ¶
func WithSTTRegionOverride ¶
func WithSTTSampleRate ¶ added in v0.1.0
func WithSTTVADMinSilenceDurationMS ¶ added in v0.1.0
func WithSTTVADSpeechPadMS ¶ added in v0.1.0
func WithSTTVADThreshold ¶ added in v0.1.0
type TTS ¶
type TTS struct {
// contains filtered or unexported fields
}
func (*TTS) Capabilities ¶
func (t *TTS) Capabilities() tts.TTSCapabilities
func (*TTS) NumChannels ¶
func (*TTS) SampleRate ¶
func (*TTS) Synthesize ¶
func (*TTS) UpdateOptions ¶ added in v0.1.0
type TTSOption ¶
type TTSOption func(*TTS)
func WithTTSBaseURL ¶
func WithTTSEndpoint ¶
func WithTTSLanguage ¶
func WithTTSModel ¶
func WithTTSModelOptions ¶
func WithTTSRegionOverride ¶
func WithTTSSampleRate ¶
func WithTTSSpeed ¶
func WithTTSVoice ¶
Click to show internal directories.
Click to hide internal directories.