question

MariaB-3812 avatar image
0 Votes"
MariaB-3812 asked ramr-msft commented

Azure TTS: volume="silent" or volume="0" doesn't work

I am trying to use the prosody - volume attribute in SSML to change the volume of my TTS (output to device speaker). It works -- except for silent/0.

I'm following the instructions for constructing SSML at https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-synthesis-markup?tabs=csharp. My SSML looks like this and I am just changing the value for volume.

<voice name="en-US-GuyNeural">
<prosody volume="100">
Good morning to you too Jenny!
</prosody>
</voice>

If I set volume anywhere greater than 0 up to 100, I can hear the difference in volume.
If I set it to soft, medium, or loud, I can hear the difference.

But if I set it to 0, 0.0, or silent, it speaks loudly.

I'm using SpeechSynthesizer.SpeakSsmlAsync to pass in SSML to speak to the default device speaker on Windows.

I can work around it by using 0.01 (so I can't really hear it), or maybe passing in null for AudioConfig when initializing the synthesizer, but I think silent or 0 should work for volume since they are in the documentation.

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.

@MariaB-3812 Thanks for the question. We have forwarded to the product team to check on this.

1 Vote 1 ·

0 Answers