Crate aristech_tts_client

Crate aristech_tts_client 

Source
Expand description

§Aristech TTS-Client

The Aristech TTS-Client is a client library for the Aristech TTS-Server.

Modules§

tts_services
The tts_services module contains types and functions generated from the Aristech TTS proto files.

Structs§

Auth
The Auth struct holds the token and secret needed to authenticate with the server.
AuthInterceptor
The AuthInterceptor struct is used to intercept requests to the server and add the authentication headers.
TlsOptions
The TlsOptions struct holds the tls options needed to communicate with the server.

Functions§

clear_cache
Clears the cache of the server, removing all cached audio data.
get_audio
This is just an alias for synthesize
get_client
Creates a new TtsClient to communicate with the server.
get_phoneset
Gets the phoneset for the given voice from the server.
get_transcription
Gets the transcription for a word for a specific voice from the server.
get_voices
Gets the list of available voices from the server.
synthesize
Synthesizes the given text with the given options and returns the audio data. Currently only raw and wav audio formats are supported. If the audio format is set to wav (default), the audio data will be prepended with a wave header.

Type Aliases§

TtsClient
The TtsClient type is a type alias for the TtsServiceClient with the AuthInterceptor.