I try to generate audio file with the Google Text-To-Speech API. Because I need different voices in my dialogs, I try to use the voice element of ssml:
<speak>
<voice languages="en-US" gender="female" name="en-US-Wavenet-F">Have you got a girlfriend?</voice>
<voice languages="en-GB" gender="male" name="en-GB-Wavenet-B">Yes, I have.</voice>
</speak>
But it doesn’t work and only the gender attribute will be recognized – but only with the default voice and not the selected Wavenet voice.
My question - Is there a way to use different Wavenet voices in one ssml file or can I only define the voice globally for the whole file?