Rei-x / discord-speech-recognition

Speech to text extension for discord.js
https://npmjs.com/package/discord-speech-recognition
MIT License
56 stars 22 forks source link

How do I turn off profanity filter? #23

Closed framilano closed 2 years ago

framilano commented 2 years ago

I see this option in resolveSpeechWithGoogleSpeechV2 but I have no idea on how to use it, addSpeechEvent options doesn't have such field.

UPDATE Okay, simply putting as option profanityFilter:false seems to work. But if I insert my API key for Google Speech-To-Text the speech recognition simply stops. If I don't set any key in options it works

Rei-x commented 2 years ago

Remember that this library doesn't use google cloud speech to text. It uses google speech api v2, here you can read more: https://github.com/gillesdemey/google-speech-v2 Here you can read how to acquire api key: http://www.chromium.org/developers/how-tos/api-keys