Documentation
¶
Index ¶
- Constants
- type SpeechifyTTS
- func (t *SpeechifyTTS) Capabilities() tts.TTSCapabilities
- func (t *SpeechifyTTS) Label() string
- func (t *SpeechifyTTS) NumChannels() int
- 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)
- 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
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.speechify" PluginVersion = "1.5.15" 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) NumChannels ¶
func (t *SpeechifyTTS) NumChannels() int
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)
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
Click to show internal directories.
Click to hide internal directories.