Skip to content

Commit 30e3a6d

Browse files
committed
added replace parameter
1 parent aa3bcb1 commit 30e3a6d

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

src/types/liveTranscriptionOptions.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ export type LiveTranscriptionOptions = {
2727
* @see https://developers.deepgram.com/documentation/features/tier/
2828
*/
2929
tier?: string;
30+
31+
/**
32+
* Terms or phrases to search for in the submitted audio and replace
33+
* @remarks Can send multiple instances in query string replace=this:that&replace=thisalso:thatalso. Replacing a term or phrase with nothing will remove the term or phrase from the audio transcript.
34+
* @see https://developers.deepgram.com/documentation/features/replace/
35+
*/
36+
replace?: string;
37+
3038
/**
3139
* BCP-47 language tag that hints at the primary spoken language.
3240
* @default en-US

src/types/prerecordedTranscriptionOptions.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,22 @@ export type PrerecordedTranscriptionOptions = {
1919
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/version
2020
*/
2121
version?: string;
22+
2223
/**
2324
* Tier of the model to use.
2425
* @default base
2526
* @remarks Possible values are base or enhanced
2627
* @see https://developers.deepgram.com/documentation/features/tier/
2728
*/
2829
tier?: string;
30+
31+
/**
32+
* Terms or phrases to search for in the submitted audio and replace
33+
* @remarks Can send multiple instances in query string replace=this:that&replace=thisalso:thatalso. Replacing a term or phrase with nothing will remove the term or phrase from the audio transcript.
34+
* @see https://developers.deepgram.com/documentation/features/replace/
35+
*/
36+
replace?: string;
37+
2938
/**
3039
* BCP-47 language tag that hints at the primary spoken language.
3140
* @default en-US

0 commit comments

Comments
 (0)