From a36de1afd15b5d4b15902fb06729ef35c26ee234 Mon Sep 17 00:00:00 2001 From: oturbitt-aai Date: Fri, 4 Dec 2026 10:22:33 +0000 Subject: [PATCH 1/5] docs(sync): document en_au and en_uk language codes The sync API accepts en_au and en_uk in language_codes and returns English with Australian or British spelling, also when prompt is set. Document both codes on SyncTranscriptionConfig, in the README and in CLAUDE.md, and bump the version to 1.10.14. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 6 ++++-- README.md | 6 ++++-- assemblyai/__version__.py | 2 +- assemblyai/types.py | 6 ++++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index a79041a..cd33fef 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -205,8 +205,10 @@ result = aai.SyncTranscriber().transcribe("./reply.wav", config=config) **Language**: `language_codes` takes a list of ISO 639-1 codes — a single-element list for monolingual audio or several codes for multilingual audio — and steers the default -prompt toward those languages; ignored when you pass a custom `prompt`. -Supported: en, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh. +prompt toward those languages; ignored when you pass a custom `prompt`. `en_au` and +`en_uk` return English with Australian or British spelling ("colour", "centre"), also +with a custom `prompt`. +Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh. **Word timestamps** are opt-in. By default words carry `text` and `confidence` only — `start`/`end` are `None`. `timestamps=True` computes accurate per-word timings for a diff --git a/README.md b/README.md index 105d5c5..2ecf676 100644 --- a/README.md +++ b/README.md @@ -483,14 +483,16 @@ result = aai.SyncTranscriber().transcribe(raw_pcm_bytes, config=config)
Set the transcription language -`language_codes` steers the model toward one or more languages — a single-element list for monolingual audio, or several codes for multilingual audio. It is mutually exclusive with `prompt`; pass one or the other, not both. +`language_codes` steers the model toward one or more languages — a single-element list for monolingual audio, or several codes for multilingual audio. A custom `prompt` replaces this steering. + +`en_au` and `en_uk` return English with Australian or British spelling, such as "colour" and "centre". The spelling also applies when you pass a custom `prompt`. ```python import assemblyai as aai aai.settings.api_key = "" -config = aai.SyncTranscriptionConfig(language_codes=["es"]) # or ["en", "es"] for multilingual +config = aai.SyncTranscriptionConfig(language_codes=["es"]) # or ["en", "es"] for multilingual, ["en_au"] for Australian spelling result = aai.SyncTranscriber().transcribe("./call.wav", config=config) print(result.text) ``` diff --git a/assemblyai/__version__.py b/assemblyai/__version__.py index b775394..f5d43bc 100644 --- a/assemblyai/__version__.py +++ b/assemblyai/__version__.py @@ -1 +1 @@ -__version__ = "1.10.13" +__version__ = "1.10.14" diff --git a/assemblyai/types.py b/assemblyai/types.py index e12ed91..71da1a2 100644 --- a/assemblyai/types.py +++ b/assemblyai/types.py @@ -2935,8 +2935,10 @@ class SyncTranscriptionConfig(BaseModel): list (e.g. `["es"]`) for monolingual audio, or several codes (e.g. `["en", "es"]`) for multilingual audio. Overrides the default prompt to guide the model to the named language(s); ignored when `prompt` is set. - Defaults to None. Supported: en, es, de, fr, it, pt, tr, nl, sv, no, - da, fi, hi, vi, ar, he, ja, ur, zh.""" + `en_au` and `en_uk` return English with Australian or British spelling + (e.g. "colour", "centre"), also when `prompt` is set. + Defaults to None. Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, + nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh.""" sample_rate: Optional[int] = None "Source sample rate in Hz. Required for raw PCM audio; ignored for WAV." From 9e9571204099b76670048cc3e6a817a2c7a1da29 Mon Sep 17 00:00:00 2001 From: oturbitt-aai Date: Fri, 4 Dec 2026 10:25:30 +0000 Subject: [PATCH 2/5] docs(sync): keep language_codes and prompt documented as exclusive Drop the wording that en_au and en_uk also apply with a custom prompt, and keep the README guidance to pass language_codes or prompt, not both. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 3 +-- README.md | 4 ++-- assemblyai/types.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index cd33fef..9a2b27c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -206,8 +206,7 @@ result = aai.SyncTranscriber().transcribe("./reply.wav", config=config) **Language**: `language_codes` takes a list of ISO 639-1 codes — a single-element list for monolingual audio or several codes for multilingual audio — and steers the default prompt toward those languages; ignored when you pass a custom `prompt`. `en_au` and -`en_uk` return English with Australian or British spelling ("colour", "centre"), also -with a custom `prompt`. +`en_uk` return English with Australian or British spelling ("colour", "centre"). Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh. **Word timestamps** are opt-in. By default words carry `text` and `confidence` only — diff --git a/README.md b/README.md index 2ecf676..b402776 100644 --- a/README.md +++ b/README.md @@ -483,9 +483,9 @@ result = aai.SyncTranscriber().transcribe(raw_pcm_bytes, config=config)
Set the transcription language -`language_codes` steers the model toward one or more languages — a single-element list for monolingual audio, or several codes for multilingual audio. A custom `prompt` replaces this steering. +`language_codes` steers the model toward one or more languages — a single-element list for monolingual audio, or several codes for multilingual audio. It is mutually exclusive with `prompt`; pass one or the other, not both. -`en_au` and `en_uk` return English with Australian or British spelling, such as "colour" and "centre". The spelling also applies when you pass a custom `prompt`. +`en_au` and `en_uk` return English with Australian or British spelling, such as "colour" and "centre". ```python import assemblyai as aai diff --git a/assemblyai/types.py b/assemblyai/types.py index 71da1a2..9855d1a 100644 --- a/assemblyai/types.py +++ b/assemblyai/types.py @@ -2936,7 +2936,7 @@ class SyncTranscriptionConfig(BaseModel): `["en", "es"]`) for multilingual audio. Overrides the default prompt to guide the model to the named language(s); ignored when `prompt` is set. `en_au` and `en_uk` return English with Australian or British spelling - (e.g. "colour", "centre"), also when `prompt` is set. + (e.g. "colour", "centre"). Defaults to None. Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh.""" From 9ae0f33d208f6a65e4d2975a7b25a7fa3f93b75c Mon Sep 17 00:00:00 2001 From: oturbitt-aai Date: Fri, 4 Dec 2026 10:33:18 +0000 Subject: [PATCH 3/5] docs(sync): fixing claudes overly keen edits --- CLAUDE.md | 3 +-- README.md | 4 +--- assemblyai/types.py | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 9a2b27c..21f331e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -205,8 +205,7 @@ result = aai.SyncTranscriber().transcribe("./reply.wav", config=config) **Language**: `language_codes` takes a list of ISO 639-1 codes — a single-element list for monolingual audio or several codes for multilingual audio — and steers the default -prompt toward those languages; ignored when you pass a custom `prompt`. `en_au` and -`en_uk` return English with Australian or British spelling ("colour", "centre"). +prompt toward those languages; ignored when you pass a custom `prompt`. Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh. **Word timestamps** are opt-in. By default words carry `text` and `confidence` only — diff --git a/README.md b/README.md index b402776..105d5c5 100644 --- a/README.md +++ b/README.md @@ -485,14 +485,12 @@ result = aai.SyncTranscriber().transcribe(raw_pcm_bytes, config=config) `language_codes` steers the model toward one or more languages — a single-element list for monolingual audio, or several codes for multilingual audio. It is mutually exclusive with `prompt`; pass one or the other, not both. -`en_au` and `en_uk` return English with Australian or British spelling, such as "colour" and "centre". - ```python import assemblyai as aai aai.settings.api_key = "" -config = aai.SyncTranscriptionConfig(language_codes=["es"]) # or ["en", "es"] for multilingual, ["en_au"] for Australian spelling +config = aai.SyncTranscriptionConfig(language_codes=["es"]) # or ["en", "es"] for multilingual result = aai.SyncTranscriber().transcribe("./call.wav", config=config) print(result.text) ``` diff --git a/assemblyai/types.py b/assemblyai/types.py index 9855d1a..0d12dd6 100644 --- a/assemblyai/types.py +++ b/assemblyai/types.py @@ -2935,8 +2935,6 @@ class SyncTranscriptionConfig(BaseModel): list (e.g. `["es"]`) for monolingual audio, or several codes (e.g. `["en", "es"]`) for multilingual audio. Overrides the default prompt to guide the model to the named language(s); ignored when `prompt` is set. - `en_au` and `en_uk` return English with Australian or British spelling - (e.g. "colour", "centre"). Defaults to None. Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh.""" From 2be0d76b9b53a92a15ffebb99151fca76c8d1d8a Mon Sep 17 00:00:00 2001 From: oturbitt-aai Date: Fri, 4 Dec 2026 10:47:07 +0000 Subject: [PATCH 4/5] docs(sync): list every language code the sync API accepts Add the 13 codes missing from the supported list (ko, ca, gl, ru, ro, et, fa, yue, af, mr, zu, xh, nn), so it matches the 34 codes the service accepts. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 3 ++- assemblyai/types.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 21f331e..352a80b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -206,7 +206,8 @@ result = aai.SyncTranscriber().transcribe("./reply.wav", config=config) **Language**: `language_codes` takes a list of ISO 639-1 codes — a single-element list for monolingual audio or several codes for multilingual audio — and steers the default prompt toward those languages; ignored when you pass a custom `prompt`. -Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh. +Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, +ja, ur, zh, ko, ca, gl, ru, ro, et, fa, yue, af, mr, zu, xh, nn. **Word timestamps** are opt-in. By default words carry `text` and `confidence` only — `start`/`end` are `None`. `timestamps=True` computes accurate per-word timings for a diff --git a/assemblyai/types.py b/assemblyai/types.py index 0d12dd6..7f3f84c 100644 --- a/assemblyai/types.py +++ b/assemblyai/types.py @@ -2936,7 +2936,8 @@ class SyncTranscriptionConfig(BaseModel): `["en", "es"]`) for multilingual audio. Overrides the default prompt to guide the model to the named language(s); ignored when `prompt` is set. Defaults to None. Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, - nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh.""" + nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh, ko, ca, gl, ru, ro, et, + fa, yue, af, mr, zu, xh, nn.""" sample_rate: Optional[int] = None "Source sample rate in Hz. Required for raw PCM audio; ignored for WAV." From 651e1a86689e2063b56108ea687f40e97cab0003 Mon Sep 17 00:00:00 2001 From: oturbitt-aai Date: Fri, 4 Dec 2026 10:53:49 +0000 Subject: [PATCH 5/5] docs(sync): note en_au and en_uk are not ISO 639-1 language_codes takes ISO 639-1 codes plus en_au and en_uk, which are English with Australian or British spelling. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 5 +++-- assemblyai/types.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 352a80b..9ff89c7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -203,8 +203,9 @@ config = aai.SyncTranscriptionConfig( result = aai.SyncTranscriber().transcribe("./reply.wav", config=config) ``` -**Language**: `language_codes` takes a list of ISO 639-1 codes — a single-element list -for monolingual audio or several codes for multilingual audio — and steers the default +**Language**: `language_codes` takes a list of ISO 639-1 codes, plus `en_au` and `en_uk` +for English with Australian or British spelling — a single-element list for monolingual +audio or several codes for multilingual audio — and steers the default prompt toward those languages; ignored when you pass a custom `prompt`. Supported: en, en_au, en_uk, es, de, fr, it, pt, tr, nl, sv, no, da, fi, hi, vi, ar, he, ja, ur, zh, ko, ca, gl, ru, ro, et, fa, yue, af, mr, zu, xh, nn. diff --git a/assemblyai/types.py b/assemblyai/types.py index 7f3f84c..e64f64c 100644 --- a/assemblyai/types.py +++ b/assemblyai/types.py @@ -2931,7 +2931,8 @@ class SyncTranscriptionConfig(BaseModel): last.""" language_codes: Optional[List[str]] = None - """ISO 639-1 codes for the language(s) of the audio — a single-element + """ISO 639-1 codes for the language(s) of the audio, plus `en_au` and + `en_uk` for English with Australian or British spelling — a single-element list (e.g. `["es"]`) for monolingual audio, or several codes (e.g. `["en", "es"]`) for multilingual audio. Overrides the default prompt to guide the model to the named language(s); ignored when `prompt` is set.