baseten

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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

func NewBasetenLLM(apiKey string, model string) (*LLM, error)

Deprecated: use NewLLM.

func NewLLM added in v0.4.2

func NewLLM(apiKey string, model string) (*LLM, error)

func (*LLM) Chat added in v0.4.2

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

func (*LLM) Model added in v0.4.2

func (l *LLM) Model() string

func (*LLM) Provider added in v0.4.2

func (l *LLM) Provider() string

type STT added in v0.4.2

type STT struct {
	// contains filtered or unexported fields
}

func NewBasetenSTT deprecated

func NewBasetenSTT(apiKey string, model string, opts ...STTOption) (*STT, error)

Deprecated: use NewSTT.

func NewSTT added in v0.4.2

func NewSTT(apiKey string, model string, opts ...STTOption) (*STT, error)

func (*STT) Capabilities added in v0.4.2

func (s *STT) Capabilities() stt.STTCapabilities

func (*STT) Close added in v0.4.2

func (s *STT) Close() error

func (*STT) InputSampleRate added in v0.4.2

func (s *STT) InputSampleRate() uint32

func (*STT) Label added in v0.4.2

func (s *STT) Label() string

func (*STT) Model added in v0.4.2

func (s *STT) Model() string

func (*STT) Provider added in v0.4.2

func (s *STT) Provider() string

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) Stream added in v0.4.2

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

func (*STT) UpdateOptions added in v0.4.2

func (s *STT) UpdateOptions(opts ...STTOption)

type STTOption added in v0.4.2

type STTOption func(*STT)

func WithBasetenSTTBufferSizeSeconds added in v0.0.15

func WithBasetenSTTBufferSizeSeconds(seconds float64) STTOption

func WithBasetenSTTChainID added in v0.0.15

func WithBasetenSTTChainID(chainID string) STTOption

func WithBasetenSTTEncoding added in v0.0.15

func WithBasetenSTTEncoding(encoding string) STTOption

func WithBasetenSTTLanguage added in v0.0.15

func WithBasetenSTTLanguage(language string) STTOption

func WithBasetenSTTModelEndpoint added in v0.0.15

func WithBasetenSTTModelEndpoint(endpoint string) STTOption

func WithBasetenSTTSampleRate added in v0.0.15

func WithBasetenSTTSampleRate(sampleRate int) STTOption

func WithBasetenSTTVADThreshold added in v0.0.15

func WithBasetenSTTVADThreshold(threshold float64) STTOption

type TTS added in v0.4.2

type TTS struct {
	// contains filtered or unexported fields
}

func NewBasetenTTS deprecated

func NewBasetenTTS(apiKey string, model string, opts ...TTSOption) (*TTS, error)

Deprecated: use NewTTS.

func NewTTS added in v0.4.2

func NewTTS(apiKey string, model string, opts ...TTSOption) (*TTS, error)

func (*TTS) Capabilities added in v0.4.2

func (t *TTS) Capabilities() tts.TTSCapabilities

func (*TTS) Close added in v0.4.2

func (t *TTS) Close() error

func (*TTS) Label added in v0.4.2

func (t *TTS) Label() string

func (*TTS) Model added in v0.4.2

func (t *TTS) Model() string

func (*TTS) NumChannels added in v0.4.2

func (t *TTS) NumChannels() int

func (*TTS) Provider added in v0.4.2

func (t *TTS) Provider() string

func (*TTS) SampleRate added in v0.4.2

func (t *TTS) SampleRate() int

func (*TTS) Stream added in v0.4.2

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

func (*TTS) Synthesize added in v0.4.2

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

func (*TTS) UpdateOptions added in v0.4.2

func (t *TTS) UpdateOptions(opts ...TTSOption)

type TTSOption added in v0.4.2

type TTSOption func(*TTS)

func WithBasetenTTSBufferSize added in v0.0.15

func WithBasetenTTSBufferSize(bufferSize int) TTSOption

func WithBasetenTTSLanguage added in v0.0.15

func WithBasetenTTSLanguage(language string) TTSOption

func WithBasetenTTSMaxTokens added in v0.0.15

func WithBasetenTTSMaxTokens(maxTokens int) TTSOption

func WithBasetenTTSModelEndpoint added in v0.0.15

func WithBasetenTTSModelEndpoint(endpoint string) TTSOption

func WithBasetenTTSTemperature added in v0.0.15

func WithBasetenTTSTemperature(temperature float64) TTSOption

func WithBasetenTTSVoice added in v0.0.15

func WithBasetenTTSVoice(voice string) TTSOption

Jump to

Keyboard shortcuts

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