Repository navigation
Conversation
…election fish-audio-python adds client.asr.stream_websocket() for realtime speech to text and a model argument on asr.transcribe() (fishaudio/fish-audio-python#170). Realtime: the feature page's quick start and the "Transcribe a live audio stream" recipe now use the SDK (sync and async), say that transcripts carry speaker tags by default and how diarize=False turns them off, and list the session options. The WebSocket and MessagePack clients stay under "Without the SDK", for JavaScript (the TypeScript SDK does not support the endpoint yet) and other languages. Model selection: Python examples pass model="transcribe-1-pro" instead of RequestOptions(additional_headers={"model": ...}); examples that set a timeout keep RequestOptions for it. JavaScript examples are unchanged. Each page notes that the new arguments require fish-audio-sdk 1.5.0 or later. The cookbook specs follow the recipe's new block order and cover the two SDK scripts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
abersheeran
left a comment
There was a problem hiding this comment.
Please keep this in draft until a PyPI release contains the APIs from fishaudio/fish-audio-python#170. Verify the minimum version in the examples and cookbook requirements against the released package, then run the cookbook cases with that release.
The latest check-openapi job also fails at Ensure committed schema is current because api-reference/openapi.json differs from the fetched schema. Please rerun that check once the base branch has the current schema.
Important
Do not merge before fishaudio/fish-audio-python#170 is merged and released to PyPI. The examples here use arguments that do not exist in
fish-audio-sdk1.4.0.What changes
fish-audio-python#170 adds
client.asr.stream_websocket()(realtime speech to text) and amodelargument onasr.transcribe(). This PR updates the pages that told readers to work around their absence.Realtime speech to text uses the SDK
features/speech-to-text/realtime.mdx: the quick start is a Python SDK example. The WebSocket steps stay under "Without the SDK". The line "The SDKs do not wrap this endpoint" is gone.developer-guide/sdk-guide/cookbook/realtime-transcription.mdx: the recipe is the SDK script (sync and async tabs), followed by the session options and error handling. Thewebsockets+msgpackand Node.js scripts are kept unchanged under "Without the SDK", which states that the TypeScript SDK does not support the endpoint yet.diarize=False.Selecting the ASR model
Python examples pass
model="transcribe-1-pro"instead ofrequest_options=RequestOptions(additional_headers={"model": "transcribe-1-pro"}). Examples that also set a timeout keepRequestOptions(timeout=900). JavaScript examples are unchanged.features/speech-to-text.mdxdeveloper-guide/models-pricing/migrate-from-transcribe-1.mdxdeveloper-guide/sdk-guide/cookbook/batch-transcribe-with-language-hint.mdxdeveloper-guide/sdk-guide/cookbook/transcribe-to-captions.mdxdeveloper-guide/sdk-guide/cookbook/voice-agent-loop.mdxapi-reference/endpoint/openapi-v1/speech-to-text.mdxTests:
tests/cookbooks/specs.pyfollows the recipe's new block order and adds cases for the two SDK scripts;requirements.txtasks forfish-audio-sdk>=1.5.0.To confirm before merging
fish-audio-sdk1.5.0 or later", which is what release-please should produce for afeat:. Confirm against the actual release.api-reference/sdk/python/*is generated from the SDK and is not touched here; it updates when the SDK is released.Verified
Against the SDK branch of fish-audio-python#170 and the live API:
diarize=False), and alltranscribe(model="transcribe-1-pro")examples on the six pages.pytest tests/cookbooksfor the changed recipes (realtime-transcription,transcribe-to-captions,batch-transcribe-with-language-hint,voice-agent-loop): 8 passed.mint dev: the eight changed pages render (HTTP 200, no MDX errors).mint validate,mint broken-links,mint openapi-check: no findings in the changed files. Both still report existing problems intemp/,snippets/*.jsxand the generatedapi-reference/sdk/python/overview.mdx.prettier --checkon the changed pages: no new findings (two existing ones onmainremain).Not run: the JavaScript cookbook tests (
tests/js); no JavaScript example changed.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.