Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

SSML to read Date in German Language not working

Hi - I am working on converting Text to Speech using SSML via Google Speech API. Below is the request to the API. This perfectly works when language Code is En-US , however for code de-DE and to hear in German voice, the output is totally random. Please help me in checking this issue, 

 

TTS Request JSON :: {"voice":{"ssmlGender":"MALE","name":"de-DE-Wavenet-E","languageCode":"de-DE"},"input":{"ssml":"<speak><say-as interpret-as=\"date\" format=\"yyyymmdd\"> 20220506<\/say-as><\/speak>"},"audioConfig":{"sampleRateHertz":8000,"volumeGainDb":0,"speakingRate":1,"audioEncoding":"LINEAR16","pitch":0,"effectsProfileId":["telephony-class-application"]}}

 

The same request when changeing the name and Language code works perfectly.

2 REPLIES 2