Documentation
¶
Index ¶
- Constants
- type TelnyxLLM
- type TelnyxSTT
- func (s *TelnyxSTT) Capabilities() stt.STTCapabilities
- func (s *TelnyxSTT) Label() string
- func (s *TelnyxSTT) Model() string
- func (s *TelnyxSTT) Provider() string
- func (s *TelnyxSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *TelnyxSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type TelnyxSTTOption
- type TelnyxTTS
- func (t *TelnyxTTS) Capabilities() tts.TTSCapabilities
- func (t *TelnyxTTS) Label() string
- func (t *TelnyxTTS) Model() string
- func (t *TelnyxTTS) NumChannels() int
- func (t *TelnyxTTS) Provider() string
- func (t *TelnyxTTS) SampleRate() int
- func (t *TelnyxTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *TelnyxTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type TelnyxTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.telnyx" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.telnyx" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelnyxLLM ¶
type TelnyxLLM struct {
// contains filtered or unexported fields
}
func NewTelnyxLLM ¶
type TelnyxSTT ¶
type TelnyxSTT struct {
// contains filtered or unexported fields
}
func NewTelnyxSTT ¶
func NewTelnyxSTT(apiKey string, opts ...TelnyxSTTOption) *TelnyxSTT
func (*TelnyxSTT) Capabilities ¶
func (s *TelnyxSTT) Capabilities() stt.STTCapabilities
type TelnyxSTTOption ¶ added in v0.0.15
type TelnyxSTTOption func(*TelnyxSTT)
func WithTelnyxSTTBaseURL ¶ added in v0.0.15
func WithTelnyxSTTBaseURL(baseURL string) TelnyxSTTOption
func WithTelnyxSTTLanguage ¶ added in v0.0.15
func WithTelnyxSTTLanguage(language string) TelnyxSTTOption
func WithTelnyxSTTSampleRate ¶ added in v0.0.15
func WithTelnyxSTTSampleRate(sampleRate int) TelnyxSTTOption
func WithTelnyxSTTTranscriptionEngine ¶ added in v0.0.15
func WithTelnyxSTTTranscriptionEngine(engine string) TelnyxSTTOption
type TelnyxTTS ¶
type TelnyxTTS struct {
// contains filtered or unexported fields
}
func NewTelnyxTTS ¶
func NewTelnyxTTS(apiKey string, voice string, opts ...TelnyxTTSOption) *TelnyxTTS
func (*TelnyxTTS) Capabilities ¶
func (t *TelnyxTTS) Capabilities() tts.TTSCapabilities
func (*TelnyxTTS) NumChannels ¶
func (*TelnyxTTS) SampleRate ¶
func (*TelnyxTTS) Synthesize ¶
type TelnyxTTSOption ¶ added in v0.0.15
type TelnyxTTSOption func(*TelnyxTTS)
func WithTelnyxTTSBaseURL ¶ added in v0.0.15
func WithTelnyxTTSBaseURL(baseURL string) TelnyxTTSOption
Click to show internal directories.
Click to hide internal directories.