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.14.2",
"version": "4.15.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
18 changes: 18 additions & 0 deletions src/types/openapi.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@
/**
* Only get throttled transcripts, overrides the status filter
* @defaultValue false
* @deprecated

Check warning on line 974 in src/types/openapi.generated.ts

View workflow job for this annotation

GitHub Actions / Node.js 20 on ubuntu-latest

tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative

Check warning on line 974 in src/types/openapi.generated.ts

View workflow job for this annotation

GitHub Actions / Node.js 18 on ubuntu-latest

tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
*/
throttled_only?: boolean;
};
Expand Down Expand Up @@ -1429,6 +1429,20 @@
max_speakers_expected?: number | null;
};

/**
* Options for controlling the behavior of Automatic Language Detection
*/
export type LanguageDetectionOptions = {
/**
* A list of languages that the audio could be expected to be.
*/
expected_languages?: string[] | null;
/**
* The language to fallback to in case the language detection does not predict any of the expected ones.
*/
fallback_language?: string | null;
};

/**
* The speech model to use for the transcription.
*/
Expand Down Expand Up @@ -3006,6 +3020,10 @@
* @defaultValue false
*/
language_detection?: boolean;
/**
* Options for controlling the behavior of Automatic Language Detection
*/
language_detection_options?: LanguageDetectionOptions;
/**
* Enable {@link https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription | Multichannel } transcription, can be true or false.
* @defaultValue false
Expand Down