Skip to content

feat: add localization option to language_detection_options - #165

Open
gsharp-aai wants to merge 1 commit into
AssemblyAI:mainfrom
gsharp-aai:gsharp/add-localization
Open

feat: add localization option to language_detection_options#165
gsharp-aai wants to merge 1 commit into
AssemblyAI:mainfrom
gsharp-aai:gsharp/add-localization

Conversation

@gsharp-aai

Copy link
Copy Markdown
Contributor

Summary

Adds the localization option to language_detection_options, exposing a new field available in the AssemblyAI API. When language detection resolves to English, localization renders the transcript text in a regional spelling variant (e.g. en_au, en_uk) while detection and code-switching continue to work as before.

Changes

  • Add localization?: string[] | null to LanguageDetectionOptions
  • Bump version to 4.36.5

Usage

const transcript = await client.transcripts.transcribe({
  audio: audioUrl,
  language_detection: true,
  language_detection_options: {
    localization: ["en_au"],
  },
});

Exposes the `localization` option on `language_detection_options`. When
language detection resolves to English, `localization` renders the transcript
in a regional spelling variant (e.g. "en_au", "en_uk").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant