Documentation
¶
Index ¶
- Constants
- type AsyncAITTSdeprecated
- type AsyncAITTSOptiondeprecated
- type TTS
- func (t *TTS) Capabilities() tts.TTSCapabilities
- func (t *TTS) Close() error
- func (t *TTS) Label() string
- func (t *TTS) Model() string
- func (t *TTS) NumChannels() int
- func (t *TTS) Provider() string
- func (t *TTS) SampleRate() int
- func (t *TTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *TTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *TTS) UpdateOptions(opts ...TTSOption)
- type TTSOption
- func WithAsyncAITTSBaseURL(baseURL string) TTSOption
- func WithAsyncAITTSEncoding(encoding string) TTSOption
- func WithAsyncAITTSLanguage(language string) TTSOption
- func WithAsyncAITTSModel(model string) TTSOption
- func WithAsyncAITTSSampleRate(sampleRate int) TTSOption
- func WithAsyncAITTSVoice(voice string) TTSOption
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 (*TTS) Capabilities ¶ added in v0.4.2
func (t *TTS) Capabilities() tts.TTSCapabilities
func (*TTS) NumChannels ¶ added in v0.4.2
func (*TTS) SampleRate ¶ added in v0.4.2
func (*TTS) Synthesize ¶ added in v0.4.2
func (*TTS) UpdateOptions ¶ added in v0.4.2
type TTSOption ¶ added in v0.4.2
type TTSOption func(*TTS)
func WithAsyncAITTSBaseURL ¶ added in v0.0.15
func WithAsyncAITTSEncoding ¶ added in v0.0.15
func WithAsyncAITTSLanguage ¶ added in v0.0.15
func WithAsyncAITTSModel ¶ added in v0.0.15
func WithAsyncAITTSSampleRate ¶ added in v0.0.15
func WithAsyncAITTSVoice ¶ added in v0.0.15
Click to show internal directories.
Click to hide internal directories.