Speech Studo failed to export audio from text for SSML parser error

gong meng 0 Reputation points
2023-09-12T13:11:41.7033333+00:00
  1. I upload text file with a short contain Chinese story
  2. With Speech Studio online editor, I add voice and break to this story
  3. I play the whole audio on the web page and make sure that every sentence worked.
  4. I make sure I used paid stand resource
  5. When I try to export audio got follow error message

Error: Status: 400. Failed to parse ssml with error: Node [speak] with type [RootSpeak] should not contain node [s] with type [Others].

Connection ID: 20cb8270-516c-11ee-b66c-6ff95af5b9d9

It seem that the xml is not in the right format but the online editor just worked...

Is there any documents can help me to resolve this error? Or I just need to record the story directly from web page audio stream and it was a very bad solution.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,070 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,676 Reputation points Moderator
    2023-09-13T01:04:14.9933333+00:00

    Hello @gong meng , Thanks for using Microsoft Q&A Platform.

    I have reproduced the TTS in the Audio content studio, and everything worked well.

    As per the error message looks like there is an issue with the SSML syntax in your exported audio file. The error message indicates that the speak element contains a child element s with an invalid type.

    400 Bad request->A required parameter is missing, empty, or null. Or, the value passed to either a required or optional parameter is invalid. A common reason is a header that's too long.https://learn.microsoft.com/en-us/azure/ai-services/speech-service/rest-text-to-speech?tabs=streaming

    Try to check these things in the Studio by enabling SSML. If the issue still persists, please share the SSML you are using <speak>..</speak> with us.

    I hope this helps.

    Regards,
    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.