asyncai

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncAITTS deprecated

type AsyncAITTS = TTS

Deprecated: use TTS.

type AsyncAITTSOption deprecated added in v0.0.15

type AsyncAITTSOption = TTSOption

Deprecated: use TTSOption.

type TTS added in v0.4.2

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

func NewAsyncAITTS deprecated

func NewAsyncAITTS(apiKey string, voice string, opts ...TTSOption) *TTS

Deprecated: use NewTTS.

func NewTTS added in v0.4.2

func NewTTS(apiKey string, voice string, opts ...TTSOption) *TTS

func (*TTS) Capabilities added in v0.4.2

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

func (*TTS) Close added in v0.4.2

func (t *TTS) Close() error

func (*TTS) Label added in v0.4.2

func (t *TTS) Label() string

func (*TTS) Model added in v0.4.2

func (t *TTS) Model() string

func (*TTS) NumChannels added in v0.4.2

func (t *TTS) NumChannels() int

func (*TTS) Provider added in v0.4.2

func (t *TTS) Provider() string

func (*TTS) SampleRate added in v0.4.2

func (t *TTS) SampleRate() int

func (*TTS) Stream added in v0.4.2

func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)

func (*TTS) Synthesize added in v0.4.2

func (t *TTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)

func (*TTS) UpdateOptions added in v0.4.2

func (t *TTS) UpdateOptions(opts ...TTSOption)

type TTSOption added in v0.4.2

type TTSOption func(*TTS)

func WithAsyncAITTSBaseURL added in v0.0.15

func WithAsyncAITTSBaseURL(baseURL string) TTSOption

func WithAsyncAITTSEncoding added in v0.0.15

func WithAsyncAITTSEncoding(encoding string) TTSOption

func WithAsyncAITTSLanguage added in v0.0.15

func WithAsyncAITTSLanguage(language string) TTSOption

func WithAsyncAITTSModel added in v0.0.15

func WithAsyncAITTSModel(model string) TTSOption

func WithAsyncAITTSSampleRate added in v0.0.15

func WithAsyncAITTSSampleRate(sampleRate int) TTSOption

func WithAsyncAITTSVoice added in v0.0.15

func WithAsyncAITTSVoice(voice string) TTSOption

Jump to

Keyboard shortcuts

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