Repository navigation
docs(stt): correct what the SDKs support for realtime and file transcription - #430
Conversation
…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.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Several pages say things about the SDKs that stopped being true with
fish-audio-sdk1.4.0 / 1.5.0 andfish-audio0.2.0.Before:
features/speech-to-text/realtimeand the realtime cookbook: "The SDKs do not wrap this endpoint".features/speech-to-text, thePOST /v1/asrpage, two cookbooks and the SDK skill: the Python SDK "returns onlytext,duration, andsegments", does not returnlanguage,language_code,request_idorspeaker_turns, andasr.transcribe()"has nomodelargument".After:
client.asr.stream_websocket()(Python, 1.5.0+) andclient.speechToText.convertRealtime()(JavaScript, 0.2.0+, Node.js only) wrap the endpoint.model=from 1.5.0, with the version each needs.language_codeis described as the detected language or your hint.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
ASRResponseandtranscribe(); ran a realtranscribe(model="transcribe-1-pro")and a realasr.stream_websocket()session on 1.6.0. Cookbook tests for the touched recipes pass (8 passed).mint validateandmint broken-linksreport the same pre-existing errors asmain, 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.mdxuses the same text as #402 and merges cleanly. Three one-line conflicts remain whichever merges second:features/speech-to-text/realtime.mdxandcookbook/realtime-transcription.mdx(take #402's version), andapi-reference/endpoint/openapi-v1/speech-to-text.mdx(take #402's version, then drop "The Python SDK currently returns onlytext,duration, andsegments", which #402 still carries). #402 also still has that sentence infeatures/speech-to-text.mdx:140.Until the Python reference PR merges,
api-reference/sdk/pythonstill shows the oldtranscribe()signature and three response fields.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit