asyncai

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginTitle   = "rtp-agent.plugins.asyncai"
	PluginVersion = "v0.1.2"
	PluginPackage = "rtp-agent.plugins.asyncai"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncAITTS

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

func NewAsyncAITTS

func NewAsyncAITTS(apiKey string, voice string, opts ...AsyncAITTSOption) *AsyncAITTS

func (*AsyncAITTS) Capabilities

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

func (*AsyncAITTS) Close added in v0.1.0

func (t *AsyncAITTS) Close() error

func (*AsyncAITTS) Label

func (t *AsyncAITTS) Label() string

func (*AsyncAITTS) Model added in v0.0.18

func (t *AsyncAITTS) Model() string

func (*AsyncAITTS) NumChannels

func (t *AsyncAITTS) NumChannels() int

func (*AsyncAITTS) Provider added in v0.0.18

func (t *AsyncAITTS) Provider() string

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)

func (*AsyncAITTS) UpdateOptions added in v0.1.0

func (t *AsyncAITTS) UpdateOptions(opts ...AsyncAITTSOption)

type AsyncAITTSOption added in v0.0.15

type AsyncAITTSOption func(*AsyncAITTS)

func WithAsyncAITTSBaseURL added in v0.0.15

func WithAsyncAITTSBaseURL(baseURL string) AsyncAITTSOption

func WithAsyncAITTSEncoding added in v0.0.15

func WithAsyncAITTSEncoding(encoding string) AsyncAITTSOption

func WithAsyncAITTSLanguage added in v0.0.15

func WithAsyncAITTSLanguage(language string) AsyncAITTSOption

func WithAsyncAITTSModel added in v0.0.15

func WithAsyncAITTSModel(model string) AsyncAITTSOption

func WithAsyncAITTSSampleRate added in v0.0.15

func WithAsyncAITTSSampleRate(sampleRate int) AsyncAITTSOption

func WithAsyncAITTSVoice added in v0.0.15

func WithAsyncAITTSVoice(voice string) AsyncAITTSOption

Jump to

Keyboard shortcuts

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