Skip to content

Commit ffed5bf

Browse files
authored
Merge pull request #118 from deepgram/sentiment
added ner option and sentiment for tonal sentiment analysis
2 parents 224cc11 + 80f76c7 commit ffed5bf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/types/liveTranscriptionOptions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,6 @@ export type LiveTranscriptionOptions = {
239239
* will also be applied to the request itself.
240240
* */
241241
tag?: Array<string>;
242+
243+
ner?: boolean;
242244
};

src/types/prerecordedTranscriptionOptions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ export type PrerecordedTranscriptionOptions = {
210210
*/
211211
detect_topics?: boolean;
212212

213+
/**
214+
* Indicates whether Deepgram will identify sentiment in the audio.
215+
*/
216+
sentiment?: boolean;
217+
213218
/**
214219
* Indicates whether Deepgram will identify sentiment in the transcript.
215220
*/
@@ -265,4 +270,6 @@ export type PrerecordedTranscriptionOptions = {
265270
* will also be applied to the request itself.
266271
* */
267272
tag?: Array<string>;
273+
274+
ner?: boolean;
268275
};

0 commit comments

Comments
 (0)