Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add missing feature toggles from q1 feature audit #237

Merged
merged 3 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
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
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 All @@ -83,6 +99,11 @@ interface TranscriptionSchema extends Record<string, unknown> {
*/
tag?: string[];

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

[key: string]: unknown;
}

Expand All @@ -103,7 +124,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 @@ -126,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