Skip to content

Commit

Permalink
feat: add missing feature toggles from q1 feature audit (#237)
Browse files Browse the repository at this point in the history
* feat: add missing feature toggles from q1 feature audit

* feat: adding extra metadata feature
  • Loading branch information
lukeocodes authored Jan 25, 2024
1 parent 1f80bab commit 7f972d1
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/lib/types/SyncPrerecordedResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ interface Metadata {
intents_info?: IntentsInfo;
sentiment_info?: SentimentInfo;
topics_info?: TopicsInfo;
extra: {
[key: string]: unknown;
};
}

interface ModelInfo {
Expand Down
37 changes: 36 additions & 1 deletion src/lib/types/TranscriptionSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface TranscriptionSchema extends Record<string, unknown> {
model?: string;

/**
* @deprecated
* @see https://developers.deepgram.com/docs/tier
*/
tier?: string;
Expand Down Expand Up @@ -42,11 +43,21 @@ interface TranscriptionSchema extends Record<string, unknown> {
*/
diarize?: boolean;

/**
* @see https://developers.deepgram.com/docs/diarization
*/
diarize_version?: string;

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

/**
* @see https://developers.deepgram.com/docs/filler-words
*/
filler_words?: boolean;

/**
* @see https://developers.deepgram.com/docs/multichannel
*/
Expand All @@ -73,6 +84,11 @@ interface TranscriptionSchema extends Record<string, unknown> {
*/
callback?: string;

/**
* @see https://developers.deepgram.com/docs/callback#results
*/
callback_method?: string;

/**
* @see https://developers.deepgram.com/docs/keywords
*/
Expand Down Expand Up @@ -118,6 +134,11 @@ interface TranscriptionSchema extends Record<string, unknown> {
*/
custom_topic_mode?: "strict" | "extended";

/**
* @see https://developers.deepgram.com/docs/extra
*/
extra?: boolean;

[key: string]: unknown;
}

Expand All @@ -138,7 +159,11 @@ interface PrerecordedSchema extends TranscriptionSchema {
detect_topics?: boolean;

/**
* Undocumented feature.
* Alternatives will run your transcription X number of times and return
* that many variations of the transcription, allowing for the selection
* of the most accurate. Cost increases by number of alternatives.
*
* @deprecated
*/
alternatives?: number;

Expand All @@ -161,6 +186,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 7f972d1

Please sign in to comment.