File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { ParagraphGroup } from "./paragraphGroup" ;
22import { WordBase } from "./wordBase" ;
3+ import { Summary } from "./summary" ;
34
45export type Alternative = {
56 /**
@@ -14,6 +15,10 @@ export type Alternative = {
1415 * Array of words included in the transcript
1516 */
1617 words : Array < WordBase > ;
18+ /**
19+ * Array of summary objects.
20+ */
21+ summaries ?: Array < Summary > ;
1722 /**
1823 * Array of paragraph objects.
1924 */
Original file line number Diff line number Diff line change @@ -167,4 +167,8 @@ export type PrerecordedTranscriptionOptions = {
167167 * diarize, or multichannel to true.
168168 */
169169 paragraphs ?: boolean ;
170+ /**
171+ * Indicates whether Deepgram should provide summarizations of sections of the provided audio.
172+ */
173+ summarize ?: boolean ;
170174} ;
Original file line number Diff line number Diff line change 1+ /**
2+ * Summary of a section of audio provided.
3+ */
4+ export type Summary = {
5+ /**
6+ * Summary of a section of the transcript
7+ */
8+ summary ?: string ;
9+ /**
10+ * Word position in transcript where the summary begins
11+ */
12+ start_word ?: number ;
13+ /**
14+ * Word position in transcript where the summary ends
15+ */
16+ end_word ?: number ;
17+ } ;
You can’t perform that action at this time.
0 commit comments