Text To Speech - Adjust Volume for Expletives

58 views
Skip to first unread message

Jim Howard

unread,
May 2, 2019, 2:23:48 PM5/2/19
to Google Cloud Developers
I use the "<say-as interpret-as="expletive">" SSML tag to censor some words when generating speech, however I have had numerous complaints about the volume of the beep generated.

Is there a way to lower the volume of the generated beep?

Ali T (Cloud Platform Support)

unread,
May 17, 2019, 1:40:59 PM5/17/19
to Google Cloud Developers
Hi,

You can control the volume of the generated beep using the prosody volume element. Your ssml input would resemble the following :
<prosody volume=\'soft\'>
    <say-as interpret-as=\'expletive\'>censor this</say-as>
</prosody>
Reply all
Reply to author
Forward
0 new messages