question

yunsong-1779 avatar image
0 Votes"
yunsong-1779 asked romungi-MSFT answered

[express-as] element is not allowed

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-speech
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@yunsong-1779 Did you get a chance to try the below scenario using the studio and check if it worked?

0 Votes 0 ·

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered

@yunsong-1779 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



image.png (56.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.