Documentation
¶
Index ¶
- type BasetenLLM
- type BasetenSTT
- func (s *BasetenSTT) Capabilities() stt.STTCapabilities
- func (s *BasetenSTT) Label() string
- func (s *BasetenSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *BasetenSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type BasetenTTS
- func (t *BasetenTTS) Capabilities() tts.TTSCapabilities
- func (t *BasetenTTS) Label() string
- func (t *BasetenTTS) NumChannels() int
- func (t *BasetenTTS) SampleRate() int
- func (t *BasetenTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *BasetenTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasetenLLM ¶
type BasetenLLM struct {
// contains filtered or unexported fields
}
func NewBasetenLLM ¶
func NewBasetenLLM(apiKey string, model string) *BasetenLLM
func (*BasetenLLM) Chat ¶
func (l *BasetenLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
type BasetenSTT ¶
type BasetenSTT struct {
// contains filtered or unexported fields
}
func NewBasetenSTT ¶
func NewBasetenSTT(apiKey string, model string) *BasetenSTT
func (*BasetenSTT) Capabilities ¶
func (s *BasetenSTT) Capabilities() stt.STTCapabilities
func (*BasetenSTT) Label ¶
func (s *BasetenSTT) Label() string
func (*BasetenSTT) Recognize ¶
func (s *BasetenSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*BasetenSTT) Stream ¶
func (s *BasetenSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
type BasetenTTS ¶
type BasetenTTS struct {
// contains filtered or unexported fields
}
func NewBasetenTTS ¶
func NewBasetenTTS(apiKey string, model string) *BasetenTTS
func (*BasetenTTS) Capabilities ¶
func (t *BasetenTTS) Capabilities() tts.TTSCapabilities
func (*BasetenTTS) Label ¶
func (t *BasetenTTS) Label() string
func (*BasetenTTS) NumChannels ¶
func (t *BasetenTTS) NumChannels() int
func (*BasetenTTS) SampleRate ¶
func (t *BasetenTTS) SampleRate() int
func (*BasetenTTS) Stream ¶
func (t *BasetenTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*BasetenTTS) Synthesize ¶
func (t *BasetenTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
Click to show internal directories.
Click to hide internal directories.