From b1e7e7cd725dcc42e7718f7212795400a9faca40 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 21:18:36 +0900 Subject: [PATCH 01/14] docs(s3-pro): sampling, normalization, Markdown cleanup and reserved tokens on S3 Pro - Generation settings: on s3-pro, temperature, top_p and repetition_penalty are accepted and validated, but do not change the audio. - Text normalization: what it rewrites and keeps as written, normalize: false, text whose language is not identified, kanji-only Japanese, and Japanese numbers. - Markdown cleanup and reserved tokens: what is removed and what is kept. - Latency & chunk length: chunk_length defaults (API 300, Python SDK TTSConfig 200), and balanced latency points at the S3 Pro benchmarks. - Changelog: an S3 Pro text handling entry, and the with-timestamps routes in the S3 Pro endpoint list. --- developer-guide/getting-started/changelog.mdx | 16 ++++++++++++- .../models-pricing/models/s3-pro.mdx | 24 +++++++++++++++++-- features/text-to-speech.mdx | 11 ++++++--- 3 files changed, 45 insertions(+), 6 deletions(-) diff --git a/developer-guide/getting-started/changelog.mdx b/developer-guide/getting-started/changelog.mdx index a5e33a19..2372e5fe 100644 --- a/developer-guide/getting-started/changelog.mdx +++ b/developer-guide/getting-started/changelog.mdx @@ -4,6 +4,20 @@ description: "Complete release history and version updates for all Fish Audio pr icon: "clock-rotate-left" rss: true --- + + ## S3 Pro text handling + + S3 Pro prepares your text before it reads it: + + - **Text normalization**: dates, times, numbers, currencies, units, phone numbers, URLs, and abbreviations are read the way the surrounding text calls for, in 11 languages. `[bracket]` directions and tags are left as written. + - **Markdown cleanup**: links are read as their text, and formatting such as bold, headings, and list markers is removed, so you can send a language model's reply as it is. + - **Reserved tokens**: the model's reserved `<|…|>` tokens are removed from your text. Speaker tags and phoneme markers are kept. + + On `s3-pro`, an MP3 stream begins with audio, with no empty frame in front of it, and Hindi, Arabic, and Urdu text is split into sentences at the sentence-ending punctuation of those scripts, such as `।`, `؟`, and `۔`. + + [Text normalization](/developer-guide/models-pricing/models/s3-pro#text-normalization) | [Markdown cleanup](/developer-guide/models-pricing/models/s3-pro#markdown-cleanup) | [S3 Pro normalization rules](/features/text-to-speech#s3-pro-normalization) + + ## Transcribe 2 @@ -21,7 +35,7 @@ rss: true Our most capable text-to-speech model, and the one we now recommend. S3 Pro is tied for #1 overall on the Artificial Analysis Speech Arena, is #1 on Artificial Analysis Pronunciation Robustness, scores 100% accuracy on the Cekura TTS benchmark, and has lower latency than S2.1-Pro, with a median server-side time to first audio of about 40 ms with `latency: "low"` (measured at the inference service, one request at a time, excluding network time). It costs $15.00 / M UTF-8 bytes, and TTFA, DPA, and zero data retention (ZDR) guarantees are available under an enterprise agreement. It has the same `[bracket]` natural-language control and multi-speaker dialogue as the S2 models, and accepts the paired scoped tags of Drama 3, such as `…`, to change the delivery of specific words. - Use model ID `s3-pro` on `POST /v1/tts` and the TTS WebSocket. The Quick Start and cookbook examples now use `s3-pro`. + Use model ID `s3-pro` on `POST /v1/tts`, the with-timestamps routes (`POST /v1/tts/stream/with-timestamp` and the `/v1/tts/live/with-timestamp` WebSocket), and the TTS WebSocket. The Quick Start and cookbook examples now use `s3-pro`. The free `s2.1-pro-free` model has been taken offline after its free period ended on November 30, 2026. Requests that still send it are served and billed as the default model. See [Model Deprecations](/developer-guide/models-pricing/deprecations). diff --git a/developer-guide/models-pricing/models/s3-pro.mdx b/developer-guide/models-pricing/models/s3-pro.mdx index 021bd847..838a3a1f 100644 --- a/developer-guide/models-pricing/models/s3-pro.mdx +++ b/developer-guide/models-pricing/models/s3-pro.mdx @@ -64,11 +64,31 @@ Use any voice from the Voice Library, a voice model you created, or clone a voic ## Text normalization -`normalize` is on by default. S3 Pro uses context-aware text normalization: it reads numbers, dates, currencies, units, abbreviations, and symbols the way the surrounding text calls for. It covers the 11 Tier 1 languages today, and the list is actively growing. S3 Pro reads text in every other language natively, as written. `language` still works, and a regional tag such as `es-MX` or `zh-TW` is normalized with its base language. See [S3 Pro normalization](/features/text-to-speech#s3-pro-normalization). +`normalize` is on by default. S3 Pro uses context-aware text normalization: it reads dates, times, numbers, currencies, units, phone numbers, URLs, abbreviations, and symbols the way the surrounding text calls for. `[bracket]` directions, scoped tags, and speaker tags are left as written. It covers the 11 Tier 1 languages today, and the list is actively growing. S3 Pro reads text in every other language natively, as written, and does the same for text whose language isn't identified, with no error. Send `normalize: false` to turn normalization off. `language` still works, and a regional tag such as `es-MX` or `zh-TW` is normalized with its base language. For Japanese, send `language: "ja"`: without it, text written only in kanji, with no kana, is normalized as Chinese. See [S3 Pro normalization](/features/text-to-speech#s3-pro-normalization). + +## Markdown cleanup + +S3 Pro removes Markdown formatting before it reads your text, so you can send a language model's reply as it is. This applies on `POST /v1/tts`, the with-timestamps routes, and the TTS WebSocket. + +| You write | S3 Pro reads | +| --------------------------------------------------------------------------------------- | ------------ | +| A link, `[text](https://example.com)` | `text` | +| An image, `![alt](https://example.com/a.png)` | Nothing | +| Bold or italics, `**text**`, `__text__`, or `*text*` | `text` | +| Inline code, `` `text` `` | `text` | +| A heading, `# text` | `text` | +| A list item, `- text`, `* text`, or `+ text`, including a task box such as `- [x] text` | `text` | +| A quote, `> text` | `text` | + +Bare URLs, numbered lists, tables, code blocks, `[bracket]` directions, and `<|…|>` tags are left as written. + +### Reserved tokens + +Of the `<|…|>` tokens, you can write speaker tags (`<|speaker:0|>`) and [phoneme markers](/developer-guide/core-features/fine-grained-control) (`<|phoneme_start|>`, `<|phoneme_end|>`) in your text. The model's other reserved tokens in that form are removed before synthesis, with no error. ## Generation settings -On `s3-pro`, sampling and chunking parameters are managed automatically by the service. +On `s3-pro`, the service sets the sampling. `temperature`, `top_p`, and `repetition_penalty` are accepted and validated as on other models, so an invalid value is still rejected, but they don't change the audio. Chunking is managed automatically by the service. ## Supported languages diff --git a/features/text-to-speech.mdx b/features/text-to-speech.mdx index 955e49c2..e1377634 100644 --- a/features/text-to-speech.mdx +++ b/features/text-to-speech.mdx @@ -269,10 +269,10 @@ audio = client.tts.convert( `latency` trades stability for speed; `chunk_length` controls how much text the engine batches before it starts generating. -- `latency="balanced"` (default): lower time-to-first-audio (~300ms). Good for interactive use. +- `latency="balanced"` (default): lower time-to-first-audio. Good for interactive use. For the measured time to first audio on `s3-pro` with `balanced` and `low`, see [S3 Pro benchmarks](/developer-guide/models-pricing/models/s3-pro#benchmarks). - `latency="normal"`: most stable output, at slightly higher latency. - `latency="low"`: lowest latency. Send it in the API request body, or with the JavaScript SDK. The Python SDK's `TTSConfig` accepts `balanced` and `normal`. -- `chunk_length` (`100`–`300`, default `200`): smaller chunks start audio sooner; larger chunks are more efficient for long text. On `s3-pro`, chunking is managed automatically by the service. +- `chunk_length` (`100`–`300`): smaller chunks start audio sooner; larger chunks are more efficient for long text. The API default is `300`; the Python SDK's `TTSConfig` sends `200` unless you set it. On `s3-pro`, chunking is managed automatically by the service. ```python Python @@ -376,8 +376,13 @@ The same field is accepted by `POST /v1/tts` (JSON and MessagePack), the with-ti `s3-pro` uses context-aware text normalization: it reads numbers, dates, currencies, units, abbreviations, and symbols the way the surrounding text calls for. It covers 11 languages today, and the list is actively growing: English (`en`), Chinese (`zh`), Japanese (`ja`), Korean (`ko`), Spanish (`es`), French (`fr`), German (`de`), Portuguese (`pt`), Russian (`ru`), Arabic (`ar`), and Hindi (`hi`). +- It rewrites dates, times, numbers and ordinals, currency amounts, units and percentages, ranges and scores, fractions and math, phone numbers and other digit strings, codes and version numbers, URLs and email addresses, abbreviations and acronyms, Roman numerals, and symbols. The rest of the text is kept as written. +- `[bracket]` directions, paired tags such as `…`, speaker tags such as `<|speaker:0|>`, and phoneme markers are kept as written. +- `normalize: false` turns it off. - Regional tags work: `es-MX` is normalized as Spanish and `zh-TW` as Chinese. -- Text in any other language is read by S3 Pro as written, with no error, and no other language's rules are applied to it. +- Without `language`, the language is identified from the text. Text with kana is normalized as Japanese, text with Chinese characters and no kana as Chinese, and text in Hangul as Korean. Japanese written only in kanji, with no kana, is therefore normalized as Chinese: send `language: "ja"` for Japanese text. +- Japanese numbers are read with their counter: `2024年` is read as 二千二十四年. +- Text in any other language, or whose language isn't identified, is read by S3 Pro as written, with no error, and no other language's rules are applied to it. #### Other models From b802dbc8a5c8d00d263d0cee0aef16089bdc1a2e Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 21:20:27 +0900 Subject: [PATCH 02/14] docs(transcribe): transcribe-2-pro as the recommended model, key term rules, and manual turns - Speech to Text guide, its API reference and the agent quickstart name transcribe-2-pro as the recommended model, as Models Overview and the Transcribe 2 model card do, and link to the model card for its added fields. - Transcribe 2 model card: an exact duplicate key term is used once, a case- or width-only duplicate is rejected, the characters a term can't contain, and that transcribe-1 and transcribe-1-pro ignore keyterms, text_format and verbatim. - Realtime ASR, manual mode: any audio that is not digital silence opens a turn, and silence_timeout_ms ends a turn only once speech has been detected in it. --- .../endpoint/openapi-v1/speech-to-text.mdx | 11 ++++++----- api-reference/endpoint/websocket/asr-realtime.mdx | 8 ++++---- .../models-pricing/models/transcribe-2.mdx | 4 +++- developer-guide/resources/agent-quickstart.mdx | 2 +- features/speech-to-text.mdx | 13 +++++++------ 5 files changed, 21 insertions(+), 17 deletions(-) diff --git a/api-reference/endpoint/openapi-v1/speech-to-text.mdx b/api-reference/endpoint/openapi-v1/speech-to-text.mdx index 1d687a25..2e429114 100644 --- a/api-reference/endpoint/openapi-v1/speech-to-text.mdx +++ b/api-reference/endpoint/openapi-v1/speech-to-text.mdx @@ -1,7 +1,7 @@ --- openapi: post /v1/asr title: "Speech to Text" -description: "Transcribe audio with transcribe-1-pro, the recommended speech-to-text model: request and response fields, speaker turns, limits, formats, and errors" +description: "Transcribe audio with transcribe-2-pro, the recommended speech-to-text model, or transcribe-1-pro: request and response fields, speaker turns, limits, formats, and errors" icon: "microphone" iconType: "solid" --- @@ -16,10 +16,11 @@ iconType: "solid" Send `POST https://api.fish.audio/v1/asr` with `Authorization: Bearer ` and a **`model` HTTP header** that selects the model. The request is synchronous: the response arrives when the whole file has been transcribed. -| Header value | Use it for | -| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `transcribe-1-pro` | Recommended. Recordings up to 60 minutes, including multi-speaker conversations: speaker markers and speaker turns, with emotion and vocal-event cues preserved. | -| `transcribe-1` | General transcription of short recordings. Used when the `model` header is missing or not an exact match. | +| Header value | Use it for | +| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `transcribe-2-pro` | Recommended. The same request fields and response as `transcribe-1-pro`, plus language hints, `text_format`, `verbatim`, and `keyterms`. See the [Transcribe 2 model card](/developer-guide/models-pricing/models/transcribe-2#transcribe-2-pro). | +| `transcribe-1-pro` | Recordings up to 60 minutes, including multi-speaker conversations: speaker markers and speaker turns, with emotion and vocal-event cues preserved. | +| `transcribe-1` | General transcription of short recordings. Used when the `model` header is missing or not an exact match. | Send `model: transcribe-1-pro` with every request, written exactly, in lowercase. If the header is missing, or its value is not an exact match (for example `Transcribe-1-Pro` or `transcribe-1pro`), the request is served and billed as `transcribe-1`, and no error is returned. If you expected `transcribe-1-pro` but the transcript has no speaker markers and you did not send `diarize=false`, check the header. This applies to the API playground on this page too: set its `model` header to `transcribe-1-pro`. diff --git a/api-reference/endpoint/websocket/asr-realtime.mdx b/api-reference/endpoint/websocket/asr-realtime.mdx index 03c8e7ad..000df01c 100644 --- a/api-reference/endpoint/websocket/asr-realtime.mdx +++ b/api-reference/endpoint/websocket/asr-realtime.mdx @@ -143,7 +143,7 @@ This judgement needs `auto` in the **first** `config`; a `config` without `mode` **`vad`.** A turn ends after `silence_timeout_ms` of silence, with `reason: "eot"`. Every turn is a user turn. -**`manual`.** A turn ends when you send `finalize`. A turn that has been silent for `silence_timeout_ms` ends too; at the default (60000) that never happens, because the 60-second turn limit comes first. Every turn is a user turn. +**`manual`.** Any audio that is not digital silence (all-zero samples) opens a turn, and the turn ends when you send `finalize`. A turn that has been silent for `silence_timeout_ms` ends too, once speech has been detected in it; at the default (60000) that never happens, because the 60-second turn limit comes first. Every turn is a user turn. In every mode, a turn ends after 60 seconds at the latest, and an `auto` turn without `user_turn_taken` after 20 seconds (`reason: "max_turn_duration"`). @@ -155,7 +155,7 @@ The default, the allowed range (inclusive) and the meaning depend on the mode: | -------- | ------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `auto` | 5000 | 3000–60000 | A safety net for user turns: a user turn with no voice activity for this long ends with `reason: "silence_timeout"`. Turn detection normally ends a turn long before that. Non-user turns do not use it. | | `vad` | 700 | 300–60000 | The silence that ends a turn (`reason: "eot"`). | -| `manual` | 60000 | 300–60000 | A safety net: a turn silent for this long ends with `reason: "silence_timeout"`. At 60000 it never fires. | +| `manual` | 60000 | 300–60000 | A safety net: a turn silent for this long, once speech has been detected in it, ends with `reason: "silence_timeout"`. At 60000 it never fires. | - In `vad` mode, every pause of this length ends the turn, including a pause inside a sentence. At short values, one sentence can arrive as several turns, and a word that starts softly right after such a pause can be split across two turns; both happen more often the shorter the value. For conversational speech, start with 500 ms or more. - If you leave it out, the mode's default applies. `session_started` and `configured` always show the value in effect. @@ -183,7 +183,7 @@ Send audio after `session_started` (see [`config`](#config) for audio sent earli Commit the current turn now, with `reason: "finalize"`. In `auto` mode, the server first settles its turn decisions on the audio already sent: a turn they already ended (possibly with `user_turn: false`) is not reopened, and if no turn is open after that, `finalize` is ignored. The turn `finalize` ends is always a user turn; `user_turn_taken` is sent first if it has not been. -**Push-to-talk:** use `mode: "manual"` and send `finalize` when the button is released. Send audio while the button is held; a turn opens on voice activity, so if none was detected, no turn is open and `finalize` is ignored. While the button is up you can send no audio, which keeps other sounds from opening turns; send `keepalive` then. +**Push-to-talk:** use `mode: "manual"` and send `finalize` when the button is released. Send audio while the button is held; any audio that is not digital silence opens a turn, so if you sent none, no turn is open and `finalize` is ignored. While the button is up you can send no audio, which keeps other sounds from opening turns; send `keepalive` then. ### `configure` @@ -272,7 +272,7 @@ Send audio after this message. | `turn_index` | integer | The turn that opened, counting from 0. | | `audio_ms` | integer | Where the turn starts, slightly before the speech. | -A turn opened: voice activity began. It is sent shortly after voice activity begins. In `auto` mode, noise and other voices open turns too, so wait for `user_turn_taken` before treating it as the user's turn. In `auto` mode it can come later if you stream faster than real time or in messages of about 0.3 seconds or more; the turns are the same as for a real-time stream. If the speaker is still talking when a turn ends, the next turn starts at that turn's `audio_end_ms`. +A turn opened: voice activity began. It is sent shortly after voice activity begins; in `manual` mode, as soon as audio that is not digital silence arrives. In `auto` mode, noise and other voices open turns too, so wait for `user_turn_taken` before treating it as the user's turn. In `auto` mode it can come later if you stream faster than real time or in messages of about 0.3 seconds or more; the turns are the same as for a real-time stream. If the speaker is still talking when a turn ends, the next turn starts at that turn's `audio_end_ms`. ### `user_turn_taken` diff --git a/developer-guide/models-pricing/models/transcribe-2.mdx b/developer-guide/models-pricing/models/transcribe-2.mdx index 3902a438..7726e24b 100644 --- a/developer-guide/models-pricing/models/transcribe-2.mdx +++ b/developer-guide/models-pricing/models/transcribe-2.mdx @@ -26,7 +26,9 @@ Write the `model` header value exactly as shown. A file request without it, or w - **Language hints**: `language` is passed to the model, which uses it to transcribe. It can be an ISO 639-1 or ISO 639-3 code, an English language name, or a locale such as `pt-BR`. - **Text format**: `text_format` is `written` (the default) for digits and symbols, or `spoken` for numbers, dates, times, and amounts in words. When you also send key terms, `spoken` is not always followed. - **Verbatim**: `verbatim` is `true` by default and keeps filler words, stutters, repetitions, and false starts. `false` leaves out filler sounds, stutters, accidental repetitions, and short false starts. It never rewords. -- **Key terms**: `keyterms` takes up to 128 words or short phrases, each at most 50 characters and 8 words, to spell as you list them. +- **Key terms**: `keyterms` takes up to 128 words or short phrases, each at most 50 characters and 8 words, to spell as you list them. A term listed twice is used once. Two terms that differ only in case or in character width (full-width and half-width forms) are rejected. A term can't contain an ASCII comma, a control character, or any of `\ < > [ ] { }`. + +On `transcribe-1` and `transcribe-1-pro`, `keyterms`, `text_format`, and `verbatim` are ignored, with no error. Use it for subtitles for the deaf and hard of hearing (SDH), contact-center quality assurance, sales call analytics, or general transcription. See [Speech to Text](/features/speech-to-text). diff --git a/developer-guide/resources/agent-quickstart.mdx b/developer-guide/resources/agent-quickstart.mdx index 98be3f37..1fdcb6fc 100644 --- a/developer-guide/resources/agent-quickstart.mdx +++ b/developer-guide/resources/agent-quickstart.mdx @@ -141,7 +141,7 @@ Not a coding agent installing a skill, but an autonomous agent, RAG pipeline, or - Base API URL: `https://api.fish.audio` - Authentication: `Authorization: Bearer ` - TTS model selection: optional `model` header (`s1` (deprecated), `s2-pro`, `s2.1-pro`, `drama-3`, `s3-pro`). Recommended: `s3-pro`. If omitted, the server uses `s2.1-pro`. S1 is deprecated and will be retired on December 31, 2026. After that date, requests that specify `s1` are served by `s2.1-pro` - - ASR model selection: `model` header on `POST /v1/asr` (`transcribe-1-pro`, `transcribe-1`). Recommended: `transcribe-1-pro` (speaker turns, long recordings, emotion cues); send it explicitly. If the header is missing or not an exact match, the request is served and billed as `transcribe-1`. The `/v1/asr` entry in `openapi.json` does not yet list the `transcribe-1-pro` fields, `request_id`, `speaker_turns`, or the error `code`; for those, follow the [Speech to Text API reference](https://docs.fish.audio/api-reference/endpoint/openapi-v1/speech-to-text.md) + - ASR model selection: `model` header on `POST /v1/asr` (`transcribe-2-pro`, `transcribe-1-pro`, `transcribe-1`). Recommended: `transcribe-2-pro`, which takes the `transcribe-1-pro` fields (speaker turns, long recordings, emotion cues) plus `text_format`, `verbatim`, and `keyterms`; send it explicitly. If the header is missing or not an exact match, the request is served and billed as `transcribe-1`. The `/v1/asr` entry in `openapi.json` does not yet list the Pro model fields, `request_id`, `speaker_turns`, or the error `code`; for those, follow the [Speech to Text API reference](https://docs.fish.audio/api-reference/endpoint/openapi-v1/speech-to-text.md) - Main REST endpoints: - `POST /v1/tts` - `POST /v1/asr` diff --git a/features/speech-to-text.mdx b/features/speech-to-text.mdx index 79b91793..272cd5da 100644 --- a/features/speech-to-text.mdx +++ b/features/speech-to-text.mdx @@ -1,11 +1,11 @@ --- title: "Speech to Text" sidebarTitle: "Overview" -description: "Transcribe audio with transcribe-1-pro, including word-level timestamps, speaker turns for multi-speaker conversations, long recordings, and emotion cues" +description: "Transcribe audio with transcribe-2-pro, the recommended model, or transcribe-1-pro, including word-level timestamps, speaker turns for multi-speaker conversations, long recordings, and emotion cues" icon: "waveform" --- -Turn spoken audio into text with `transcribe-1-pro`, Fish Audio's recommended automatic speech recognition (ASR) model. Send an audio file to `POST /v1/asr` with the header `model: transcribe-1-pro` to receive a transcript, its duration, and optional word-level timestamps. Pro handles multi-speaker conversations and recordings up to 60 minutes: it marks speakers inline in the transcript, returns a structured list of speaker turns when you request timestamps, and keeps emotion and vocal-event cues. To transcribe live audio as people speak, with turn detection for voice agents, see [Realtime Speech to Text](/features/speech-to-text/realtime). +Turn spoken audio into text with `transcribe-2-pro`, Fish Audio's recommended automatic speech recognition (ASR) model, or with `transcribe-1-pro`. Send an audio file to `POST /v1/asr` with the `model` header to receive a transcript, its duration, and optional word-level timestamps. `transcribe-2-pro` takes the same fields and returns the same response as `transcribe-1-pro`, which this page describes, and adds language hints, `text_format`, `verbatim`, and `keyterms`: see the [Transcribe 2 model card](/developer-guide/models-pricing/models/transcribe-2#transcribe-2-pro). `transcribe-1-pro` handles multi-speaker conversations and recordings up to 60 minutes: it marks speakers inline in the transcript, returns a structured list of speaker turns when you request timestamps, and keeps emotion and vocal-event cues. To transcribe live audio as people speak, with turn detection for voice agents, see [Realtime Speech to Text](/features/speech-to-text/realtime). Date: Wed, 2 Dec 2026 21:20:38 +0900 Subject: [PATCH 03/14] docs: relative link to Realtime TTS in the Python SDK overview, and the Hermes free-model setting - Python SDK overview: the streaming example's "Learn more" link points at /features/text-to-speech/realtime with a relative path, not at the old realtime-streaming URL. - Hermes Agent: allow_free_model: false keeps the plugin from using s2.1-pro-free; it does not force s2.1-pro, as the plugin's README and settings describe. --- api-reference/sdk/python/overview.mdx | 2 +- developer-guide/integrations/hermes-agent.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-reference/sdk/python/overview.mdx b/api-reference/sdk/python/overview.mdx index f1e847f8..b8aeba35 100644 --- a/api-reference/sdk/python/overview.mdx +++ b/api-reference/sdk/python/overview.mdx @@ -244,7 +244,7 @@ async def main(): asyncio.run(main()) ``` -[Learn more](https://docs.fish.audio/features/realtime-streaming) +[Learn more](/features/text-to-speech/realtime) ### Voice Cloning diff --git a/developer-guide/integrations/hermes-agent.mdx b/developer-guide/integrations/hermes-agent.mdx index 75073991..30e6e954 100644 --- a/developer-guide/integrations/hermes-agent.mdx +++ b/developer-guide/integrations/hermes-agent.mdx @@ -115,7 +115,7 @@ plugins: settings: streaming: auto # auto | "off" live_transcription: realtime # realtime | compat - allow_free_model: true # false = always use s2.1-pro + allow_free_model: true # false = never use s2.1-pro-free ``` Additional `plugins.entries.fish-audio.settings` options include `base_url` (an HTTPS URL, or HTTP on loopback, for a self-hosted Fish Audio endpoint) and `operator_account: true` (for operator-owned Fish accounts, hiding balances, billing links, and account-wide voices and dictionaries from end users). From b3da59ae7d6d9bb47db50ced44ea37571562cbeb Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 22:02:41 +0900 Subject: [PATCH 04/14] docs(transcribe-2): link the key terms bullet to the rules in the API reference The Speech to Text API reference now lists every key term rule (duplicates, characters a term can't contain, total size), and the Speech to Text guide says which models ignore keyterms, text_format and verbatim. The model card links there instead of repeating part of it. --- developer-guide/models-pricing/models/transcribe-2.mdx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/developer-guide/models-pricing/models/transcribe-2.mdx b/developer-guide/models-pricing/models/transcribe-2.mdx index 88b72c6b..d71abe80 100644 --- a/developer-guide/models-pricing/models/transcribe-2.mdx +++ b/developer-guide/models-pricing/models/transcribe-2.mdx @@ -26,9 +26,7 @@ Write the `model` header value exactly as shown. A file request without it, or w - **Language hints**: `language` is passed to the model, which uses it to transcribe. It can be an ISO 639-1 or ISO 639-3 code, an English language name, or a locale such as `pt-BR`. - **Text format**: `text_format` is `written` (the default) for digits and symbols, or `spoken` for numbers, dates, times, and amounts in words. When you also send key terms, `spoken` is not always followed. - **Verbatim**: `verbatim` is `true` by default and keeps filler words, stutters, repetitions, and false starts. `false` leaves out filler sounds, stutters, accidental repetitions, and short false starts. It never rewords. -- **Key terms**: `keyterms` takes up to 128 words or short phrases, each at most 50 characters and 8 words, to spell as you list them. A term listed twice is used once. Two terms that differ only in case or in character width (full-width and half-width forms) are rejected. A term can't contain an ASCII comma, a control character, or any of `\ < > [ ] { }`. - -On `transcribe-1` and `transcribe-1-pro`, `keyterms`, `text_format`, and `verbatim` are ignored, with no error. +- **Key terms**: `keyterms` takes up to 128 words or short phrases, each at most 50 characters and 8 words, to spell as you list them. See [Key terms](/api-reference/endpoint/openapi-v1/speech-to-text#key-terms) for every rule, including duplicates, the characters a term can't contain, and the total size. Use it for subtitles for the deaf and hard of hearing (SDH), contact-center quality assurance, sales call analytics, or general transcription. See [Speech to Text](/features/speech-to-text). From f2495ec6f2489a5f7e2dc8932c0114a59522d590 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 22:08:16 +0900 Subject: [PATCH 05/14] docs: drop changes covered by other open PRs The Python SDK overview is generated from the SDK's docstrings, and the pending regeneration rewrites the streaming section's "Learn more" link. Leave that line as it is on main. --- api-reference/sdk/python/overview.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-reference/sdk/python/overview.mdx b/api-reference/sdk/python/overview.mdx index b8aeba35..f1e847f8 100644 --- a/api-reference/sdk/python/overview.mdx +++ b/api-reference/sdk/python/overview.mdx @@ -244,7 +244,7 @@ async def main(): asyncio.run(main()) ``` -[Learn more](/features/text-to-speech/realtime) +[Learn more](https://docs.fish.audio/features/realtime-streaming) ### Voice Cloning From 6b8007b90b69057a782d94555c6fe2bae5bbdf09 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 22:16:31 +0900 Subject: [PATCH 06/14] docs(s3-pro): say that the S3 Pro text handling and sampling sections describe the hosted API Text normalization, Markdown cleanup, reserved tokens, and fixed sampling on the S3 Pro model card, and S3 Pro normalization on the Text to Speech page, each open with "On the hosted API". --- developer-guide/models-pricing/models/s3-pro.mdx | 8 ++++---- features/text-to-speech.mdx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/developer-guide/models-pricing/models/s3-pro.mdx b/developer-guide/models-pricing/models/s3-pro.mdx index 838a3a1f..890cb51f 100644 --- a/developer-guide/models-pricing/models/s3-pro.mdx +++ b/developer-guide/models-pricing/models/s3-pro.mdx @@ -64,11 +64,11 @@ Use any voice from the Voice Library, a voice model you created, or clone a voic ## Text normalization -`normalize` is on by default. S3 Pro uses context-aware text normalization: it reads dates, times, numbers, currencies, units, phone numbers, URLs, abbreviations, and symbols the way the surrounding text calls for. `[bracket]` directions, scoped tags, and speaker tags are left as written. It covers the 11 Tier 1 languages today, and the list is actively growing. S3 Pro reads text in every other language natively, as written, and does the same for text whose language isn't identified, with no error. Send `normalize: false` to turn normalization off. `language` still works, and a regional tag such as `es-MX` or `zh-TW` is normalized with its base language. For Japanese, send `language: "ja"`: without it, text written only in kanji, with no kana, is normalized as Chinese. See [S3 Pro normalization](/features/text-to-speech#s3-pro-normalization). +`normalize` is on by default. On the hosted API, S3 Pro uses context-aware text normalization: it reads dates, times, numbers, currencies, units, phone numbers, URLs, abbreviations, and symbols the way the surrounding text calls for. `[bracket]` directions, scoped tags, and speaker tags are left as written. It covers the 11 Tier 1 languages today, and the list is actively growing. S3 Pro reads text in every other language natively, as written, and does the same for text whose language isn't identified, with no error. Send `normalize: false` to turn normalization off. `language` still works, and a regional tag such as `es-MX` or `zh-TW` is normalized with its base language. For Japanese, send `language: "ja"`: without it, text written only in kanji, with no kana, is normalized as Chinese. See [S3 Pro normalization](/features/text-to-speech#s3-pro-normalization). ## Markdown cleanup -S3 Pro removes Markdown formatting before it reads your text, so you can send a language model's reply as it is. This applies on `POST /v1/tts`, the with-timestamps routes, and the TTS WebSocket. +On the hosted API, S3 Pro removes Markdown formatting before it reads your text, so you can send a language model's reply as it is. This applies on `POST /v1/tts`, the with-timestamps routes, and the TTS WebSocket. | You write | S3 Pro reads | | --------------------------------------------------------------------------------------- | ------------ | @@ -84,11 +84,11 @@ Bare URLs, numbered lists, tables, code blocks, `[bracket]` directions, and `<| ### Reserved tokens -Of the `<|…|>` tokens, you can write speaker tags (`<|speaker:0|>`) and [phoneme markers](/developer-guide/core-features/fine-grained-control) (`<|phoneme_start|>`, `<|phoneme_end|>`) in your text. The model's other reserved tokens in that form are removed before synthesis, with no error. +On the hosted API, the `<|…|>` tokens you can write in your text are speaker tags (`<|speaker:0|>`) and [phoneme markers](/developer-guide/core-features/fine-grained-control) (`<|phoneme_start|>`, `<|phoneme_end|>`). The model's other reserved tokens in that form are removed before synthesis, with no error. ## Generation settings -On `s3-pro`, the service sets the sampling. `temperature`, `top_p`, and `repetition_penalty` are accepted and validated as on other models, so an invalid value is still rejected, but they don't change the audio. Chunking is managed automatically by the service. +On the hosted API, the service sets the sampling for `s3-pro`. `temperature`, `top_p`, and `repetition_penalty` are accepted and validated as on other models, so an invalid value is still rejected, but they don't change the audio. Chunking is managed automatically by the service. ## Supported languages diff --git a/features/text-to-speech.mdx b/features/text-to-speech.mdx index d0d46b8d..f3dc269b 100644 --- a/features/text-to-speech.mdx +++ b/features/text-to-speech.mdx @@ -374,7 +374,7 @@ The same field is accepted by `POST /v1/tts` (JSON and MessagePack), the with-ti #### S3 Pro normalization -`s3-pro` uses context-aware text normalization: it reads numbers, dates, currencies, units, abbreviations, and symbols the way the surrounding text calls for. It covers 11 languages today, and the list is actively growing: English (`en`), Chinese (`zh`), Japanese (`ja`), Korean (`ko`), Spanish (`es`), French (`fr`), German (`de`), Portuguese (`pt`), Russian (`ru`), Arabic (`ar`), and Hindi (`hi`). +On the hosted API, `s3-pro` uses context-aware text normalization: it reads numbers, dates, currencies, units, abbreviations, and symbols the way the surrounding text calls for. It covers 11 languages today, and the list is actively growing: English (`en`), Chinese (`zh`), Japanese (`ja`), Korean (`ko`), Spanish (`es`), French (`fr`), German (`de`), Portuguese (`pt`), Russian (`ru`), Arabic (`ar`), and Hindi (`hi`). - It rewrites dates, times, numbers and ordinals, currency amounts, units and percentages, ranges and scores, fractions and math, phone numbers and other digit strings, codes and version numbers, URLs and email addresses, abbreviations and acronyms, Roman numerals, and symbols. The rest of the text is kept as written. - `[bracket]` directions, paired tags such as `…`, speaker tags such as `<|speaker:0|>`, and phoneme markers are kept as written. From dc0a22bcf0fda8c4ba2ab720fc9a5808ce3d9236 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 22:27:04 +0900 Subject: [PATCH 07/14] docs(asr-realtime): drop the manual mode changes covered by another open change Another open change rewrites the same manual mode paragraphs, the silence_timeout_ms row, the push-to-talk note, and speech_start, with the same behavior and more. Leave those lines as they are on main. --- api-reference/endpoint/websocket/asr-realtime.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api-reference/endpoint/websocket/asr-realtime.mdx b/api-reference/endpoint/websocket/asr-realtime.mdx index 7ccdb0de..c84400a2 100644 --- a/api-reference/endpoint/websocket/asr-realtime.mdx +++ b/api-reference/endpoint/websocket/asr-realtime.mdx @@ -145,7 +145,7 @@ This judgement needs `auto` in the **first** `config`; a `config` without `mode` **`vad`.** A turn ends after `silence_timeout_ms` of silence, with `reason: "eot"`. Every turn is a user turn. -**`manual`.** Any audio that is not digital silence (all-zero samples) opens a turn, and the turn ends when you send `finalize`. A turn that has been silent for `silence_timeout_ms` ends too, once speech has been detected in it; at the default (60000) that never happens, because the 60-second turn limit comes first. Every turn is a user turn. +**`manual`.** A turn ends when you send `finalize`. A turn that has been silent for `silence_timeout_ms` ends too; at the default (60000) that never happens, because the 60-second turn limit comes first. Every turn is a user turn. In every mode, a turn ends after 60 seconds at the latest, and an `auto` turn without `user_turn_taken` after 20 seconds (`reason: "max_turn_duration"`). @@ -157,7 +157,7 @@ The default, the allowed range (inclusive) and the meaning depend on the mode: | -------- | ------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `auto` | 5000 | 3000–60000 | A safety net for user turns: a user turn with no voice activity for this long ends with `reason: "silence_timeout"`. Turn detection normally ends a turn long before that. Non-user turns do not use it. | | `vad` | 700 | 300–60000 | The silence that ends a turn (`reason: "eot"`). | -| `manual` | 60000 | 300–60000 | A safety net: a turn silent for this long, once speech has been detected in it, ends with `reason: "silence_timeout"`. At 60000 it never fires. | +| `manual` | 60000 | 300–60000 | A safety net: a turn silent for this long ends with `reason: "silence_timeout"`. At 60000 it never fires. | - In `vad` mode, every pause of this length ends the turn, including a pause inside a sentence. At short values, one sentence can arrive as several turns, and a word that starts softly right after such a pause can be split across two turns; both happen more often the shorter the value. For conversational speech, start with 500 ms or more. - If you leave it out, the mode's default applies. `session_started` and `configured` always show the value in effect. @@ -185,7 +185,7 @@ Send audio after `session_started` (see [`config`](#config) for audio sent earli Commit the current turn now, with `reason: "finalize"`. In `auto` mode, the server first settles its turn decisions on the audio already sent: a turn they already ended (possibly with `user_turn: false`) is not reopened, and if no turn is open after that, `finalize` is ignored. The turn `finalize` ends is always a user turn; `user_turn_taken` is sent first if it has not been. -**Push-to-talk:** use `mode: "manual"` and send `finalize` when the button is released. Send audio while the button is held; any audio that is not digital silence opens a turn, so if you sent none, no turn is open and `finalize` is ignored. While the button is up you can send no audio, which keeps other sounds from opening turns; send `keepalive` then. +**Push-to-talk:** use `mode: "manual"` and send `finalize` when the button is released. Send audio while the button is held; a turn opens on voice activity, so if none was detected, no turn is open and `finalize` is ignored. While the button is up you can send no audio, which keeps other sounds from opening turns; send `keepalive` then. ### `configure` @@ -274,7 +274,7 @@ Send audio after this message. | `turn_index` | integer | The turn that opened, counting from 0. | | `audio_ms` | integer | Where the turn starts, slightly before the speech. | -A turn opened: voice activity began. It is sent shortly after voice activity begins; in `manual` mode, as soon as audio that is not digital silence arrives. In `auto` mode, noise and other voices open turns too, so wait for `user_turn_taken` before treating it as the user's turn. In `auto` mode it can come later if you stream faster than real time or in messages of about 0.3 seconds or more; the turns are the same as for a real-time stream. If the speaker is still talking when a turn ends, the next turn starts at that turn's `audio_end_ms`. +A turn opened: voice activity began. It is sent shortly after voice activity begins. In `auto` mode, noise and other voices open turns too, so wait for `user_turn_taken` before treating it as the user's turn. In `auto` mode it can come later if you stream faster than real time or in messages of about 0.3 seconds or more; the turns are the same as for a real-time stream. If the speaker is still talking when a turn ends, the next turn starts at that turn's `audio_end_ms`. ### `user_turn_taken` From 87d0f5cefd1cdbb5f5003a7415a896aabef71cc0 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 22:32:16 +0900 Subject: [PATCH 08/14] docs(tts): pass s3-pro in the SDK tabs next to an s3-pro curl tab The Python and JavaScript tabs of the Text to Speech quick start, voice, output format, and speed examples, and the Python tab of Realtime Text to Speech's HTTP streaming example, relied on the SDK default model while their curl tab sends s3-pro. Pass model="s3-pro" (Python) and "s3-pro" as the model argument (JavaScript), as the SDK reference pages do. --- features/text-to-speech.mdx | 13 ++++++++----- features/text-to-speech/realtime.mdx | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/features/text-to-speech.mdx b/features/text-to-speech.mdx index f3dc269b..e0837caf 100644 --- a/features/text-to-speech.mdx +++ b/features/text-to-speech.mdx @@ -48,7 +48,7 @@ from fishaudio import FishAudio from fishaudio.utils import save client = FishAudio() # reads FISH_API_KEY -audio = client.tts.convert(text="Hello from Fish Audio!") +audio = client.tts.convert(text="Hello from Fish Audio!", model="s3-pro") save(audio, "out.mp3") ``` @@ -67,9 +67,10 @@ import { writeFile } from "fs/promises"; const client = new FishAudioClient({ apiKey: process.env.FISH_API_KEY }); -const stream = await client.textToSpeech.convert({ - text: "Hello from Fish Audio!", -}); +const stream = await client.textToSpeech.convert( + { text: "Hello from Fish Audio!" }, + "s3-pro" +); const chunks = []; for await (const chunk of stream) chunks.push(Buffer.from(chunk)); @@ -86,6 +87,7 @@ Pass a **voice model id** (`reference_id`). Find ids in the [Voice Library](/ove audio = client.tts.convert( text="This uses a specific voice.", reference_id="9a9cf47702da476aa4629e2506d4a857", + model="s3-pro", ) ``` @@ -126,6 +128,7 @@ from fishaudio.types import TTSConfig audio = client.tts.convert( text="High quality", config=TTSConfig(format="wav", sample_rate=44100), + model="s3-pro", ) ``` @@ -145,7 +148,7 @@ Adjust speech speed (0.5–2.0) and volume. ```python Python -audio = client.tts.convert(text="Speaking faster.", speed=1.5) +audio = client.tts.convert(text="Speaking faster.", speed=1.5, model="s3-pro") ``` ```bash API (curl) diff --git a/features/text-to-speech/realtime.mdx b/features/text-to-speech/realtime.mdx index 9b870771..e30e3a5b 100644 --- a/features/text-to-speech/realtime.mdx +++ b/features/text-to-speech/realtime.mdx @@ -54,11 +54,11 @@ from fishaudio import FishAudio client = FishAudio() # reads FISH_API_KEY with open("out.mp3", "wb") as f: - for chunk in client.tts.stream(text="Streaming keeps latency low."): + for chunk in client.tts.stream(text="Streaming keeps latency low.", model="s3-pro"): f.write(chunk) # or send to a speaker / socket as it arrives # Or collect the whole stream into one bytes object: -audio = client.tts.stream(text="Streaming keeps latency low.").collect() +audio = client.tts.stream(text="Streaming keeps latency low.", model="s3-pro").collect() ``` ```bash API (curl) From 210bcfce30389d6dfab3bd912b5e2fab08c23f28 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 22:33:17 +0900 Subject: [PATCH 09/14] docs(s3-pro): text with nothing to read returns 200 with no speech Measured on POST /v1/tts with model s3-pro: an empty string, "...", and "<|im_end|>" each return 200. A wav response is the 44-byte header alone; an mp3 response is two frames of digital silence. --- developer-guide/models-pricing/models/s3-pro.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/developer-guide/models-pricing/models/s3-pro.mdx b/developer-guide/models-pricing/models/s3-pro.mdx index 890cb51f..de85f1e4 100644 --- a/developer-guide/models-pricing/models/s3-pro.mdx +++ b/developer-guide/models-pricing/models/s3-pro.mdx @@ -86,6 +86,8 @@ Bare URLs, numbered lists, tables, code blocks, `[bracket]` directions, and `<| On the hosted API, the `<|…|>` tokens you can write in your text are speaker tags (`<|speaker:0|>`) and [phoneme markers](/developer-guide/core-features/fine-grained-control) (`<|phoneme_start|>`, `<|phoneme_end|>`). The model's other reserved tokens in that form are removed before synthesis, with no error. +Text with nothing to read, such as an empty string, only punctuation (`...`), or only reserved tokens, is not an error either: `POST /v1/tts` returns `200` with no speech. A `wav` response holds only the file header, and an `mp3` response holds a few frames of silence. + ## Generation settings On the hosted API, the service sets the sampling for `s3-pro`. `temperature`, `top_p`, and `repetition_penalty` are accepted and validated as on other models, so an invalid value is still rejected, but they don't change the audio. Chunking is managed automatically by the service. From f5cb1ff6f62484c00d657ac2ff5455e0b20ae068 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 22:33:17 +0900 Subject: [PATCH 10/14] docs(api-reference): list 413 for a request body that is too large Measured on POST /v1/tts: a 52 MiB JSON body returns 413 with the usual JSON error shape. The size limit itself is not stated, since only a body over it was sent. --- api-reference/errors.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/api-reference/errors.mdx b/api-reference/errors.mdx index 5b157372..75489db0 100644 --- a/api-reference/errors.mdx +++ b/api-reference/errors.mdx @@ -23,6 +23,7 @@ Some endpoints add fields. For example, `transcribe-1-pro` and `transcribe-2-pro | `402` | No API credit for the model you called | Add API credit on [API Billing](https://fish.audio/app/developers/billing/). New developer accounts may receive a one-time free API credit on [Get Started](https://fish.audio/app/developers/get-started/?utm_source=docs&utm_medium=errors&utm_content=signup-credit), which works with every model. | | `403` | Not permitted for this key/resource | Check the key's scope and the resource owner. | | `404` | Model or voice not found | Verify the `model_id` / `reference_id`. | +| `413` | Request body too large | Send a smaller request body. | | `429` | Too many requests, for example when your account is at its [concurrency limit](/developer-guide/models-pricing/pricing-and-rate-limits#concurrent-request-limits) | Back off and retry (see below). | | `5xx` | Server error | Retry with backoff; if it persists, contact support. | From a4eab20c4a235f48b21a6fd9b9672468b0b6f4d1 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 22:33:17 +0900 Subject: [PATCH 11/14] docs(stt): source_url_disabled on transcribe-2-pro Measured: a transcribe-2-pro request with a source_url field returns 400 with code source_url_disabled. Add it to the Speech to Text error table. --- api-reference/endpoint/openapi-v1/speech-to-text.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/api-reference/endpoint/openapi-v1/speech-to-text.mdx b/api-reference/endpoint/openapi-v1/speech-to-text.mdx index bff0476c..7d68e089 100644 --- a/api-reference/endpoint/openapi-v1/speech-to-text.mdx +++ b/api-reference/endpoint/openapi-v1/speech-to-text.mdx @@ -298,6 +298,7 @@ This illustrative Pro model error body shows the shape: | 400 | `invalid_audio` | The audio could not be decoded, or the format is not supported. | No | | 400 | `audio_too_long` | The audio is longer than 60 minutes. | No | | 400 | `audio_too_short` | The audio is too short to transcribe (under about 0.08 seconds). | No | +| 400 | `source_url_disabled` | `transcribe-2-pro` does not take `source_url`; send the audio file in `audio`. | No | | 400 | — | The request body could not be read. | No | | 401 | — | Missing or invalid API key. | No | | 402 | — | Insufficient API credit. | No | From cc20d009288eef196ef74dacb870343a3c4eca2a Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 23:10:33 +0900 Subject: [PATCH 12/14] docs(s3-pro): narrow the normalization, Markdown link, and sampling claims - Drop the Japanese number example: a number at the start of a text keeps its kana reading, and the normalized text is never returned. - Drop "text whose language isn't identified is read as written": text in a supported script with a low-confidence guess is still normalized. - Scoped tags themselves are kept as written; the words between them are still normalized. Both pages list the same kept items. - Only a link to an http://, https://, www., or mailto: address is read as its text; other [text](...) forms stay as written, and [text] is then a bracket direction. - Drop "so an invalid value is still rejected": temperature and repetition_penalty are only checked for being finite numbers. - On the S3 Pro card, say once that these sections describe the hosted API instead of opening four sections with it. --- .../models-pricing/models/s3-pro.mdx | 30 ++++++++++--------- features/text-to-speech.mdx | 5 ++-- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/developer-guide/models-pricing/models/s3-pro.mdx b/developer-guide/models-pricing/models/s3-pro.mdx index de85f1e4..19e0ce0c 100644 --- a/developer-guide/models-pricing/models/s3-pro.mdx +++ b/developer-guide/models-pricing/models/s3-pro.mdx @@ -64,33 +64,35 @@ Use any voice from the Voice Library, a voice model you created, or clone a voic ## Text normalization -`normalize` is on by default. On the hosted API, S3 Pro uses context-aware text normalization: it reads dates, times, numbers, currencies, units, phone numbers, URLs, abbreviations, and symbols the way the surrounding text calls for. `[bracket]` directions, scoped tags, and speaker tags are left as written. It covers the 11 Tier 1 languages today, and the list is actively growing. S3 Pro reads text in every other language natively, as written, and does the same for text whose language isn't identified, with no error. Send `normalize: false` to turn normalization off. `language` still works, and a regional tag such as `es-MX` or `zh-TW` is normalized with its base language. For Japanese, send `language: "ja"`: without it, text written only in kanji, with no kana, is normalized as Chinese. See [S3 Pro normalization](/features/text-to-speech#s3-pro-normalization). +This section and the ones after it, through [Generation settings](#generation-settings), describe the hosted API. + +`normalize` is on by default. S3 Pro uses context-aware text normalization: it reads dates, times, numbers, currencies, units, phone numbers, URLs, abbreviations, and symbols the way the surrounding text calls for. `[bracket]` directions, speaker tags such as `<|speaker:0|>`, and phoneme markers are kept as written. So are scoped tags such as `` and ``, but the words between them are still normalized. It covers the 11 Tier 1 languages today, and the list is actively growing. S3 Pro reads text in every other language natively, as written. Send `normalize: false` to turn normalization off. `language` still works, and a regional tag such as `es-MX` or `zh-TW` is normalized with its base language. For Japanese, send `language: "ja"`: without it, text written only in kanji, with no kana, is normalized as Chinese. See [S3 Pro normalization](/features/text-to-speech#s3-pro-normalization). ## Markdown cleanup -On the hosted API, S3 Pro removes Markdown formatting before it reads your text, so you can send a language model's reply as it is. This applies on `POST /v1/tts`, the with-timestamps routes, and the TTS WebSocket. +S3 Pro removes Markdown formatting before it reads your text, so you can send a language model's reply as it is. This applies on `POST /v1/tts`, the with-timestamps routes, and the TTS WebSocket. -| You write | S3 Pro reads | -| --------------------------------------------------------------------------------------- | ------------ | -| A link, `[text](https://example.com)` | `text` | -| An image, `![alt](https://example.com/a.png)` | Nothing | -| Bold or italics, `**text**`, `__text__`, or `*text*` | `text` | -| Inline code, `` `text` `` | `text` | -| A heading, `# text` | `text` | -| A list item, `- text`, `* text`, or `+ text`, including a task box such as `- [x] text` | `text` | -| A quote, `> text` | `text` | +| You write | S3 Pro reads | +| ------------------------------------------------------------------------------------------------------------------- | ------------ | +| A link whose address starts with `http://`, `https://`, `www.`, or `mailto:`, such as `[text](https://example.com)` | `text` | +| An image, `![alt](https://example.com/a.png)` | Nothing | +| Bold or italics, `**text**`, `__text__`, or `*text*` | `text` | +| Inline code, `` `text` `` | `text` | +| A heading, `# text` | `text` | +| A list item, `- text`, `* text`, or `+ text`, including a task box such as `- [x] text` | `text` | +| A quote, `> text` | `text` | -Bare URLs, numbered lists, tables, code blocks, `[bracket]` directions, and `<|…|>` tags are left as written. +Bare URLs, numbered lists, tables, code blocks, `[bracket]` directions, and `<|…|>` tags are left as written. So are other links, such as `[text](/path)`: their `[text]` is then taken as a `[bracket]` direction, so its words are not spoken. ### Reserved tokens -On the hosted API, the `<|…|>` tokens you can write in your text are speaker tags (`<|speaker:0|>`) and [phoneme markers](/developer-guide/core-features/fine-grained-control) (`<|phoneme_start|>`, `<|phoneme_end|>`). The model's other reserved tokens in that form are removed before synthesis, with no error. +The `<|…|>` tokens you can write in your text are speaker tags (`<|speaker:0|>`) and [phoneme markers](/developer-guide/core-features/fine-grained-control) (`<|phoneme_start|>`, `<|phoneme_end|>`). The model's other reserved tokens in that form are removed before synthesis, with no error. Text with nothing to read, such as an empty string, only punctuation (`...`), or only reserved tokens, is not an error either: `POST /v1/tts` returns `200` with no speech. A `wav` response holds only the file header, and an `mp3` response holds a few frames of silence. ## Generation settings -On the hosted API, the service sets the sampling for `s3-pro`. `temperature`, `top_p`, and `repetition_penalty` are accepted and validated as on other models, so an invalid value is still rejected, but they don't change the audio. Chunking is managed automatically by the service. +The service sets the sampling for `s3-pro`. `temperature`, `top_p`, and `repetition_penalty` are accepted and validated as on other models, but they don't change the audio. Chunking is managed automatically by the service. ## Supported languages diff --git a/features/text-to-speech.mdx b/features/text-to-speech.mdx index e0837caf..da15d22d 100644 --- a/features/text-to-speech.mdx +++ b/features/text-to-speech.mdx @@ -380,12 +380,11 @@ The same field is accepted by `POST /v1/tts` (JSON and MessagePack), the with-ti On the hosted API, `s3-pro` uses context-aware text normalization: it reads numbers, dates, currencies, units, abbreviations, and symbols the way the surrounding text calls for. It covers 11 languages today, and the list is actively growing: English (`en`), Chinese (`zh`), Japanese (`ja`), Korean (`ko`), Spanish (`es`), French (`fr`), German (`de`), Portuguese (`pt`), Russian (`ru`), Arabic (`ar`), and Hindi (`hi`). - It rewrites dates, times, numbers and ordinals, currency amounts, units and percentages, ranges and scores, fractions and math, phone numbers and other digit strings, codes and version numbers, URLs and email addresses, abbreviations and acronyms, Roman numerals, and symbols. The rest of the text is kept as written. -- `[bracket]` directions, paired tags such as `…`, speaker tags such as `<|speaker:0|>`, and phoneme markers are kept as written. +- `[bracket]` directions, speaker tags such as `<|speaker:0|>`, and phoneme markers are kept as written. So are scoped tags such as `` and ``, but the words between them are still normalized. - `normalize: false` turns it off. - Regional tags work: `es-MX` is normalized as Spanish and `zh-TW` as Chinese. - Without `language`, the language is identified from the text. Text with kana is normalized as Japanese, text with Chinese characters and no kana as Chinese, and text in Hangul as Korean. Japanese written only in kanji, with no kana, is therefore normalized as Chinese: send `language: "ja"` for Japanese text. -- Japanese numbers are read with their counter: `2024年` is read as 二千二十四年. -- Text in any other language, or whose language isn't identified, is read by S3 Pro as written, with no error, and no other language's rules are applied to it. +- Text in any other language is read by S3 Pro as written, with no error, and no other language's rules are applied to it. #### Other models From 6cb2962b77b9bbf26e4cf86521b8b7b2a5cbce72 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 23:10:39 +0900 Subject: [PATCH 13/14] docs(changelog): drop the S3 Pro text handling entry The text normalization, Markdown cleanup, and reserved token handling it listed were in place before S3 Pro was released, so a separate entry reads as a change that never reached anyone. The S3 Pro model card describes them. Keep the with-timestamps routes in the S3 Pro entry. --- developer-guide/getting-started/changelog.mdx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/developer-guide/getting-started/changelog.mdx b/developer-guide/getting-started/changelog.mdx index 2f906454..89ee0763 100644 --- a/developer-guide/getting-started/changelog.mdx +++ b/developer-guide/getting-started/changelog.mdx @@ -4,20 +4,6 @@ description: "Complete release history and version updates for all Fish Audio pr icon: "clock-rotate-left" rss: true --- - - ## S3 Pro text handling - - S3 Pro prepares your text before it reads it: - - - **Text normalization**: dates, times, numbers, currencies, units, phone numbers, URLs, and abbreviations are read the way the surrounding text calls for, in 11 languages. `[bracket]` directions and tags are left as written. - - **Markdown cleanup**: links are read as their text, and formatting such as bold, headings, and list markers is removed, so you can send a language model's reply as it is. - - **Reserved tokens**: the model's reserved `<|…|>` tokens are removed from your text. Speaker tags and phoneme markers are kept. - - On `s3-pro`, an MP3 stream begins with audio, with no empty frame in front of it, and Hindi, Arabic, and Urdu text is split into sentences at the sentence-ending punctuation of those scripts, such as `।`, `؟`, and `۔`. - - [Text normalization](/developer-guide/models-pricing/models/s3-pro#text-normalization) | [Markdown cleanup](/developer-guide/models-pricing/models/s3-pro#markdown-cleanup) | [S3 Pro normalization rules](/features/text-to-speech#s3-pro-normalization) - - ## Transcribe 2 From 028c38e3d6585adc54db794fe408802515bd211d Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Wed, 2 Dec 2026 23:10:42 +0900 Subject: [PATCH 14/14] docs(stt): drop the source_url_disabled row source_url is not a public field of POST /v1/asr: it is not in the OpenAPI schema or the request field table, and how each model answers it depends on deployment settings. Leave the error table as it is on main. --- api-reference/endpoint/openapi-v1/speech-to-text.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/api-reference/endpoint/openapi-v1/speech-to-text.mdx b/api-reference/endpoint/openapi-v1/speech-to-text.mdx index 7d68e089..bff0476c 100644 --- a/api-reference/endpoint/openapi-v1/speech-to-text.mdx +++ b/api-reference/endpoint/openapi-v1/speech-to-text.mdx @@ -298,7 +298,6 @@ This illustrative Pro model error body shows the shape: | 400 | `invalid_audio` | The audio could not be decoded, or the format is not supported. | No | | 400 | `audio_too_long` | The audio is longer than 60 minutes. | No | | 400 | `audio_too_short` | The audio is too short to transcribe (under about 0.08 seconds). | No | -| 400 | `source_url_disabled` | `transcribe-2-pro` does not take `source_url`; send the audio file in `audio`. | No | | 400 | — | The request body could not be read. | No | | 401 | — | Missing or invalid API key. | No | | 402 | — | Insufficient API credit. | No |