Documentation
¶
Index ¶
- Constants
- type SmallestAILLM
- type SmallestAISTT
- func (s *SmallestAISTT) Capabilities() stt.STTCapabilities
- func (s *SmallestAISTT) Label() string
- func (s *SmallestAISTT) Model() string
- func (s *SmallestAISTT) Provider() string
- func (s *SmallestAISTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *SmallestAISTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type SmallestAISTTOption
- func WithSmallestAISTTBaseURL(baseURL string) SmallestAISTTOption
- func WithSmallestAISTTDiarize(enabled bool) SmallestAISTTOption
- func WithSmallestAISTTEOUTimeoutMS(timeoutMS int) SmallestAISTTOption
- func WithSmallestAISTTEncoding(encoding string) SmallestAISTTOption
- func WithSmallestAISTTLanguage(language string) SmallestAISTTOption
- func WithSmallestAISTTModel(model string) SmallestAISTTOption
- func WithSmallestAISTTSampleRate(sampleRate int) SmallestAISTTOption
- func WithSmallestAISTTWordTimestamps(enabled bool) SmallestAISTTOption
- type SmallestAITTS
- func (t *SmallestAITTS) Capabilities() tts.TTSCapabilities
- func (t *SmallestAITTS) Label() string
- func (t *SmallestAITTS) Model() string
- func (t *SmallestAITTS) NumChannels() int
- func (t *SmallestAITTS) Provider() string
- func (t *SmallestAITTS) SampleRate() int
- func (t *SmallestAITTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *SmallestAITTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type SmallestAITTSOption
- func WithSmallestAITTSBaseURL(baseURL string) SmallestAITTSOption
- func WithSmallestAITTSLanguage(language string) SmallestAITTSOption
- func WithSmallestAITTSModel(model string) SmallestAITTSOption
- func WithSmallestAITTSOutputFormat(outputFormat string) SmallestAITTSOption
- func WithSmallestAITTSSampleRate(sampleRate int) SmallestAITTSOption
- func WithSmallestAITTSSpeed(speed float64) SmallestAITTSOption
- func WithSmallestAITTSVoice(voice string) SmallestAITTSOption
- func WithSmallestAITTSWebsocketURL(wsURL string) SmallestAITTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.smallestai" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.smallestai" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SmallestAILLM ¶
type SmallestAILLM struct {
// contains filtered or unexported fields
}
func NewSmallestAILLM ¶
func NewSmallestAILLM(apiKey string, model string) *SmallestAILLM
func (*SmallestAILLM) Chat ¶
func (l *SmallestAILLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
type SmallestAISTT ¶ added in v0.0.15
type SmallestAISTT struct {
// contains filtered or unexported fields
}
func NewSmallestAISTT ¶ added in v0.0.15
func NewSmallestAISTT(apiKey string, opts ...SmallestAISTTOption) *SmallestAISTT
func (*SmallestAISTT) Capabilities ¶ added in v0.0.15
func (s *SmallestAISTT) Capabilities() stt.STTCapabilities
func (*SmallestAISTT) Label ¶ added in v0.0.15
func (s *SmallestAISTT) Label() string
func (*SmallestAISTT) Model ¶ added in v0.0.18
func (s *SmallestAISTT) Model() string
func (*SmallestAISTT) Provider ¶ added in v0.0.18
func (s *SmallestAISTT) Provider() string
func (*SmallestAISTT) Recognize ¶ added in v0.0.15
func (s *SmallestAISTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*SmallestAISTT) Stream ¶ added in v0.0.15
func (s *SmallestAISTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
type SmallestAISTTOption ¶ added in v0.0.15
type SmallestAISTTOption func(*SmallestAISTT)
func WithSmallestAISTTBaseURL ¶ added in v0.0.15
func WithSmallestAISTTBaseURL(baseURL string) SmallestAISTTOption
func WithSmallestAISTTDiarize ¶ added in v0.0.15
func WithSmallestAISTTDiarize(enabled bool) SmallestAISTTOption
func WithSmallestAISTTEOUTimeoutMS ¶ added in v0.0.15
func WithSmallestAISTTEOUTimeoutMS(timeoutMS int) SmallestAISTTOption
func WithSmallestAISTTEncoding ¶ added in v0.0.15
func WithSmallestAISTTEncoding(encoding string) SmallestAISTTOption
func WithSmallestAISTTLanguage ¶ added in v0.0.15
func WithSmallestAISTTLanguage(language string) SmallestAISTTOption
func WithSmallestAISTTModel ¶ added in v0.0.15
func WithSmallestAISTTModel(model string) SmallestAISTTOption
func WithSmallestAISTTSampleRate ¶ added in v0.0.15
func WithSmallestAISTTSampleRate(sampleRate int) SmallestAISTTOption
func WithSmallestAISTTWordTimestamps ¶ added in v0.0.15
func WithSmallestAISTTWordTimestamps(enabled bool) SmallestAISTTOption
type SmallestAITTS ¶
type SmallestAITTS struct {
// contains filtered or unexported fields
}
func NewSmallestAITTS ¶
func NewSmallestAITTS(apiKey string, voice string, opts ...SmallestAITTSOption) *SmallestAITTS
func (*SmallestAITTS) Capabilities ¶
func (t *SmallestAITTS) Capabilities() tts.TTSCapabilities
func (*SmallestAITTS) Label ¶
func (t *SmallestAITTS) Label() string
func (*SmallestAITTS) Model ¶ added in v0.0.18
func (t *SmallestAITTS) Model() string
func (*SmallestAITTS) NumChannels ¶
func (t *SmallestAITTS) NumChannels() int
func (*SmallestAITTS) Provider ¶ added in v0.0.18
func (t *SmallestAITTS) Provider() string
func (*SmallestAITTS) SampleRate ¶
func (t *SmallestAITTS) SampleRate() int
func (*SmallestAITTS) Stream ¶
func (t *SmallestAITTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*SmallestAITTS) Synthesize ¶
func (t *SmallestAITTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
type SmallestAITTSOption ¶ added in v0.0.15
type SmallestAITTSOption func(*SmallestAITTS)
func WithSmallestAITTSBaseURL ¶ added in v0.0.15
func WithSmallestAITTSBaseURL(baseURL string) SmallestAITTSOption
func WithSmallestAITTSLanguage ¶ added in v0.0.15
func WithSmallestAITTSLanguage(language string) SmallestAITTSOption
func WithSmallestAITTSModel ¶ added in v0.0.15
func WithSmallestAITTSModel(model string) SmallestAITTSOption
func WithSmallestAITTSOutputFormat ¶ added in v0.0.15
func WithSmallestAITTSOutputFormat(outputFormat string) SmallestAITTSOption
func WithSmallestAITTSSampleRate ¶ added in v0.0.15
func WithSmallestAITTSSampleRate(sampleRate int) SmallestAITTSOption
func WithSmallestAITTSSpeed ¶ added in v0.0.15
func WithSmallestAITTSSpeed(speed float64) SmallestAITTSOption
func WithSmallestAITTSVoice ¶ added in v0.0.15
func WithSmallestAITTSVoice(voice string) SmallestAITTSOption
func WithSmallestAITTSWebsocketURL ¶ added in v0.0.15
func WithSmallestAITTSWebsocketURL(wsURL string) SmallestAITTSOption
Click to show internal directories.
Click to hide internal directories.