Documentation
¶
Index ¶
- Constants
- type SpeechifyTTS
- func (t *SpeechifyTTS) Capabilities() tts.TTSCapabilities
- func (t *SpeechifyTTS) Label() string
- func (t *SpeechifyTTS) Model() string
- func (t *SpeechifyTTS) NumChannels() int
- func (t *SpeechifyTTS) Provider() string
- func (t *SpeechifyTTS) SampleRate() int
- func (t *SpeechifyTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *SpeechifyTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- func (t *SpeechifyTTS) UpdateOptions(opts ...SpeechifyTTSUpdateOption)
- type SpeechifyTTSOption
- func WithSpeechifyTTSBaseURL(baseURL string) SpeechifyTTSOption
- func WithSpeechifyTTSEncoding(encoding string) SpeechifyTTSOption
- func WithSpeechifyTTSLanguage(language string) SpeechifyTTSOption
- func WithSpeechifyTTSLoudnessNormalization(enabled bool) SpeechifyTTSOption
- func WithSpeechifyTTSModel(model string) SpeechifyTTSOption
- func WithSpeechifyTTSTextNormalization(enabled bool) SpeechifyTTSOption
- func WithSpeechifyTTSVoice(voice string) SpeechifyTTSOption
- type SpeechifyTTSUpdateOption
- func WithSpeechifyTTSUpdateLanguage(language string) SpeechifyTTSUpdateOption
- func WithSpeechifyTTSUpdateLoudnessNormalization(enabled bool) SpeechifyTTSUpdateOption
- func WithSpeechifyTTSUpdateModel(model string) SpeechifyTTSUpdateOption
- func WithSpeechifyTTSUpdateTextNormalization(enabled bool) SpeechifyTTSUpdateOption
- func WithSpeechifyTTSUpdateVoice(voice string) SpeechifyTTSUpdateOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.speechify" PluginVersion = "v0.1.6" PluginPackage = "rtp-agent.plugins.speechify" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpeechifyTTS ¶
type SpeechifyTTS struct {
// contains filtered or unexported fields
}
func NewSpeechifyTTS ¶
func NewSpeechifyTTS(apiKey string, voice string, opts ...SpeechifyTTSOption) *SpeechifyTTS
func (*SpeechifyTTS) Capabilities ¶
func (t *SpeechifyTTS) Capabilities() tts.TTSCapabilities
func (*SpeechifyTTS) Label ¶
func (t *SpeechifyTTS) Label() string
func (*SpeechifyTTS) Model ¶ added in v0.0.18
func (t *SpeechifyTTS) Model() string
func (*SpeechifyTTS) NumChannels ¶
func (t *SpeechifyTTS) NumChannels() int
func (*SpeechifyTTS) Provider ¶ added in v0.0.18
func (t *SpeechifyTTS) Provider() string
func (*SpeechifyTTS) SampleRate ¶
func (t *SpeechifyTTS) SampleRate() int
func (*SpeechifyTTS) Stream ¶
func (t *SpeechifyTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
func (*SpeechifyTTS) Synthesize ¶
func (t *SpeechifyTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
func (*SpeechifyTTS) UpdateOptions ¶ added in v0.1.6
func (t *SpeechifyTTS) UpdateOptions(opts ...SpeechifyTTSUpdateOption)
type SpeechifyTTSOption ¶ added in v0.0.15
type SpeechifyTTSOption func(*SpeechifyTTS)
func WithSpeechifyTTSBaseURL ¶ added in v0.0.15
func WithSpeechifyTTSBaseURL(baseURL string) SpeechifyTTSOption
func WithSpeechifyTTSEncoding ¶ added in v0.0.15
func WithSpeechifyTTSEncoding(encoding string) SpeechifyTTSOption
func WithSpeechifyTTSLanguage ¶ added in v0.0.15
func WithSpeechifyTTSLanguage(language string) SpeechifyTTSOption
func WithSpeechifyTTSLoudnessNormalization ¶ added in v0.0.15
func WithSpeechifyTTSLoudnessNormalization(enabled bool) SpeechifyTTSOption
func WithSpeechifyTTSModel ¶ added in v0.0.15
func WithSpeechifyTTSModel(model string) SpeechifyTTSOption
func WithSpeechifyTTSTextNormalization ¶ added in v0.0.15
func WithSpeechifyTTSTextNormalization(enabled bool) SpeechifyTTSOption
func WithSpeechifyTTSVoice ¶ added in v0.0.15
func WithSpeechifyTTSVoice(voice string) SpeechifyTTSOption
type SpeechifyTTSUpdateOption ¶ added in v0.1.6
type SpeechifyTTSUpdateOption func(*SpeechifyTTS)
func WithSpeechifyTTSUpdateLanguage ¶ added in v0.1.6
func WithSpeechifyTTSUpdateLanguage(language string) SpeechifyTTSUpdateOption
func WithSpeechifyTTSUpdateLoudnessNormalization ¶ added in v0.1.6
func WithSpeechifyTTSUpdateLoudnessNormalization(enabled bool) SpeechifyTTSUpdateOption
func WithSpeechifyTTSUpdateModel ¶ added in v0.1.6
func WithSpeechifyTTSUpdateModel(model string) SpeechifyTTSUpdateOption
func WithSpeechifyTTSUpdateTextNormalization ¶ added in v0.1.6
func WithSpeechifyTTSUpdateTextNormalization(enabled bool) SpeechifyTTSUpdateOption
func WithSpeechifyTTSUpdateVoice ¶ added in v0.1.6
func WithSpeechifyTTSUpdateVoice(voice string) SpeechifyTTSUpdateOption
Click to show internal directories.
Click to hide internal directories.