Documentation
¶
Index ¶
- Constants
- type Option
- func WithBaseURL(baseURL string) Option
- func WithContainer(container string) Option
- func WithEncoding(encoding string) Option
- func WithLanguage(language string) Option
- func WithModel(model string) Option
- func WithNumChannels(numChannels int) Option
- func WithSampleRate(sampleRate int) Option
- func WithSampleWidth(sampleWidth int) Option
- func WithVoice(voice string) Option
- 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
- 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)
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.gnani" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.gnani" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*TTS)
func WithBaseURL ¶
func WithContainer ¶
func WithEncoding ¶
func WithLanguage ¶
func WithNumChannels ¶
func WithSampleRate ¶
func WithSampleWidth ¶
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 WithSTTLanguage ¶
func WithSTTOrganizationID ¶
func WithSTTSampleRate ¶
func WithSTTUserID ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.