Repository navigation
fix: correct install package name to fish-audio-sdk - #171
Conversation
The SDK is published on PyPI as `fish-audio-sdk` (import name `fishaudio`), but the examples and the sounddevice dependency hint told users to `pip install fishaudio`. That name on PyPI is an unrelated third-party package (fishaudio 0.0.5, "text-to-speech synthesis 2", by calcuis, github.com/calcuis/text-to-speech-synthesis-2), so following the instructions installed the wrong project. - examples: `pip install fishaudio` -> `pip install fish-audio-sdk` (README, getting-started scripts 01-03, getting_started.ipynb) - utils.play: DependencyError hint `fishaudio[utils]` -> `fish-audio-sdk[utils]`, and the matching test assertion Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis 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. |
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 5 files with indirect coverage changes 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
The unit test does not verify the corrected dependency name and install hint, leaving the behavior changed by the PR insufficiently covered.
1 open issue
What changed in this PR
Corrects installation guidance to use the published fish-audio-sdk package while preserving the fishaudio import name.
Changes:
- Updates installation commands across the examples and getting-started notebook.
- Corrects the optional playback dependency hint to use
fish-audio-sdk[utils]. - Updates the related unit test assertion.
| File | Description |
|---|---|
| tests/unit/test_utils.py | Updates the expected optional dependency installation hint. |
| src/fishaudio/utils/play.py | Corrects the runtime installation hint for the optional playback dependency. |
| examples/README.md | Updates the example setup command to use the published SDK package name. |
| examples/getting-started/03_check_credits.py | Corrects the installation requirement in the credits example. |
| examples/getting-started/02_play_audio.py | Corrects the installation requirement in the audio playback example. |
| examples/getting-started/01_simple_tts.py | Corrects the installation requirement in the basic text-to-speech example. |
| examples/getting_started.ipynb | Updates the notebook installation command to use fish-audio-sdk. |
Review effort: Lite
| assert "sounddevice" in str( | ||
| exc_info.value | ||
| ) | ||
| ) or "fish-audio-sdk[utils]" in str(exc_info.value) |
There was a problem hiding this comment.
Fixed in de4c687. The test now asserts sounddevice and fish-audio-sdk[utils] separately, and that the old fishaudio[utils] hint is gone. It fails if the source string is reverted.
The sounddevice-missing test joined its two checks with `or`, and the error message always contains "sounddevice", so it passed regardless of which package the install hint named. Assert the dependency name and the `fish-audio-sdk[utils]` hint separately, and assert the old `fishaudio[utils]` spelling is gone. The test now fails if the hint is reverted to the old string. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
abersheeran
left a comment
There was a problem hiding this comment.
Verified the examples and playback hint use the published distribution name, and the regression test checks the exact new install hint. The Python CI checks passed.

Problem
The SDK is published on PyPI as
fish-audio-sdk(import namefishaudio), but the examples and one error hint tell users topip install fishaudio. That name on PyPI is an unrelated third-party package (fishaudio0.0.5, "text-to-speech synthesis 2", by calcuis), so following our instructions installs someone else's code.Fix
examples/README.md,examples/getting-started/01–03*.py,examples/getting_started.ipynb:pip install fishaudio→pip install fish-audio-sdkfishaudio.utils.play: the missing-dependency hintfishaudio[utils]→fish-audio-sdk[utils](and the matching test assertion)No other occurrences remain (
git grepforpip install/uv addwithfishaudio, andfishaudio[).import fishaudiois the correct import name and is unchanged.Checks
uv run poe checkpasses;uv run poe test: 177 passed, 1 skipped. The notebook is still valid JSON.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit
fish-audio-sdkpackage name.fish-audio-sdk[utils].