From 4c9ad2363b28b324171d21d69393d010cebdfa82 Mon Sep 17 00:00:00 2001 From: liujiahua123123 Date: Wed, 25 Nov 2026 04:51:03 +0000 Subject: [PATCH] docs(realtime-stt): document transcribe-stream-2 and results.text_format transcribe-stream-2 is a second realtime speech-to-text model on wss://api.fish.audio/v1/asr/realtime, at $0.12 per session hour, with the same protocol as transcribe-stream-1. transcribe-stream-1 stays the default: a connection without the model header, or with any other value, gets a transcribe-stream-1 session, billed as transcribe-stream-1. - WebSocket reference: the model header row names both models (it no longer names the legacy alias, which "any other value" covers). A new Models subsection gives the prices and the header rule. A connection that names transcribe-stream-2 is meant to be served by it. While that model is temporarily unavailable, the handshake can be refused with a 5xx status (connect again with backoff), or the session can start and its turns can get engine_error, each followed by a degraded committed, and the session continues. session_started.config.model names the model that serves the session, and the session is billed at that model's price. - Handshake refusals: new 502 and 504 rows, and the 503 row reads "restarting or temporarily unavailable". x-request-id is named only on the 101 and the capacity 429; a 502, 503 or 504 refusal can come with or without one. - results.text_format for transcribe-stream-2: "written" (the default) or "spoken", set in config for the whole session; null is the same as leaving it out. A new Text format section, the config table and the wrong-value rule. transcribe-stream-1 refuses a config that sends it with invalid_config and close 4400. The configure paragraph names it as the exception to "the same values as in config". - AsyncAPI: transcribe-stream-2 in the model header enum and the connection headers, text_format in AsrResults, config.model on session_started. - Realtime feature page: both models, a Models section with the same wording on an unavailable transcribe-stream-2, the model header in the quick start, a Numbers and times note, both prices (dollar signs escaped), and the latency figures labelled as measured with transcribe-stream-1. - Pricing: transcribe-stream-2 at $0.12 per session hour; Realtime ASR is billed at the price of the session's model. - Capabilities overview and llms.txt name both realtime models. --- api-reference/asyncapi-asr-realtime.yml | 21 +++++- .../endpoint/websocket/asr-realtime.mdx | 64 ++++++++++++++----- .../pricing-and-rate-limits.mdx | 7 +- features/speech-to-text/realtime.mdx | 28 ++++++-- llms.txt | 4 +- overview/capabilities.mdx | 2 +- 6 files changed, 96 insertions(+), 30 deletions(-) diff --git a/api-reference/asyncapi-asr-realtime.yml b/api-reference/asyncapi-asr-realtime.yml index e811e667..c7a9524e 100644 --- a/api-reference/asyncapi-asr-realtime.yml +++ b/api-reference/asyncapi-asr-realtime.yml @@ -92,8 +92,9 @@ channels: type: string enum: - transcribe-stream-1 + - transcribe-stream-2 default: transcribe-stream-1 - description: Realtime speech-to-text model. Optional; `transcribe-stream-1` (Preview) is the default and the only realtime model. The legacy name `transcribe-1-pro-realtime` reaches the same model. + description: Realtime speech-to-text model. Optional; `transcribe-stream-1` (Preview) is the default. Without the header, or with any other value, the session runs on `transcribe-stream-1`. `session_started.config.model` names the session's model. description: | Realtime speech-to-text channel. Clients stream audio and receive transcripts turn by turn, with turn detection, optional live drafts and @@ -102,6 +103,7 @@ channels: ## Connection Headers - `Authorization: Bearer ` - Required for authentication (see security section) - `model: transcribe-stream-1` (Preview) - Optional; the default + - `model: transcribe-stream-2` - Optional; the only model that takes `results.text_format` Every message in both directions is one MessagePack map in a binary frame, with a `type` field. Send `config` first, wait for @@ -477,7 +479,7 @@ components: description: Same as the `x-request-id` response header. Include it when you contact support. config: type: object - description: The effective configuration, with defaults filled in. + description: The effective configuration, with defaults filled in. `model` names the session's model. limits: $ref: "#/components/schemas/AsrLimits" description: | @@ -1180,6 +1182,21 @@ components: type: boolean default: true description: Sound tags such as `[laughter]` in the text; `false` removes them. Only `true` or `false`. + text_format: + oneOf: + - type: string + enum: + - spoken + - written + - type: "null" + default: written + description: | + `transcribe-stream-2` only; choose it in `config`, for the + whole session. The style for numbers, amounts and times: + `spoken` (words, the way they were said) or `written` (digits + and symbols). `null` is the same as leaving it out. + `transcribe-stream-1` refuses this field, whatever its value, + `null` included, with `invalid_config`. vad_events: type: boolean default: false diff --git a/api-reference/endpoint/websocket/asr-realtime.mdx b/api-reference/endpoint/websocket/asr-realtime.mdx index 6239003d..626d002a 100644 --- a/api-reference/endpoint/websocket/asr-realtime.mdx +++ b/api-reference/endpoint/websocket/asr-realtime.mdx @@ -30,14 +30,14 @@ Authorization: Bearer model: transcribe-stream-1 ``` -| Header | Required | Description | -| --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `Authorization` | Yes | `Bearer `. Write the scheme exactly as `Bearer`, followed by a space and the key. | -| `model` | No | `transcribe-stream-1` (Preview), the default and the only realtime model. The legacy name `transcribe-1-pro-realtime` reaches the same model. | +| Header | Required | Description | +| --------------- | -------- | ------------------------------------------------------------------------------------------------------------------ | +| `Authorization` | Yes | `Bearer `. Write the scheme exactly as `Bearer`, followed by a space and the key. | +| `model` | No | The realtime model: `transcribe-stream-1` (Preview), the default, or `transcribe-stream-2`. See [Models](#models). | Each open connection counts against the same concurrency limit as your other API requests, from the moment it opens until it closes, even while you send no audio. See [Concurrent request limits](/developer-guide/models-pricing/pricing-and-rate-limits#concurrent-request-limits). A session cannot be resumed: a new connection is a new session. -Sessions are billed per second of session duration, as Realtime ASR. See [ASR pricing](/developer-guide/models-pricing/pricing-and-rate-limits#automatic-speech-recognition-asr-models). +Sessions are billed per second of session duration, as Realtime ASR, at the price of the session's model. See [ASR pricing](/developer-guide/models-pricing/pricing-and-rate-limits#automatic-speech-recognition-asr-models). If the server refuses the upgrade, it answers with a plain HTTP response whose JSON body is `{"status": , "message": }`: @@ -46,9 +46,24 @@ If the server refuses the upgrade, it answers with a plain HTTP response whose J | 401 | The API key is missing or invalid, or the `Authorization` header does not start with `Bearer `. | Check the key and the header. | | 402 | Insufficient API credit. | Top up your balance. | | 429 | Your team is at its concurrency limit, or the service is at capacity. | Retry with backoff. Honor `Retry-After` when present. | -| 503 | The service is restarting. | Retry. | +| 502 | The service could not be reached. | Retry with backoff. | +| 503 | The service is restarting or temporarily unavailable. | Retry with backoff. | +| 504 | The service did not answer in time. | Retry with backoff. | -The `101 Switching Protocols` response carries an `x-request-id` header, and so do the capacity 429 and 503 refusals. It is the same value as `request_id` in `session_started`, `error` and `session_done`. Log it, and include it when you contact support. Refusals for the key, balance and your concurrency limit (401, 402 and concurrency 429) happen before a session is assigned and carry no `x-request-id`. +The `101 Switching Protocols` response carries an `x-request-id` header, and so does the capacity 429 refusal. It is the same value as `request_id` in `session_started`, `error` and `session_done`. Log it, and include it when you contact support. Refusals for the key, balance and your concurrency limit (401, 402 and concurrency 429) happen before a session is assigned and carry no `x-request-id`. A 502, 503 or 504 refusal can come with or without one. + +### Models + +| Model | Price | Notes | +| ------------------------------- | -------------------- | ----------------------------------------------------------------------------- | +| `transcribe-stream-1` (Preview) | $0.36 / session hour | The default. | +| `transcribe-stream-2` | $0.12 / session hour | Takes [`results.text_format`](#text-format), the style for numbers and times. | + +Both models use this endpoint and the protocol on this page: the same messages, turn detection modes, errors and limits. The one difference is `results.text_format`, which only `transcribe-stream-2` takes. + +Choose the model with the `model` header, written exactly as shown. A connection without the header, or with any other value, gets a `transcribe-stream-1` session, billed as `transcribe-stream-1`, and no error is returned. + +A connection that names `transcribe-stream-2` is meant to be served by `transcribe-stream-2`. While that model is temporarily unavailable, the handshake can be [refused](#connect) with a 5xx status; connect again with backoff. Or the session can start, and its turns can get `error` with [`engine_error`](#errors-and-close-codes), each followed by a [degraded `committed`](#degraded-commits); the session continues. `session_started.config.model` names the model that serves the session, and the session is billed at that model's price, so check it when the session starts. ## Framing @@ -115,13 +130,14 @@ Audio sent before `session_started` is not lost: once the session has started, t | `results.ignore_timestamps` | No | `true` | `false` adds word timings (`words`) to `committed`. | | `results.diarize` | No | `true` | `true`, `false` or `"auto"` (same as `true`); the strings `"true"` and `"false"` are accepted too. `false` removes speaker tags from the text. See [Speakers](#speakers). | | `results.tag_audio_events` | No | `true` | `false` removes sound tags such as `[laughter]` from the text. See [Sound tags](#sound-tags). | +| `results.text_format` | No | `"written"` | `transcribe-stream-2` only. The style for numbers, amounts and times: `"spoken"` (words) or `"written"` (digits and symbols). See [Text format](#text-format). | | `results.vad_events` | No | `false` | `true` sends [`vad`](#vad) messages. | | `results.eot_events` | No | `false` | `true` sends [`eot_prob`](#eot_prob) messages. | | `context.history` | No | `[]` | Earlier conversation, oldest first: up to 32 items of `{ "role": "user" \| "assistant", "text": str }`, each up to 2,000 characters. | | `context.terms` | No | `[]` | Up to 100 terms of up to 32 characters each: names, products and jargon to recognize. | | `client_reference_id` | No | | Your own ID for the session, up to 256 characters. It is recorded with the session and not sent back. | -A value of the wrong type for `ignore_timestamps` or `tag_audio_events` (both take only `true` or `false`), or a `diarize` value other than those listed, is `invalid_config`. So is an unknown field, including a misspelled one; the error's `message` names the field. `invalid_config` closes the connection with 4400. Send only the fields listed here: not every other field is refused, so check `session_started.config`, which shows the settings in effect. +A value of the wrong type for `ignore_timestamps` or `tag_audio_events` (both take only `true` or `false`), a `diarize` value other than those listed, or a `text_format` other than `"spoken"`, `"written"` or `null`, is `invalid_config`. So is an unknown field, including a misspelled one; the error's `message` names the field. `invalid_config` closes the connection with 4400. Send only the fields listed here: not every other field is refused, so check `session_started.config`, which shows the settings in effect. #### Audio format @@ -198,7 +214,7 @@ Commit the current turn now, with `reason: "finalize"`. In `auto` mode, the serv } ``` -Change settings during the session. `turn_detection`, `results` and `context` take the same values as in `config`; every field is optional, and a field you leave out keeps its current value. `context` accepts `terms` only, and the new list replaces the old one; send earlier lines with [`context_add`](#context_add). The server answers with [`configured`](#configured). If any value is invalid, nothing in the message is applied. +Change settings during the session. `turn_detection`, `results` and `context` take the same values as in `config`, except `results.text_format`, which is set in `config` for the whole session. Every field is optional, and a field you leave out keeps its current value. `context` accepts `terms` only, and the new list replaces the old one; send earlier lines with [`context_add`](#context_add). The server answers with [`configured`](#configured). If any value is invalid, nothing in the message is applied. `audio` is fixed for the session: to change the audio format, open a new session. A `configure` with an unknown field, with an `audio` that differs from the session's, or with `context.history` gets `configured` with `ok: false`, and nothing in it is applied. An `audio` identical to the session's is accepted. As with `config`, send only the fields listed here; `configured.config` shows the settings in effect. @@ -258,12 +274,12 @@ For voice agents in `auto` mode: tell the server when your agent's reply is in p ### `session_started` -| Field | Type | Description | -| ------------ | ------ | --------------------------------------------------------------------------------- | -| `session_id` | string | The session's ID. | -| `request_id` | string | The same value as the `x-request-id` header. Include it when you contact support. | -| `config` | map | The effective configuration, with defaults filled in. | -| `limits` | map | `max_session_ms`, `max_turn_ms` and `max_frame_bytes`. See [Limits](#limits). | +| Field | Type | Description | +| ------------ | ------ | ----------------------------------------------------------------------------------------------- | +| `session_id` | string | The session's ID. | +| `request_id` | string | The same value as the `x-request-id` header. Include it when you contact support. | +| `config` | map | The effective configuration, with defaults filled in. `config.model` names the session's model. | +| `limits` | map | `max_session_ms`, `max_turn_ms` and `max_frame_bytes`. See [Limits](#limits). | Send audio after this message. @@ -453,6 +469,22 @@ Or send `results.tag_audio_events: false` to get no sound tags at all. Every tag Speaker tags still depend on `diarize` alone. A turn that holds only tags still gets its `committed`, without a language, and with a `text` that is empty with `diarize: false`, or holds only the turn's speaker tags with `diarize` on. +## Text format + +With `transcribe-stream-2`, `results.text_format` sets the style for numbers, amounts, times and similar in the transcript: + +| Value | Style | Example | +| --------------------- | ----------------------------- | ----------------------------------------------- | +| `"written"` (default) | Digits and symbols | "I paid $25 at 3:30 pm" | +| `"spoken"` | Words, the way they were said | "I paid twenty five dollars at three thirty pm" | + +- Choose it in `config`, for the whole session. +- It applies to `draft`, `eager_end_of_turn` and `committed` alike. +- `session_started.config.results` shows the value in effect. `null` is the same as not sending the field. +- Any other value, such as another string (`"Written"` included), a number or a boolean, is `invalid_config`, which closes the connection with 4400. The message is `results.text_format must be "spoken" or "written"`. + +Only `transcribe-stream-2` takes `text_format`. `transcribe-stream-1` refuses a `config` that sends it, whatever its value, `null` included, with `invalid_config` and close 4400; the error's `message` names the field. With `transcribe-stream-1`, `session_started.config.results` and `configured` have no `text_format`. + ## Language `draft`, `eager_end_of_turn` and `committed` carry the language of their own `text`. Use `language_code` (ISO 639-1) in your code; `language` is its English name, for display, with the same names as [`POST /v1/asr`](/api-reference/endpoint/openapi-v1/speech-to-text). The language is detected from that message's text alone, ignoring speaker tags, sound tags in `[` and `]`, and interjections such as "okay", "hmm" or "uh". With `tag_audio_events: false`, the label can also reflect text that is not shown: the rest of a draft after an unclosed opening bracket, the inside of a tag that holds another tag, or a tag in full-width or lenticular brackets. It is one of: @@ -543,7 +575,7 @@ Turn 0 is the user's turn. The agent prepared its reply on `eager_end_of_turn`; ## Related -- [Realtime Speech to Text](/features/speech-to-text/realtime): what the realtime model does and when to use it. +- [Realtime Speech to Text](/features/speech-to-text/realtime): what the realtime models do and when to use them. - [Transcribe a live audio stream](/developer-guide/sdk-guide/cookbook/realtime-transcription): a complete client in Python and Node.js, and a browser microphone relay. - [Build a realtime voice agent](/developer-guide/sdk-guide/cookbook/realtime-voice-agent): turn-taking, barge-in and backchannels. - [Speech to Text](/api-reference/endpoint/openapi-v1/speech-to-text): transcribe a complete audio file with `POST /v1/asr`. diff --git a/developer-guide/models-pricing/pricing-and-rate-limits.mdx b/developer-guide/models-pricing/pricing-and-rate-limits.mdx index f7623bd2..ed1a1569 100644 --- a/developer-guide/models-pricing/pricing-and-rate-limits.mdx +++ b/developer-guide/models-pricing/pricing-and-rate-limits.mdx @@ -50,10 +50,11 @@ the same price. See [Migrate from S1](/developer-guide/models-pricing/migrate-fr | `transcribe-1-pro` (recommended) | $0.36 / audio hour | | `transcribe-1` | $0.36 / audio hour | | `transcribe-stream-1` (Realtime ASR, Preview) | $0.36 / session hour | +| `transcribe-stream-2` (Realtime ASR) | $0.12 / session hour | For recordings, we recommend `transcribe-1-pro`, which handles multi-speaker conversations (speaker markers and speaker turns), long recordings, and inline emotion cues. Both file models cost the same and use the [Speech to Text API](/api-reference/endpoint/openapi-v1/speech-to-text). Send the `model: transcribe-1-pro` HTTP header to select Pro; a request whose `model` header is missing or not an exact match is served and billed as `transcribe-1`. See the [model comparison](/features/speech-to-text#choose-an-asr-model). -`transcribe-stream-1` transcribes live audio over the [realtime WebSocket](/features/speech-to-text/realtime) and is billed as its own line item, Realtime ASR, separate from file transcription. +`transcribe-stream-1` and `transcribe-stream-2` transcribe live audio over the [realtime WebSocket](/features/speech-to-text/realtime) and are billed as their own line item, Realtime ASR, separate from file transcription. Send the `model: transcribe-stream-2` header to select `transcribe-stream-2`; a connection whose `model` header is missing or not an exact match is served and billed as `transcribe-stream-1`. **How ASR billing works for files (`transcribe-1-pro`, `transcribe-1`):** @@ -62,9 +63,9 @@ For recordings, we recommend `transcribe-1-pro`, which handles multi-speaker con - The full duration of the recording is billed, including silence, once per successful request - Requests that return an error response are not billed -**How Realtime ASR billing works (`transcribe-stream-1`):** +**How Realtime ASR billing works (`transcribe-stream-1`, `transcribe-stream-2`):** -- Charges are based on session duration, billed per second, once per session +- Charges are based on session duration, billed per second at the price of the session's model, once per session - Session duration is the time the connection is open, or the duration of the audio you send if that is longer, rounded up to the nearest second ### Voice Design diff --git a/features/speech-to-text/realtime.mdx b/features/speech-to-text/realtime.mdx index 30ce5966..57d5ec92 100644 --- a/features/speech-to-text/realtime.mdx +++ b/features/speech-to-text/realtime.mdx @@ -1,12 +1,12 @@ --- title: "Realtime Speech to Text" sidebarTitle: "Realtime" -description: "Transcribe live audio turn by turn with transcribe-stream-1: turn detection that knows when the user has finished, backchannel and background awareness, and conversation context" +description: "Transcribe live audio turn by turn with transcribe-stream-1 or transcribe-stream-2: turn detection that knows when the user has finished, backchannel and background awareness, and conversation context" icon: "microphone-lines" tag: "Preview" --- -Stream live audio over a WebSocket and get the transcript turn by turn while people speak. `transcribe-stream-1` does more than transcribe: it decides when the user has finished their turn, usually tells the user talking to your app apart from background sound, and notices when a "mm-hm" is only an acknowledgement. This helps your voice agent decide when to answer, when to keep talking and when to stop. Connect to `wss://api.fish.audio/v1/asr/realtime`, send audio as you capture it, and read the events the server sends back. +Stream live audio over a WebSocket and get the transcript turn by turn while people speak, with `transcribe-stream-1` or `transcribe-stream-2`. Realtime speech to text does more than transcribe: it decides when the user has finished their turn, usually tells the user talking to your app apart from background sound, and notices when a "mm-hm" is only an acknowledgement. This helps your voice agent decide when to answer, when to keep talking and when to stop. Connect to `wss://api.fish.audio/v1/asr/realtime`, send audio as you capture it, and read the events the server sends back. `transcribe-stream-1` is in preview. @@ -66,7 +66,7 @@ To transcribe a recording you already have, use [`POST /v1/asr`](/features/speec | | Realtime (`/v1/asr/realtime`) | File (`POST /v1/asr`) | | -------------- | -------------------------------------------------------------- | ---------------------------------------------------------- | -| Model | `transcribe-stream-1` (Preview) | `transcribe-1-pro` | +| Model | `transcribe-stream-1` (Preview) or `transcribe-stream-2` | `transcribe-1-pro` | | Input | Live 16-bit PCM over a WebSocket | A complete audio file (WAV, MP3, Opus, and more) | | Output | Events per turn: drafts, turn signals and the final transcript | One transcript, with optional timestamps and speaker turns | | Turn detection | Yes | No | @@ -74,6 +74,17 @@ To transcribe a recording you already have, use [`POST /v1/asr`](/features/speec The realtime endpoints of the [compatible APIs](/developer-guide/compat/capabilities) are separate from this endpoint. They use manual commit and have no server-side turn detection. +## Models + +Two models serve this endpoint. Both have the same turn detection, messages and limits; choose one with the `model` header when you connect. + +| Model | Price | Notes | +| ------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `transcribe-stream-1` (Preview) | $0.36 / session hour | The default: a connection without the `model` header uses it. | +| `transcribe-stream-2` | $0.12 / session hour | Send `model: transcribe-stream-2`. Choose the style for numbers and times with [`text_format`](#numbers-and-times). | + +Write the header value exactly as shown: a connection with any other value also gets `transcribe-stream-1`. A connection that names `transcribe-stream-2` is meant to be served by `transcribe-stream-2`. While that model is temporarily unavailable, the handshake can be refused with a 5xx status; connect again with backoff. Or the session can start, and its turns can get an error; the session continues. `session_started.config.model` names the model that serves the session, and the session is billed at that model's price, so check it when the session starts. See [Models](/api-reference/endpoint/websocket/asr-realtime#models). + ## Quick start The SDKs do not wrap this endpoint; you connect with any WebSocket client and exchange MessagePack messages. @@ -81,7 +92,8 @@ The SDKs do not wrap this endpoint; you connect with any WebSocket client and ex Open `wss://api.fish.audio/v1/asr/realtime` from your server with the header - `Authorization: Bearer `. + `Authorization: Bearer `. To use `transcribe-stream-2`, also send + `model: transcribe-stream-2`. Send a `config` message with your audio format and options, and wait for @@ -182,7 +194,7 @@ Smart Turn Detection, including eager end of turn, backchannel detection and bac ## Latency -Measured on the production service with synthetic speech: +Measured on the production service with `transcribe-stream-1` and synthetic speech: - The first text, a `draft` (with `results.drafts: true`), arrives about 0.5 seconds after speech starts. - `eager_end_of_turn` arrives about 0.6 seconds after the speaker stops. @@ -200,6 +212,10 @@ Send 16-bit little-endian PCM, mono, at 8000, 12000, 16000, 22050, 24000, 32000, Transcripts contain speaker tags such as `<|speaker:0|>`, stable within a session. Strip them, or send `results.diarize: false` for plain text. Whitespace right after a tag can vary, so trim the text after you strip the tags. Transcripts can also contain sound tags such as `[laughter]` or `[pause]`. Strip them too, or send `results.tag_audio_events: false` to remove them; see [Sound tags](/api-reference/endpoint/websocket/asr-realtime#sound-tags). +### Numbers and times + +With `transcribe-stream-2`, set `results.text_format` in `config` to choose the style for numbers, amounts, times and similar, for the whole session: `"written"`, the default, for digits and symbols ("$25 at 3:30 pm"), or `"spoken"` for words, the way they were said ("twenty five dollars at three thirty pm"). `transcribe-stream-1` does not take `text_format`, and refuses a `config` that sends it. See [Text format](/api-reference/endpoint/websocket/asr-realtime#text-format). + ### Keys and browsers Your API key travels in a request header. Connect from your server, never from a web page. To transcribe a browser microphone, relay the audio through your server, as shown in the [quickstart](/developer-guide/sdk-guide/cookbook/realtime-transcription#capture-from-a-browser-microphone). @@ -210,7 +226,7 @@ A session lasts up to 60 minutes and a turn up to 60 seconds. Each open connecti ### Pricing -`transcribe-stream-1` costs $0.36 per hour, billed per second of session duration as its own line item, Realtime ASR. See [ASR pricing](/developer-guide/models-pricing/pricing-and-rate-limits#automatic-speech-recognition-asr-models). +`transcribe-stream-1` costs \$0.36 per hour and `transcribe-stream-2` \$0.12 per hour, billed per second of session duration as their own line item, Realtime ASR. See [ASR pricing](/developer-guide/models-pricing/pricing-and-rate-limits#automatic-speech-recognition-asr-models). ## Going further diff --git a/llms.txt b/llms.txt index 2c231c54..a2f0df9f 100644 --- a/llms.txt +++ b/llms.txt @@ -28,7 +28,7 @@ - [Delete Model](https://docs.fish.audio/api-reference/endpoint/model/delete-model.md): Delete an existing model. - [Revoke Exposed API Keys](https://docs.fish.audio/api-reference/endpoint/apikey/revoke-api-keys.md): Revoke exposed Fish Audio API keys without signing in; for secret scanners, partners, and key owners. - [WebSocket TTS Streaming](https://docs.fish.audio/api-reference/endpoint/websocket/tts-live.md): Real-time text-to-speech streaming via WebSocket. -- [WebSocket Realtime Speech to Text](https://docs.fish.audio/api-reference/endpoint/websocket/asr-realtime.md): Stream audio to wss://api.fish.audio/v1/asr/realtime (transcribe-stream-1, Preview) and receive transcripts per turn; every client and server message, turn detection modes, errors, close codes and limits. +- [WebSocket Realtime Speech to Text](https://docs.fish.audio/api-reference/endpoint/websocket/asr-realtime.md): Stream audio to wss://api.fish.audio/v1/asr/realtime (transcribe-stream-1, Preview, the default; or transcribe-stream-2, selected with the model header) and receive transcripts per turn; every client and server message, turn detection modes, errors, close codes and limits. ## SDKs @@ -51,7 +51,7 @@ - [Drama 3](https://docs.fish.audio/features/text-to-speech/drama-3.md): Text-to-speech model (drama-3) directed with plain-language directions in square brackets, sounds and pauses, paired tags for specific words, and multi-speaker dialogue. - [Audio Infill](https://docs.fish.audio/features/text-to-speech/audio-infill.md): Apply a script change to an existing recording with drama-3: send the take, the full revised transcript and the span to replace, and get the whole take back. - [Speech to Text Guide](https://docs.fish.audio/features/speech-to-text.md): Transcribe audio with transcribe-1-pro, including multi-speaker conversations with speaker turns, long recordings and inline emotion cues. -- [Realtime Speech to Text](https://docs.fish.audio/features/speech-to-text/realtime.md): Transcribe live audio turn by turn with transcribe-stream-1 (Preview): turn detection, eager end of turn, backchannel detection and conversation context for voice agents. +- [Realtime Speech to Text](https://docs.fish.audio/features/speech-to-text/realtime.md): Transcribe live audio turn by turn with transcribe-stream-1 (Preview) or transcribe-stream-2: turn detection, eager end of turn, backchannel detection and conversation context for voice agents. - [Transcribe a Live Audio Stream](https://docs.fish.audio/developer-guide/sdk-guide/cookbook/realtime-transcription.md): Python and Node.js clients for the realtime speech-to-text WebSocket (transcribe-stream-1, Preview), plus a browser microphone relay. - [Build a Realtime Voice Agent](https://docs.fish.audio/developer-guide/sdk-guide/cookbook/realtime-voice-agent.md): Agent loop on realtime speech to text (transcribe-stream-1, Preview): eager replies, agent_speaking, barge-in and backchannels. - [Voice Design Guide](https://docs.fish.audio/features/voice-design.md): Generate candidate voices from natural-language prompts. diff --git a/overview/capabilities.mdx b/overview/capabilities.mdx index 4c8eed14..1260020d 100644 --- a/overview/capabilities.mdx +++ b/overview/capabilities.mdx @@ -75,7 +75,7 @@ For speech to text, select the model with the `model` header on `POST /v1/asr`: - **`transcribe-1-pro`**: the recommended model, for everything from short clips to multi-speaker conversations (speaker markers and speaker turns) and long recordings, with inline emotion cues. Send `model: transcribe-1-pro` explicitly. - **`transcribe-1`**: general transcription of short recordings. A request whose `model` header is missing or not an exact match is served by this model. -To transcribe live audio, `transcribe-stream-1` (Preview) streams transcripts turn by turn over a WebSocket, with turn detection for voice agents. It is available through the API; see [Realtime Speech to Text](/features/speech-to-text/realtime). +To transcribe live audio, `transcribe-stream-1` (Preview, the default) and `transcribe-stream-2` stream transcripts turn by turn over a WebSocket, with turn detection for voice agents. They are available through the API; see [Realtime Speech to Text](/features/speech-to-text/realtime). See [Models Overview](/developer-guide/models-pricing/models-overview) and [Choosing a Model](/developer-guide/models-pricing/choosing-a-model) for the full lineup and languages, and [Speech to Text](/features/speech-to-text#input-audio) for transcription formats and limits.