Documentation
¶
Index ¶
- Constants
- type AsyncAITTS
- func (t *AsyncAITTS) Capabilities() tts.TTSCapabilities
- func (t *AsyncAITTS) Label() string
- func (t *AsyncAITTS) Model() string
- func (t *AsyncAITTS) NumChannels() int
- func (t *AsyncAITTS) Provider() string
- 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)
- type AsyncAITTSOption
- func WithAsyncAITTSBaseURL(baseURL string) AsyncAITTSOption
- func WithAsyncAITTSEncoding(encoding string) AsyncAITTSOption
- func WithAsyncAITTSLanguage(language string) AsyncAITTSOption
- func WithAsyncAITTSModel(model string) AsyncAITTSOption
- func WithAsyncAITTSSampleRate(sampleRate int) AsyncAITTSOption
- func WithAsyncAITTSVoice(voice string) AsyncAITTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.asyncai" PluginVersion = "1.5.15" 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) 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)
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
Click to show internal directories.
Click to hide internal directories.