Skip to content

Commit

Permalink
updated response for summarization; added string to summarize option …
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
briancbarrow committed Jun 16, 2023
1 parent a9ecd37 commit 579ba76
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/types/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@ export type Metadata = {
created: string;
duration: number;
channels: number;
model_info: {
[key: string]: {
name: string;
version: string;
arch: string;
};
};
models: Array<string>;
};
2 changes: 1 addition & 1 deletion src/types/prerecordedTranscriptionOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export type PrerecordedTranscriptionOptions = {
/**
* Indicates whether Deepgram should provide summarizations of sections of the provided audio.
*/
summarize?: boolean;
summarize?: boolean | string;

/**
* Corresponds to the language code Deepgram will translate the results into
Expand Down
3 changes: 3 additions & 0 deletions src/types/prerecordedTranscriptionResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export class PrerecordedTranscriptionResponse {
channels: Array<Channel>;
utterances?: Array<Utterance>;
};
summary?: {
short: string;
};

/**
* Converts the transcription to the WebVTT format
Expand Down
2 changes: 1 addition & 1 deletion src/types/usageOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type UsageOptions = {
translate?: boolean;
detect_entities?: boolean;
detect_topics?: boolean;
summarize?: boolean;
summarize?: boolean | string;
paragraphs?: boolean;
utt_split?: boolean;
analyze_sentiment?: boolean;
Expand Down

0 comments on commit 579ba76

Please sign in to comment.