fix: deepgram redact option

This commit is contained in:
Dave Horton
2023-09-22 08:13:54 -04:00
parent 4e916acf6c
commit 1aa0b07b8f

View File

@@ -506,7 +506,7 @@ module.exports = (logger) => {
...(deepgramOptions.profanityFilter) && ...(deepgramOptions.profanityFilter) &&
{DEEPGRAM_SPEECH_PROFANITY_FILTER: 1}, {DEEPGRAM_SPEECH_PROFANITY_FILTER: 1},
...(deepgramOptions.redact) && ...(deepgramOptions.redact) &&
{DEEPGRAM_SPEECH_REDACT: 1}, {DEEPGRAM_SPEECH_REDACT: deepgramOptions.redact},
...(deepgramOptions.diarize) && ...(deepgramOptions.diarize) &&
{DEEPGRAM_SPEECH_DIARIZE: 1}, {DEEPGRAM_SPEECH_DIARIZE: 1},
...(deepgramOptions.diarizeVersion) && ...(deepgramOptions.diarizeVersion) &&