Documentation
¶
Index ¶
- type GradiumLLM
- type GradiumSTT
- func (s *GradiumSTT) Capabilities() stt.STTCapabilities
- func (s *GradiumSTT) Label() string
- func (s *GradiumSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *GradiumSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type GradiumTTS
- func (t *GradiumTTS) Capabilities() tts.TTSCapabilities
- func (t *GradiumTTS) Label() string
- func (t *GradiumTTS) NumChannels() int
- func (t *GradiumTTS) SampleRate() int
- func (t *GradiumTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *GradiumTTS) 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 GradiumLLM ¶
type GradiumLLM struct {
// contains filtered or unexported fields
}
func NewGradiumLLM ¶
func NewGradiumLLM(apiKey string, model string) *GradiumLLM
func (*GradiumLLM) Chat ¶
func (l *GradiumLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
type GradiumSTT ¶
type GradiumSTT struct {
// contains filtered or unexported fields
}
func NewGradiumSTT ¶
func NewGradiumSTT(apiKey string) *GradiumSTT
func (*GradiumSTT) Capabilities ¶
func (s *GradiumSTT) Capabilities() stt.STTCapabilities
func (*GradiumSTT) Label ¶
func (s *GradiumSTT) Label() string
func (*GradiumSTT) Recognize ¶
func (s *GradiumSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*GradiumSTT) Stream ¶
func (s *GradiumSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
type GradiumTTS ¶
type GradiumTTS struct {
// contains filtered or unexported fields
}
func NewGradiumTTS ¶
func NewGradiumTTS(apiKey string, voice string) *GradiumTTS
func (*GradiumTTS) Capabilities ¶
func (t *GradiumTTS) Capabilities() tts.TTSCapabilities
func (*GradiumTTS) Label ¶
func (t *GradiumTTS) Label() string
func (*GradiumTTS) NumChannels ¶
func (t *GradiumTTS) NumChannels() int
func (*GradiumTTS) SampleRate ¶
func (t *GradiumTTS) SampleRate() int
func (*GradiumTTS) Stream ¶
func (t *GradiumTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*GradiumTTS) Synthesize ¶
func (t *GradiumTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
Click to show internal directories.
Click to hide internal directories.