Skip to content

Commit a0b3878

Browse files
chore: release v1.2.0 — docs, changelog, version bump
1 parent f87db6c commit a0b3878

3 files changed

Lines changed: 42 additions & 8 deletions

File tree

changelog.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/).
66

7+
## [v1.2.0] — 2026-03-27
8+
9+
### Fixed
10+
11+
- **`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.
12+
- **`OpenAIRealtime` / `VertexAI` (MLLM)** — Agent-level `greeting`, `failure_message`, and `max_history` overrides are now correctly applied when the agent is in MLLM mode. Previously these values were silently dropped.
13+
14+
### Changed
15+
16+
- **`OpenAITTS`** — Renamed constructor parameter `key``api_key` to match the Agora server API expectation. ⚠️ **Breaking change.**
17+
- **`CartesiaTTS`** — Renamed constructor parameter `key``api_key`. Voice is now serialized as `{"mode": "id", "id": "<voice_id>"}` instead of a flat `voice_id` string. ⚠️ **Breaking change.**
18+
- **`HeyGenAvatar`** — Removed legacy fields `avatar_name`, `voice_id`, `language`, `version`. Added `agora_token`, `avatar_id`, `enable`, `disable_idle_timeout`, `activity_idle_timeout`. The config now includes a top-level `enable` field (defaults `true`). ⚠️ **Breaking change.**
19+
20+
### Added
21+
22+
- **`OpenAITTS`** — New optional parameters: `response_format` (str, e.g. `"pcm"`) and `speed` (float).
23+
- **`CartesiaTTS`**`voice_id` user-facing field is preserved; voice is serialized to the required nested object format automatically.
24+
- **`RimeTTS`** — New optional parameters: `lang` (str), `sampling_rate` (int, serialized as `samplingRate`), `speed_alpha` (float, serialized as `speedAlpha`).
25+
- **`OpenAIRealtime`** — New optional parameters: `predefined_tools` (List[str]), `failure_message` (str), `max_history` (int).
26+
- **`VertexAI` (MLLM)** — New optional parameters: `predefined_tools` (List[str]), `failure_message` (str), `max_history` (int).
27+
- **`HeyGenAvatar`** — New fields: `agora_token` (str, optional), `avatar_id` (str, optional), `enable` (bool, optional, default `True`), `disable_idle_timeout` (bool, optional), `activity_idle_timeout` (int, optional).
28+
729
## [v1.1.0] — 2026-03-17
830

931
### Added

docs/reference/vendors.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ llm = Gemini(api_key='your-google-key', model='gemini-2.0-flash-exp')
139139

140140
| Parameter | Type | Required | Default | Description |
141141
|---|---|---|---|---|
142-
| `key` | `str` | Yes || OpenAI API key |
142+
| `api_key` | `str` | Yes || OpenAI API key |
143143
| `voice` | `str` | Yes || Voice: `alloy`, `echo`, `fable`, `onyx`, `nova`, `shimmer` |
144144
| `model` | `str` | No | `None` | Model: `tts-1` or `tts-1-hd` |
145+
| `response_format` | `str` | No | `None` | Audio format (e.g., `pcm`) |
146+
| `speed` | `float` | No | `None` | Speech speed multiplier |
145147
| `skip_patterns` | `List[int]` | No | `None` | Skip patterns |
146148

147149
Fixed sample rate: 24000 Hz.
@@ -150,8 +152,8 @@ Fixed sample rate: 24000 Hz.
150152

151153
| Parameter | Type | Required | Default | Description |
152154
|---|---|---|---|---|
153-
| `key` | `str` | Yes || Cartesia API key |
154-
| `voice_id` | `str` | Yes || Voice ID |
155+
| `api_key` | `str` | Yes || Cartesia API key |
156+
| `voice_id` | `str` | Yes || Voice ID (serialized as `{"mode": "id", "id": "..."}`) |
155157
| `model_id` | `str` | No | `None` | Model ID |
156158
| `sample_rate` | `int` | No | `None` | Sample rate: 8000–48000 Hz |
157159
| `skip_patterns` | `List[int]` | No | `None` | Skip patterns |
@@ -190,6 +192,9 @@ Fixed sample rate: 24000 Hz.
190192
| `key` | `str` | Yes || Rime API key |
191193
| `speaker` | `str` | Yes || Speaker ID |
192194
| `model_id` | `str` | No | `None` | Model ID |
195+
| `lang` | `str` | No | `None` | Language code |
196+
| `sampling_rate` | `int` | No | `None` | Sampling rate in Hz (serialized as `samplingRate`) |
197+
| `speed_alpha` | `float` | No | `None` | Speed multiplier (serialized as `speedAlpha`) |
193198
| `skip_patterns` | `List[int]` | No | `None` | Skip patterns |
194199

195200
### `FishAudioTTS`
@@ -331,6 +336,9 @@ Fixed sample rate: 24000 Hz.
331336
| `model` | `str` | No | `None` | Model (e.g., `gpt-4o-realtime-preview`) |
332337
| `url` | `str` | No | `None` | Custom WebSocket URL |
333338
| `greeting_message` | `str` | No | `None` | Greeting message |
339+
| `failure_message` | `str` | No | `None` | Message played when the model call fails |
340+
| `max_history` | `int` | No | `None` | Maximum conversation history length |
341+
| `predefined_tools` | `List[str]` | No | `None` | Predefined tools (e.g., `["_publish_message"]`) |
334342
| `input_modalities` | `List[str]` | No | `None` | Input modalities |
335343
| `output_modalities` | `List[str]` | No | `None` | Output modalities |
336344
| `messages` | `List[Dict]` | No | `None` | Conversation messages |
@@ -347,6 +355,9 @@ Fixed sample rate: 24000 Hz.
347355
| `instructions` | `str` | No | `None` | System instructions |
348356
| `voice` | `str` | No | `None` | Voice name (e.g., `Aoede`, `Charon`) |
349357
| `greeting_message` | `str` | No | `None` | Greeting message |
358+
| `failure_message` | `str` | No | `None` | Message played when the model call fails |
359+
| `max_history` | `int` | No | `None` | Maximum conversation history length |
360+
| `predefined_tools` | `List[str]` | No | `None` | Predefined tools (e.g., `["_publish_message"]`) |
350361
| `input_modalities` | `List[str]` | No | `None` | Input modalities |
351362
| `output_modalities` | `List[str]` | No | `None` | Output modalities |
352363
| `messages` | `List[Dict]` | No | `None` | Conversation messages |
@@ -365,10 +376,11 @@ Required TTS sample rate: **24000 Hz**
365376
| `api_key` | `str` | Yes || HeyGen API key |
366377
| `quality` | `str` | Yes || Avatar quality: `low`, `medium`, or `high` |
367378
| `agora_uid` | `str` | Yes || Agora UID for avatar video stream |
368-
| `avatar_name` | `str` | No | `None` | Avatar name |
369-
| `voice_id` | `str` | No | `None` | Voice ID |
370-
| `language` | `str` | No | `None` | Language code |
371-
| `version` | `str` | No | `None` | API version (`v1` or `v2`) |
379+
| `agora_token` | `str` | No | `None` | RTC token for avatar authentication |
380+
| `avatar_id` | `str` | No | `None` | HeyGen avatar ID |
381+
| `enable` | `bool` | No | `True` | Enable or disable the avatar |
382+
| `disable_idle_timeout` | `bool` | No | `None` | Disable the idle timeout |
383+
| `activity_idle_timeout` | `int` | No | `None` | Idle timeout in seconds (default: 120) |
372384

373385
### `AkoolAvatar`
374386

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "agora-agent-server-sdk"
33

44
[tool.poetry]
55
name = "agora-agent-server-sdk"
6-
version = "1.1.0"
6+
version = "1.2.0"
77
description = ""
88
readme = "README.md"
99
authors = []

0 commit comments

Comments
 (0)