Profanity Filtering
Profanity Filter looks for recognized profanity and replaces it with asterisks.
profanity_filter boolean Default: false
Pre-recorded Streaming:NovaStreaming:Flux Specific languages only
Deepgram’s profanity filtering feature masks offensive language in transcripts using asterisks. Profanity filtering is available for the following languages:
- Arabic:
ar,ar-AE,ar-SA,ar-QA,ar-KW,ar-SY,ar-LB,ar-PS,ar-JO,ar-EG,ar-SD,ar-TD,ar-MA,ar-DZ,ar-TN,ar-IQ,ar-IR - Belarusian:
be - Bengali:
bn - Bosnian:
bs - Bulgarian:
bg - Catalan:
ca - Chinese:
zh,zh-CN,zh-TW - Chinese (Cantonese, Traditional):
zh-HK - Chinese (Mandarin, Simplified):
zh,zh-CN,zh-Hans - Chinese (Mandarin, Traditional):
zh-TW,zh-Hant - Croatian:
hr - Czech:
cs - Danish:
da,da-DK - Dutch:
nl - English:
en,en-US,en-AU,en-CA,en-GB,en-IE,en-IN,en-NZ - Estonian:
et - Finnish:
fi - Flemish:
nl-BE - French:
fr,fr-CA - German:
de - German (Switzerland):
de-CH - Greek:
el - Gujarati:
gu,gu-IN - Hebrew:
he - Hindi:
hi,hi-Latn - Hungarian:
hu - Indonesian:
id - Italian:
it - Japanese:
ja - Kannada:
kn - Korean:
ko,ko-KR - Latvian:
lv - Lithuanian:
lt - Macedonian:
mk - Malay:
ms - Marathi:
mr - Norwegian:
no - Persian:
fa - Polish:
pl - Portuguese:
pt,pt-BR,pt-PT - Romanian:
ro - Russian:
ru - Serbian:
sr - Slovak:
sk - Slovenian:
sl - Spanish:
es,es-419,es-LATAM - Swedish:
sv,sv-SE - Tagalog:
tl - Tamasheq:
taq - Tamil:
ta - Telugu:
te - Thai:
th,th-TH - Turkish:
tr - Ukrainian:
uk - Urdu:
ur - Vietnamese:
vi
Profanity filtering is supported for all multilingual models: Nova-2 multi, Nova-3 multi, and Flux multi (language=multi).
Enable Feature
To enable Profanity Filtering, use the following parameter in the query string when you call Deepgram’s /listen endpoint :
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.
cURL
Replace YOUR_DEEPGRAM_API_KEY with your Deepgram API Key.
Results
Filtered results will appear in the transcript as ****
JSON