Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/types/liveTranscriptionOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,24 @@ export type LiveTranscriptionOptions = {
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/redact
*/
redact?: Array<string>;

/**
* Indicates whether to recognize speaker changes. When set to true, each word
* Indicates whether to recognize speaker changes. When passed in, each word

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could probably be reverted now.

* in the transcript will be assigned a speaker number starting at 0.
* If 'true' is passed, the latest version of the diarizer will be used.
* To use an old version of the diarizer, pass in the version in the `diarize_version` option.
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/diarize
*/
diarize?: boolean;

/**
* Indicates which version of the diarizer to use. When passed in, each word
* in the transcript will be assigned a speaker number starting at 0.
* Ex: YYYY-MM-DD.X where YYYY-MM-DD is the version date and X is the version number.
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/diarize
*/
diarize_version?: string;

/**
* Indicates whether to transcribe each audio channel independently. When set
* to true, you will receive one transcript for each channel, which means you
Expand Down
14 changes: 13 additions & 1 deletion src/types/prerecordedTranscriptionOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,24 @@ export type PrerecordedTranscriptionOptions = {
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/redact
*/
redact?: Array<string>;

/**
* Indicates whether to recognize speaker changes. When set to true, each word
* Indicates whether to recognize speaker changes. When passed in, each word

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same reversion needed.

* in the transcript will be assigned a speaker number starting at 0.
* If 'true' is passed, the latest version of the diarizer will be used.
* To use an old version of the diarizer, pass in the version in the `diarize_version` option.
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/diarize
*/
diarize?: boolean;

/**
* Indicates which version of the diarizer to use. When passed in, each word
* in the transcript will be assigned a speaker number starting at 0.
* Ex: YYYY-MM-DD.X where YYYY-MM-DD is the version date and X is the version number.
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/diarize
*/
diarize_version?: string;

/**
* Indicates whether to transcribe each audio channel independently. When set
* to true, you will receive one transcript for each channel, which means you
Expand Down
2 changes: 2 additions & 0 deletions src/types/wordBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ export type WordBase = {
confidence: number;
punctuated_word?: string;
speaker?: number;
// speaker_confidence will only be included if 'diarize=latest' or 'diarize=VERSION' is passed in the request
speaker_confidence?: number;
};