Skip to content

Commit 656763a

Browse files
authored
Merge pull request #124 from deepgram/keyword-boost
Add keyword_boost to transcription options
2 parents 7ba3fe8 + 9ed8a93 commit 656763a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/types/liveTranscriptionOptions.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ export type LiveTranscriptionOptions = {
139139
* @see https://developers.deepgram.com/documentation/features/keywords/
140140
*/
141141
keywords?: Array<string>;
142+
143+
/**
144+
* Support for out-of-vocabulary (OOV) keyword boosting when processing streaming audio is
145+
* currently in beta; to fall back to previous keyword behavior append the query parameter
146+
* keyword_boost=legacy to your API request.
147+
*/
148+
keyword_boost?: string;
149+
142150
/**
143151
* Indicates whether the streaming endpoint should send you updates to its
144152
* transcription as more audio becomes available. By default, the streaming

src/types/prerecordedTranscriptionOptions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ export type PrerecordedTranscriptionOptions = {
147147
*/
148148
keywords?: Array<string>;
149149

150+
/**
151+
* Support for out-of-vocabulary (OOV) keyword boosting when processing streaming audio is
152+
* currently in beta; to fall back to previous keyword behavior append the query parameter
153+
* keyword_boost=legacy to your API request.
154+
*/
155+
keyword_boost?: string;
156+
150157
/**
151158
* Indicates whether Deepgram will segment speech into meaningful semantic
152159
* units, which allows the model to interact more naturally and effectively

0 commit comments

Comments
 (0)