1. Documentation
  2. Features
  3. Profanity Filter

Profanity Filter

PRE-RECORDED
STREAMING

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.

This feature is available for English only (all available regions).

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 replace the placeholder YOUR_DEEPGRAM_API_KEY with your Deepgram API Key. You can create an API Key in the Deepgram Console.

curl
curl \
  --request POST \
  --header 'Authorization: Token YOUR_DEEPGRAM_API_KEY' \
  --header 'Content-Type: audio/wav' \
  --data-binary @youraudio.wav \
  --url 'https://api.deepgram.com/v1/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 Deepgram API Reference.

FEEDBACK