Skip to content

Commit

Permalink
feat: adding extra metadata feature
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes committed Jan 25, 2024
1 parent 0f87111 commit 3576a41
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/lib/types/SyncPrerecordedResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ interface Metadata {
models: string[];
model_info: Record<string, ModelInfo>;
warnings?: Warning[];
extra: {
[key: string]: unknown;
};
}

interface ModelInfo {
Expand Down
19 changes: 12 additions & 7 deletions src/lib/types/TranscriptionSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,9 @@ interface TranscriptionSchema extends Record<string, unknown> {
tag?: string[];

/**
* @see https://developers.deepgram.com/docs/smart-format#dictation
* @see https://developers.deepgram.com/docs/extra
*/
dictation?: boolean;

/**
* @see https://developers.deepgram.com/docs/smart-format#measurements
*/
measurements?: boolean;
extra?: boolean;

[key: string]: unknown;
}
Expand Down Expand Up @@ -156,6 +151,16 @@ interface PrerecordedSchema extends TranscriptionSchema {
* @see https://developers.deepgram.com/docs/utterance-split
*/
utt_split?: number;

/**
* @see https://developers.deepgram.com/docs/smart-format#dictation
*/
dictation?: boolean;

/**
* @see https://developers.deepgram.com/docs/smart-format#measurements
*/
measurements?: boolean;
}

interface LiveSchema extends TranscriptionSchema {
Expand Down

0 comments on commit 3576a41

Please sign in to comment.