question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<audio> tag not working within SSML

See original GitHub issue

Microsoft.CognitiveServices.Speech C# SDK Not working

I simply want to embed Audio as mentioned (https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-synthesis-markup

When the following SSML is called into the SpeechSynthesizer.SpeakSsmlAsync, the system returns a Cancel error:

Connection was closed by the remote host. Error code: 1007. Error details: Unsupported voice . USP state: 3. Received audio size: 0bytes.

I am clearly providing a URL with a valid file and I believe I have well formed the audio tag as per the documentation:

<speak version='1.0' xml:lang='en-US'>
<audio src="https://www.upsilondynamics.com/Content/TwilioGreetings/notify.wav" />
<voice xml:lang='en-US' xml:gender='male' name='en-US-GuyNeural'> 
Hello World, this is a test!</voice>
</speak>

Embedding it within the VOICE tag is preferable, it also dos not work:

<speak version='1.0' xml:lang='en-US'>
<voice xml:lang='en-US' xml:gender='male' name='en-US-GuyNeural'> 
<audio src="https://www.upsilondynamics.com/Content/TwilioGreetings/notify.wav" />
Hello World, this is a test!
</voice>
</speak>

This is a duplicate posted here as it is documented here, but I cannot get it to work: https://github.com/MicrosoftDocs/azure-docs/issues/42668

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yulin-licommented, Nov 21, 2019

@nitinthewiz Sure, word boundary feature works fine with single voice audio. You don’t need to change file type, just binding a wordboundary event is enough. You can refer this c# sample to try this feature (other language samples also available in this repo).

0reactions
johnmalatrascommented, May 10, 2022

I’m also not able to use audio or mstts:backgroundaudio. Any update on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Audio tag is not working in Alexa's SSML, Alexa's reminder ...
I am trying to create a reminder using Alexa's Reminder API in my custom Alexa Skill and in the SSML, I am passing...
Read more >
Audio SSML tag does not work using progressive response
If we don't use the speak tags, it returns a valid 204 status code, playing the text and ignoring the <audio src> tag....
Read more >
SSML audio tag support
Hi I have just find after a research about SSML for silent break (thanks for this one) the audio tag . <audio src="welcome.wav">...
Read more >
ssml text to speech audio tag python
It appears that you are attempting to use an SSML document with the HTML5 audio element. However, text-to-speech systems cannot use the audio ......
Read more >
ssml:audio Element
The content of a non-empty ssml:audio element should be the plain text or SSML marked-up text to be spoken if the audio file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found