Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultYandexTTSEndpoint = "tts.api.cloud.yandex.net:443"
DefaultYandexTTSEndpoint is the default endpoint for the TTS service
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TTS ¶
type TTS interface {
Speak(ctx context.Context, entity request.TextEntity, options ...request.Option) (io.Reader, error)
}
TTS is the interface for text to speech
type YaTTS ¶
type YaTTS struct {
// contains filtered or unexported fields
}
YaTTS is implementation of TTS based on Yandex TTS
func (*YaTTS) SetTTSEndpointURL ¶
SetTTSEndpointURL sets the endpoint for the TTS service. for cases when you need to use a hybrid
Click to show internal directories.
Click to hide internal directories.