TsgcTextToSpeechGoogle
Text-To-Speech is an API provided by Google Cloud that allows you to convert text to mp3 files. It requires a Google Cloud account and setting up 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: paste here the content of the JSON settings file downloaded from the service account configured for the Text-To-Speech API.
- AudioEncoding: (by default MP3) here configure the Audio Encoding format.
- FileName: the filename where the file received from the Text-To-Speech API will be stored.
- 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.