asyncai

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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