Skip to content

fix: correct install package name to fish-audio-sdk - #171

Merged
abersheeran merged 2 commits into
fishaudio:mainfrom
lumpinif:docs/fix-install-package-name
Nov 24, 2026
Merged

abersheeran merged 2 commits into
fishaudio:mainfrom
lumpinif:docs/fix-install-package-name

Conversation

@lumpinif

@lumpinif lumpinif commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The SDK is published on PyPI as fish-audio-sdk (import name fishaudio), but the examples and one error hint tell 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), 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-sdk
  • fishaudio.utils.play: the missing-dependency hint fishaudio[utils] → fish-audio-sdk[utils] (and the matching test assertion)

No other occurrences remain (git grep for pip install/uv add with fishaudio, and fishaudio[). import fishaudio is the correct import name and is unchanged.

Checks

uv run poe check passes; uv run poe test: 177 passed, 1 skipped. The notebook is still valid JSON.

🤖 Generated with Claude Code


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

Summary by CodeRabbit

  • Documentation
    • Updated installation instructions across the examples and getting-started guide to use the fish-audio-sdk package name.
    • Updated the audio playback utility’s optional dependency hint to use fish-audio-sdk[utils].

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>
Copilot AI lite review requested due to automatic review settings November 23, 2026 11:37
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Example installation instructions and the optional dependency error message now use fish-audio-sdk instead of fishaudio. The unit test checks the updated hint and confirms that it excludes the old package name.

Changes: SDK package name updates

Layer / File(s) Summary
Update example installation instructions
examples/README.md, examples/getting-started/01_simple_tts.py, examples/getting-started/02_play_audio.py, examples/getting-started/03_check_credits.py, examples/getting_started.ipynb
The example installation commands now use fish-audio-sdk.
Update optional dependency hint
src/fishaudio/utils/play.py, tests/unit/test_utils.py
The missing-dependency message now suggests fish-audio-sdk[utils]. The test checks for this hint and confirms that fishaudio[utils] is absent.

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

Change: Bug fix

Suggested reviewers: leng-yue

Merge Risk: Minimal · up to de4c6

This updates installation instructions and the missing-dependency hint to the correct package name, so users no longer install an unrelated package. The change is low risk and ready to merge.

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 "fix: correct install package name to fish-audio-sdk" matches the main change. The PR replaces the incorrect PyPI package name fishaudio with fish-audio-sdk in the example READMEs, getti…
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 "fix: correct install package name to fish-audio-sdk" matches the main change. The PR replaces the incorrect PyPI package name fishaudio with fish-audio-sdk in the example READMEs, getting-started scripts, the notebook, and the missing-dependency hint in fishaudio.utils.play, along with the matching test. The title is short, specific, and states the primary change from the developer's perspective.

Finishing Touches

Generate unit tests (beta)

  • 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: 0a5ef8eb-5974-4fa6-9075-1d89f1fcb3e2
Commits

Reviewing files that changed from the base of the PR and between 30d2713 and de4c687.

Files selected for processing: 7

  • examples/README.md
  • examples/getting-started/01_simple_tts.py
  • examples/getting-started/02_play_audio.py
  • examples/getting-started/03_check_credits.py
  • examples/getting_started.ipynb
  • src/fishaudio/utils/play.py
  • tests/unit/test_utils.py

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T11:38:32.722987Z f9671ea 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.

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/fishaudio/utils/play.py 86.48% <ø> (ø)

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread tests/unit/test_utils.py Outdated
Comment on lines +82 to +84
assert "sounddevice" in str(
exc_info.value
)
) or "fish-audio-sdk[utils]" in str(exc_info.value)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 abersheeran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@abersheeran
abersheeran merged commit a850a08 into fishaudio:main Nov 24, 2026
15 checks passed
@lumpinif
lumpinif deleted the docs/fix-install-package-name branch November 30, 2026 11:37
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.

3 participants