The code is designed to convert text to voice using Google Cloud.
GetSpeechAudioFromGoogle(string textToConvert, VoiceScriptableObject voice, Action<AudioClip> audioClipReceived, Action<BadRequestData> errorReceived)
from TextToSpeech class
string textToConvert - text to convert
VoiceScriptableObject voice - voice options
Action<AudioClip> audioClipReceived - executed in case of successful conversion
Action<BadRequestData> errorReceived - executed in case of an error
You can find ready-made voice options in GoogleTextToSpeech\Voices
.
Or you can create a new set of voice options using Create/GoogleTextToSpeech/Voice
.