Profanity Filter

Last updated 10/20/2021
BATCH
STREAM

Deepgram’s Profanity Filter feature looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely.

Use Cases

Some examples of use cases for the profanity filter include:

  • Customers who handle volatile customers and need to remove profanity for training purposes.

Enable Feature

To enable the profanity filter, when you call Deepgram’s API, add a profanity_filter parameter set to true in the query string:

profanity_filter=true

To transcribe audio from a file on your computer, run the following curl command in a terminal or your favorite API client. Be sure to swap the placeholder username and password with the email address you used to create your Deepgram account and your Deepgram password.

curl
-X POST
-u USERNAME:PASSWORD
-H "Content-Type: audio/wav"
--data-binary @myaudio.wav
"https://brain.deepgram.com/v2/listen?profanity_filter=true"

Results

Once applied, results will appear in the transcript.

TruthBefore profanity filterAfter profanity filter
You need my password. Well, s**t. I know I have it here somewhere.You need my password. Well s**t. I know I have it here somewhere.You need my password. Well shut. I know I have it here somewhere.
TruthBefore profanity filterAfter profanity filter
Well d**n it. What am I supposed to do with that information? I mean f**k that's a f**k ton of information you're giving me. Holy hell.Well d**n it. What am I supposed to do with that information? I mean f**k that's a f**k ton of information you're giving me. Holy hell.Well bam it. What am I supposed to do with that information? I mean that's a ton of information you're giving me. Holy hell.

By default, Deepgram applies its general AI model, which is a good, general purpose model for everyday situations. To learn more about the customization possible with Deepgram's API, check out the Speech Recognition API Reference.