Hello,
I am trying to use Azure Cognitive connector plugin in order to get Text-To-Speech functionality.
I have all the necessary keys and permission and the respective Azure account.
The action for Speech-To-Text is working normally. Using the 'Speech Recognition' functionality in the Azure Cognitive Services DEMO, after putting up my keys and info in the code, and after uploading the audio file, will get me the correct text for it. All good. HOWEVER, when I try to use the action that I need, Text-To-Speech, the story is slightly different. When I send a text(string) on the "ssml" input of the action, along with all the same key and region, I get an error back: <400 Data at the root level is invalid. Line 1, position 1>.
It is important to notice that before having this error, I had a 401 - Unauthorized error. The default URL getting called in these actions is the US West url. Changing the URL, in the Azure Plugin REST call, to the respective European POST URL specified on Azure documentation seemed to solve that issue (weirdly though, Speech-To-Text worked normally with the base US URL on the plugin along with my West Europe Region Key).
I believe the plugin is probably sending broken data on the Text-To-Speech? (XML) I am having a hard time figuring out how to solve this. Perhaps I could find some help around here?
Thank you.
ps: EU-West: https://westeurope.tts.speech.microsoft.com/cognitiveservices/v1
US-West (default): https://westus.tts.speech.microsoft.com/cognitiveservices/v1