Skip to content

Commit d132278

Browse files
authored
Merge pull request #100 from AssemblyAI/DAF0BAB42D2DA65E0EFFC2912E49A516
Sync from internal repo (YYYY/MM/DD)
2 parents 0724496 + 1b99dc6 commit d132278

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "assemblyai",
3-
"version": "4.14.2",
3+
"version": "4.15.0",
44
"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.",
55
"engines": {
66
"node": ">=18"

src/types/openapi.generated.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,20 @@ export type SpeakerOptions = {
14291429
max_speakers_expected?: number | null;
14301430
};
14311431

1432+
/**
1433+
* Options for controlling the behavior of Automatic Language Detection
1434+
*/
1435+
export type LanguageDetectionOptions = {
1436+
/**
1437+
* A list of languages that the audio could be expected to be.
1438+
*/
1439+
expected_languages?: string[] | null;
1440+
/**
1441+
* The language to fallback to in case the language detection does not predict any of the expected ones.
1442+
*/
1443+
fallback_language?: string | null;
1444+
};
1445+
14321446
/**
14331447
* The speech model to use for the transcription.
14341448
*/
@@ -3006,6 +3020,10 @@ export type TranscriptOptionalParams = {
30063020
* @defaultValue false
30073021
*/
30083022
language_detection?: boolean;
3023+
/**
3024+
* Options for controlling the behavior of Automatic Language Detection
3025+
*/
3026+
language_detection_options?: LanguageDetectionOptions;
30093027
/**
30103028
* Enable {@link https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription | Multichannel } transcription, can be true or false.
30113029
* @defaultValue false

0 commit comments

Comments
 (0)