telnyx

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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

func NewTelnyxLLM(apiKey string, model string) *TelnyxLLM

func (*TelnyxLLM) BaseURL added in v0.0.17

func (l *TelnyxLLM) BaseURL() string

func (*TelnyxLLM) Chat

func (l *TelnyxLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)

func (*TelnyxLLM) Model added in v0.0.17

func (l *TelnyxLLM) Model() string

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

func (*TelnyxSTT) Label

func (s *TelnyxSTT) Label() string

func (*TelnyxSTT) Model added in v0.0.18

func (s *TelnyxSTT) Model() string

func (*TelnyxSTT) Provider added in v0.0.18

func (s *TelnyxSTT) Provider() string

func (*TelnyxSTT) Recognize

func (s *TelnyxSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)

func (*TelnyxSTT) Stream

func (s *TelnyxSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)

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) Label

func (t *TelnyxTTS) Label() string

func (*TelnyxTTS) Model added in v0.0.18

func (t *TelnyxTTS) Model() string

func (*TelnyxTTS) NumChannels

func (t *TelnyxTTS) NumChannels() int

func (*TelnyxTTS) Provider added in v0.0.18

func (t *TelnyxTTS) Provider() string

func (*TelnyxTTS) SampleRate

func (t *TelnyxTTS) SampleRate() int

func (*TelnyxTTS) Stream

func (t *TelnyxTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)

func (*TelnyxTTS) Synthesize

func (t *TelnyxTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)

type TelnyxTTSOption added in v0.0.15

type TelnyxTTSOption func(*TelnyxTTS)

func WithTelnyxTTSBaseURL added in v0.0.15

func WithTelnyxTTSBaseURL(baseURL string) TelnyxTTSOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL