The language of the voice as a BCP-47 language code
gender
The gender of the voice, if available
name
Name of the voice, see list via gl_talk_languages for supported voices. Set to NULL to make the service choose a voice based on languageCode and gender.
audioEncoding
Format of the requested audio stream
speakingRate
Speaking rate/speed between 0.25 and 4.0
pitch
Speaking pitch between -20.0 and 20.0 in semitones.
volumeGainDb
Volumne gain in dB
sampleRateHertz
Sample rate for returned audio
Value
The file output name you supplied as output
Details
Requires the Cloud Text-To-Speech API to be activated for your Google Cloud project.
# NOT RUN {# }# NOT RUN {gl_talk("The rain in spain falls mainly in the plain",
output = "output.wav")
gl_talk("Testing my new audio player") %>% gl_talk_player()
# }# NOT RUN {# }