[express-as] element is not allowed

yunsong 1 Reputation point
2022-04-07T05:08:03.05+00:00

com.microsoft.cognitiveservices.speech client-sdk 1.19.0 synthesizer.SpeakSsmlAsync(text)
The response is:
CANCELED: Reason=Error
CANCELED: ErrorCode=BadRequest
CANCELED: ErrorDetails=Connection was closed by the remote host. Error code: 1007. Error details: [express-as] element is not allowed. Currently only [speak], [voice] and [prosody] elements are allo USP state: 3. Received audio size: 0 bytes.
CANCELED: Did you update the subscription info?

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,555 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 43,696 Reputation points Microsoft Employee
    2022-04-07T09:32:57.917+00:00

    @yunsong Which language or voice are you using in your SSML? Can you cross-check from the speech studio audio content creation tool if the selected voice can use speaking style that you defined in this case?

    If you are able to use the voice to express as or set the speaking style you can pickup the SSML from the studio and use them with your SDK too, viceversa.

    190839-image.png

    0 comments No comments