You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(agentkit): source ASR language from turn detection
Optional longer body:
Keep provider STT language settings inside asr.params, populate REST asr.language from
turn_detection.language, and treat Ares as provider-only.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ pip install agora-agents
20
20
## Quick Start
21
21
22
22
Start with the `Agent` builder: create a client with app credentials, choose your ASR, LLM, and TTS providers, then start a session. Omit vendor API keys for supported Agora-managed models, or provide keys when you want BYOK.
23
-
Set Agora interaction language with `turn_detection.language`; provider-specific STT language values remain under `asr.params`.
23
+
Set Agora interaction language with `turn_detection.language`; provider-specific STT language values remain under `asr.params`. Ares uses only the REST `asr.language` value sourced from `turn_detection.language`.
Copy file name to clipboardExpand all lines: changelog.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
8
8
9
9
### Added
10
10
11
-
-**Turn detection language** — AgentKit now manages Agora interaction language through `turn_detection.language`, validates it against the supported BCP-47 language list, and sends the default `en` when no language is provided.
11
+
-**Turn detection language** — AgentKit now manages Agora interaction language through `turn_detection.language`, validates it against the supported BCP-47 language list, and sends the default `en-US` when no language is provided.
12
12
-**Provider parameter parity** — ASR, LLM, MLLM, TTS, and avatar wrappers expose typed provider parameters plus passthrough fields where the generated core supports additional properties.
13
13
14
14
### Changed
@@ -21,7 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
21
21
### Fixed
22
22
23
23
-**Managed-provider validation** — AgentKit validation now distinguishes preset-backed providers from BYOK providers so required provider fields are only required when credentials are caller-supplied.
24
-
-**Language placement** — Provider-specific STT language values remain under `asr.params`, while Agora interaction languageis emitted separately as`turn_detection.language`.
24
+
-**Language placement** — Provider-specific STT language values remain under `asr.params`; the REST `asr.language` field is populated from`turn_detection.language`.
25
25
26
26
## [v2.0.0] — 2026-05-21
27
27
@@ -114,7 +114,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
114
114
115
115
### Fixed
116
116
117
-
-**`AresSTT`** — Removed redundant `language` key from the `params` dict. Language is now emitted only at the top level. `params` is only included when `additional_params` is provided.
117
+
-**`AresSTT`** — Removed redundant `language` key from the `params` dict. Ares only selects the provider; AgentKit populates REST `asr.language` from `turn_detection.language`. `params` is only included when `additional_params` is provided.
118
118
-**`OpenAIRealtime` / `VertexAI` (MLLM)** — Agent-level `greeting` and `failure_message` defaults are now correctly applied when missing in MLLM mode. Previously these values were silently dropped.
119
119
-**`VertexAI` (MLLM)** — `messages` is emitted at the MLLM top level, matching the generated core SDK contract.
Copy file name to clipboardExpand all lines: docs/concepts/vendors.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ tts = ElevenLabsTTS(
75
75
76
76
Used with `agent.with_stt()`.
77
77
78
-
Use `turn_detection.language` for Agora interaction language; it defaults to `en`. STT vendor `language` options are serialized under `asr.params` using each provider's own format.
78
+
Use `turn_detection.language` for Agora interaction language; it defaults to `en-US`. STT vendor `language` options are serialized under `asr.params` using each provider's own format. Ares does not take a provider language option; AgentKit uses `turn_detection.language` for REST `asr.language`.
Copy file name to clipboardExpand all lines: docs/reference/vendors.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -318,7 +318,7 @@ The SDK also includes named helpers for the remaining Agora-supported LLM provid
318
318
319
319
## STT Vendors
320
320
321
-
Use `turn_detection.language` for Agora interaction language; it defaults to `en`. Provider-specific language values remain under `asr.params` and may use a different format.
321
+
Use `turn_detection.language` for Agora interaction language; it defaults to `en-US`. Provider-specific language values remain under `asr.params` and may use a different format. AgentKit populates REST `asr.language` from `turn_detection.language`.
322
322
323
323
### `SpeechmaticsSTT`
324
324
@@ -396,7 +396,6 @@ For `nova-2` and `nova-3`, omit `api_key` to use Agora-managed credentials. For
0 commit comments