Documentation
¶
Index ¶
- type AsyncAILLM
- type AsyncAITTS
- func (t *AsyncAITTS) Capabilities() tts.TTSCapabilities
- func (t *AsyncAITTS) Label() string
- func (t *AsyncAITTS) NumChannels() int
- func (t *AsyncAITTS) SampleRate() int
- func (t *AsyncAITTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *AsyncAITTS) 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 AsyncAILLM ¶
type AsyncAILLM struct {
// contains filtered or unexported fields
}
func NewAsyncAILLM ¶
func NewAsyncAILLM(apiKey string, model string) *AsyncAILLM
func (*AsyncAILLM) Chat ¶
func (l *AsyncAILLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
type AsyncAITTS ¶
type AsyncAITTS struct {
// contains filtered or unexported fields
}
func NewAsyncAITTS ¶
func NewAsyncAITTS(apiKey string, voice string) *AsyncAITTS
func (*AsyncAITTS) Capabilities ¶
func (t *AsyncAITTS) Capabilities() tts.TTSCapabilities
func (*AsyncAITTS) Label ¶
func (t *AsyncAITTS) Label() string
func (*AsyncAITTS) NumChannels ¶
func (t *AsyncAITTS) NumChannels() int
func (*AsyncAITTS) SampleRate ¶
func (t *AsyncAITTS) SampleRate() int
func (*AsyncAITTS) Stream ¶
func (t *AsyncAITTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*AsyncAITTS) Synthesize ¶
func (t *AsyncAITTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
Click to show internal directories.
Click to hide internal directories.