I'm using Google's example for phoneme implementation as follows:
<phoneme alphabet="ipa" ph="təmei̥ɾou̥"> tomato </phoneme>
I'm using Postman to send as POST requests to the https://texttospeech.googleapis.com/v1/text endpoint.
I notice that if I alter the word "tomato" but keep the original value for "ph", the word "tomato" is still completely returned for the voice audio. I would have expected the voice audio to return "To" sound only.
<phoneme alphabet="ipa" ph="tə"> tomato </phoneme>
When sending POST request in JSON format via Postman, I always escape the quotation marks to avoid JSON parsing errors:
{
"audioConfig":{
"audioEncoding":"LINEAR16",
"volumeGainDb":"16",
"pitch": 0,
"speakingRate": 1
},
"input":{
"ssml":"<speak><phoneme alphabet=\"ipa\" ph=\"tə\"> tomato </phoneme></speak>"
},
"voice":{
"languageCode":"en-US",
"name":"en-US-Wavenet-F",
"ssmlGender":"FEMALE"
}
}
Anyone know why Phonemes don't appear to be working?
Thanks in advance.