compulim/web-speech-cognitive-services

Option to turn profanity off

Opened this issue · 1 comments

Thanks for this amazing library. I am using MS Azure, is there a way to turn off Profanity(or pass "raw") to the SpeechConfig class?

I would also know to know if this can be achieved as well

My research so far:

To toggle the option you need to update the audioConfig as mentioned here - Azure-Samples/cognitive-services-speech-sdk#1093 (comment).

To do this, we might be able to update around these lines - speechConfig.outputFormat = OutputFormat.Detailed