Skip to content

docs(stt): correct what the SDKs support for realtime and file transcription - #430

Merged
lumpinif merged 3 commits into
mainfrom
docs/fix-stt-sdk-facts
Nov 27, 2026
Merged

lumpinif merged 3 commits into
mainfrom
docs/fix-stt-sdk-facts

Conversation

@lumpinif

@lumpinif lumpinif commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Several pages say things about the SDKs that stopped being true with fish-audio-sdk 1.4.0 / 1.5.0 and fish-audio 0.2.0.

Before:

  • features/speech-to-text/realtime and the realtime cookbook: "The SDKs do not wrap this endpoint".
  • features/speech-to-text, the POST /v1/asr page, two cookbooks and the SDK skill: the Python SDK "returns only text, duration, and segments", does not return language, language_code, request_id or speaker_turns, and asr.transcribe() "has no model argument".

After:

  • The realtime pages keep their direct-protocol walkthrough and say that client.asr.stream_websocket() (Python, 1.5.0+) and client.speechToText.convertRealtime() (JavaScript, 0.2.0+, Node.js only) wrap the endpoint.
  • The transcription pages say the Python SDK returns these fields from 1.4.0 and takes model= from 1.5.0, with the version each needs. language_code is described as the detected language or your hint.
  • No code block changed.

Verified against the released packages: installed 1.0.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0 and 1.6.0 and inspected ASRResponse and transcribe(); ran a real transcribe(model="transcribe-1-pro") and a real asr.stream_websocket() session on 1.6.0. Cookbook tests for the touched recipes pass (8 passed). mint validate and mint broken-links report the same pre-existing errors as main, none new.

Relation to #402: #402 rewrites the realtime pages around the SDKs. This PR only removes the sentences that are false today, so it can merge first. The note in features/speech-to-text.mdx uses the same text as #402 and merges cleanly. Three one-line conflicts remain whichever merges second: features/speech-to-text/realtime.mdx and cookbook/realtime-transcription.mdx (take #402's version), and api-reference/endpoint/openapi-v1/speech-to-text.mdx (take #402's version, then drop "The Python SDK currently returns only text, duration, and segments", which #402 still carries). #402 also still has that sentence in features/speech-to-text.mdx:140.

Until the Python reference PR merges, api-reference/sdk/python still shows the old transcribe() signature and three response fields.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Documentation
    • Clarified which Python SDK versions expose speech-to-text response fields, including speaker turns, language details, and request IDs.
    • Updated guidance on selecting the Pro model, available Pro-only options, and when to use the API directly.
    • Documented Python and JavaScript SDK support for real-time transcription, including minimum versions and the JavaScript Node.js requirement.
    • Updated transcription examples to reflect current SDK behavior for language hints and captions.

…ription

The realtime pages said the SDKs do not wrap the realtime endpoint; the
Python SDK has it since 1.5.0 and the JavaScript SDK since 0.2.0. The
transcription pages said the Python SDK returns only text, duration and
segments and has no model argument; it returns every field since 1.4.0
and takes model since 1.5.0.
…ponse fields

The feature page, the captions recipe and the SDK skill still said the
Python SDK does not return language, language_code, request_id or
speaker_turns. Say that language_code can be the hint, and scope the
milliseconds warning to the versions it applies to.
@mintlify

mintlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
hanabiaiinc 🟢 Ready View Preview Nov 27, 2026, 9:03 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-27T09:03:30.875631Z
We couldn’t complete this review. Comment @codex review to try again.
1ff51ab PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Speech-to-Text documentation now describes Python SDK response fields and request capabilities by version. It also documents Python and JavaScript SDK wrappers for realtime transcription, including their version requirements and platform limits.

Changes: Speech-to-Text SDK documentation

Layer / File(s) Summary
Python response fields and versions
.mintlify/skills/fish-audio-sdk/SKILL.md, .mintlify/skills/fish-audio-sdk/references/speech-to-text.md, api-reference/endpoint/openapi-v1/speech-to-text.mdx, developer-guide/sdk-guide/cookbook/batch-transcribe-with-language-hint.mdx, developer-guide/sdk-guide/cookbook/transcribe-to-captions.mdx, features/speech-to-text.mdx
The documentation describes response fields available in Python SDK 1.4.0 and later, earlier-version behavior, and the version scope of the timing docstring caveat.
Python SDK request capabilities
features/speech-to-text.mdx
The guide documents Pro model selection by SDK version and identifies request fields that require direct API use.
Realtime SDK wrappers
developer-guide/sdk-guide/cookbook/realtime-transcription.mdx, features/speech-to-text/realtime.mdx
The documentation identifies Python and JavaScript realtime methods, minimum SDK versions, and the JavaScript Node.js restriction.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

  • fishaudio/docs#245: Documents speaker_turns and text behavior for Pro transcription, which connects to this PR’s descriptions of those response fields.
  • fishaudio/docs#410: Documents JavaScript SDK realtime STT behavior for the same SDK version referenced here.

Suggested reviewers: liujiahua123123, kilerd

Merge Risk: Minimal · up to 1ff51

This documentation-only change corrects SDK version and capability claims for speech-to-text. It has no runtime impact and no remaining merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "docs(stt): correct what the SDKs support for realtime and file transcription" matches the main change. The PR corrects documentation about SDK support for realtime WebSocket wrappers (Pytho…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs(stt): correct what the SDKs support for realtime and file transcription" matches the main change. The PR corrects documentation about SDK support for realtime WebSocket wrappers (Python stream_websocket, JavaScript convertRealtime) and for file transcription response fields and model selection. The title is specific and scoped to the docs change, and it does not describe anything absent from the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eb1c8862-f2b2-44e9-ad0a-728b2ad0a2c5
Commits

Reviewing files that changed from the base of the PR and between 7ff7451 and 1ff51ab.

Files selected for processing: 8

  • .mintlify/skills/fish-audio-sdk/SKILL.md
  • .mintlify/skills/fish-audio-sdk/references/speech-to-text.md
  • api-reference/endpoint/openapi-v1/speech-to-text.mdx
  • developer-guide/sdk-guide/cookbook/batch-transcribe-with-language-hint.mdx
  • developer-guide/sdk-guide/cookbook/realtime-transcription.mdx
  • developer-guide/sdk-guide/cookbook/transcribe-to-captions.mdx
  • features/speech-to-text.mdx
  • features/speech-to-text/realtime.mdx

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@lumpinif
lumpinif merged commit dd2b2f7 into main Nov 27, 2026
7 checks passed
@lumpinif
lumpinif deleted the docs/fix-stt-sdk-facts branch November 27, 2026 09:33

This branch was successfully deployed

1 active deployment
staging — 1ff51ab6 Deployed Nov 27, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant