Documentation
¶
Index ¶
- Constants
- type BasetenLLMdeprecated
- type BasetenSTTdeprecated
- type BasetenSTTOptiondeprecated
- type BasetenTTSdeprecated
- type BasetenTTSOptiondeprecated
- type LLM
- type STT
- func (s *STT) Capabilities() stt.STTCapabilities
- func (s *STT) Close() error
- func (s *STT) InputSampleRate() uint32
- 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)
- func (s *STT) UpdateOptions(opts ...STTOption)
- type STTOption
- func WithBasetenSTTBufferSizeSeconds(seconds float64) STTOption
- func WithBasetenSTTChainID(chainID string) STTOption
- func WithBasetenSTTEncoding(encoding string) STTOption
- func WithBasetenSTTLanguage(language string) STTOption
- func WithBasetenSTTModelEndpoint(endpoint string) STTOption
- func WithBasetenSTTSampleRate(sampleRate int) STTOption
- func WithBasetenSTTVADThreshold(threshold float64) STTOption
- type TTS
- func (t *TTS) Capabilities() tts.TTSCapabilities
- func (t *TTS) Close() error
- 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)
- func (t *TTS) UpdateOptions(opts ...TTSOption)
- type TTSOption
- func WithBasetenTTSBufferSize(bufferSize int) TTSOption
- func WithBasetenTTSLanguage(language string) TTSOption
- func WithBasetenTTSMaxTokens(maxTokens int) TTSOption
- func WithBasetenTTSModelEndpoint(endpoint string) TTSOption
- func WithBasetenTTSTemperature(temperature float64) TTSOption
- func WithBasetenTTSVoice(voice string) TTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.baseten" PluginVersion = "v0.4.2" PluginPackage = "rtp-agent.plugins.baseten" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasetenLLM
deprecated
type BasetenLLM = LLM
Deprecated: use LLM.
type BasetenSTT
deprecated
type BasetenSTT = STT
Deprecated: use STT.
type BasetenSTTOption
deprecated
added in
v0.0.15
type BasetenSTTOption = STTOption
Deprecated: use STTOption.
type BasetenTTS
deprecated
type BasetenTTS = TTS
Deprecated: use TTS.
type BasetenTTSOption
deprecated
added in
v0.0.15
type BasetenTTSOption = TTSOption
Deprecated: use TTSOption.
type LLM ¶ added in v0.4.2
type LLM struct {
// contains filtered or unexported fields
}
func NewBasetenLLM
deprecated
type STT ¶ added in v0.4.2
type STT struct {
// contains filtered or unexported fields
}
func (*STT) Capabilities ¶ added in v0.4.2
func (s *STT) Capabilities() stt.STTCapabilities
func (*STT) InputSampleRate ¶ added in v0.4.2
func (*STT) Recognize ¶ added in v0.4.2
func (s *STT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*STT) UpdateOptions ¶ added in v0.4.2
type STTOption ¶ added in v0.4.2
type STTOption func(*STT)
func WithBasetenSTTBufferSizeSeconds ¶ added in v0.0.15
func WithBasetenSTTChainID ¶ added in v0.0.15
func WithBasetenSTTEncoding ¶ added in v0.0.15
func WithBasetenSTTLanguage ¶ added in v0.0.15
func WithBasetenSTTModelEndpoint ¶ added in v0.0.15
func WithBasetenSTTSampleRate ¶ added in v0.0.15
func WithBasetenSTTVADThreshold ¶ added in v0.0.15
type TTS ¶ added in v0.4.2
type TTS struct {
// contains filtered or unexported fields
}
func (*TTS) Capabilities ¶ added in v0.4.2
func (t *TTS) Capabilities() tts.TTSCapabilities
func (*TTS) NumChannels ¶ added in v0.4.2
func (*TTS) SampleRate ¶ added in v0.4.2
func (*TTS) Synthesize ¶ added in v0.4.2
func (*TTS) UpdateOptions ¶ added in v0.4.2
type TTSOption ¶ added in v0.4.2
type TTSOption func(*TTS)
func WithBasetenTTSBufferSize ¶ added in v0.0.15
func WithBasetenTTSLanguage ¶ added in v0.0.15
func WithBasetenTTSMaxTokens ¶ added in v0.0.15
func WithBasetenTTSModelEndpoint ¶ added in v0.0.15
func WithBasetenTTSTemperature ¶ added in v0.0.15
func WithBasetenTTSVoice ¶ added in v0.0.15
Click to show internal directories.
Click to hide internal directories.