Documentation
¶
Index ¶
- Constants
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- 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)
- type STTOption
- func WithSTTBaseURL(baseURL string) 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 WithSTTModelOptions(options map[string]any) STTOption
- func WithSTTPartialTranscripts(enabled bool) STTOption
- func WithSTTRegionOverride(region any) 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 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 = "1.5.15" 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
type STTOption ¶
type STTOption func(*STT)
func WithSTTBaseURL ¶
func WithSTTDiarization ¶
func WithSTTEncoding ¶
func WithSTTEndpoint ¶
func WithSTTLanguage ¶
func WithSTTModel ¶
func WithSTTModelOptions ¶
func WithSTTRegionOverride ¶
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 ¶
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.