TsgcTextToSpeechGoogle
Text-To-Speech is an API provided by Google Cloud which allows to convert text to mp3 files, requires the use of a Google Cloud Account and setup the Text-To-Speech account.
Once the Text-To-Speech Account is configured, a JSON settings file must be downloaded and set to the property GoogleOptions.Settings.
Properties
- GoogleOptions
- Settings: here must be copied the content of the JSON settings downloaded from the service account configured for Text-To-Speech API.
- AudioEncoding: (by default MP3) here configure the Audio Encoding format.
- FileName: the filename where will be stored the file received from Text-To-Speech API.
- Gender: the gender of the voice (FEMALE, MALE).
- VoiceId: the name of the voice (example: en-US-Standard-A).
- Language: the language of the voice (example: en-US).
- AudioPlayer: set here a TsgcAudioPlayer component which will play the audio file received from Google Servers.