Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "assemblyai",
"version": "4.27.0",
"version": "4.28.0",
"description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.",
"engines": {
"node": ">=18"
Expand Down
19 changes: 19 additions & 0 deletions src/types/openapi.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ type OneOf<T extends any[]> = T extends [infer Only]
*/
export type AudioIntelligenceModelStatus = "success" | "unavailable";

export interface TranscriptMetadata {
/** The domain that was actually used for the transcription. */
domain_used?: string | null;
/** An optional warning message, if applicable. */
warning?: string | null;
}

/**
* @example
* ```js
Expand Down Expand Up @@ -2943,6 +2950,14 @@ export type Transcript = {
* Translations of the full transcript text when translation is enabled
*/
translated_texts?: Record<string, string>;
/**
* The domain used for the transcription.
*/
domain?: string | null;
/**
* Metadata returned by the transcription API.
*/
metadata?: TranscriptMetadata | null;
};

/**
Expand Down Expand Up @@ -3470,6 +3485,10 @@ export type TranscriptOptionalParams = {
speech_understanding?:
| SpeechUnderstandingRequest
| SpeechUnderstandingResponse;
/**
* The domain to use for the transcription (e.g. 'medical-v1').
*/
domain?: string | null;
};

/**
Expand Down
Loading