diff --git a/package.json b/package.json index 0cbd0b7..fcf3468 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/types/openapi.generated.ts b/src/types/openapi.generated.ts index 70b43a5..5225fd5 100644 --- a/src/types/openapi.generated.ts +++ b/src/types/openapi.generated.ts @@ -1429,6 +1429,20 @@ export type SpeakerOptions = { 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. */ @@ -3006,6 +3020,10 @@ export type TranscriptOptionalParams = { * @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