Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Example scripts demonstrating how to use the Fish Audio Python SDK.

```bash
# Install and setup
pip install fishaudio
pip install fish-audio-sdk
export FISH_API_KEY="your_api_key"
```
2 changes: 1 addition & 1 deletion examples/getting-started/01_simple_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Save the audio to an MP3 file

Requirements:
pip install fishaudio
pip install fish-audio-sdk

Environment Setup:
export FISH_API_KEY="your_api_key_here"
Expand Down
2 changes: 1 addition & 1 deletion examples/getting-started/02_play_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Different playback methods (ffmpeg, sounddevice)

Requirements:
pip install fishaudio
pip install fish-audio-sdk

# For audio playback (choose one):
# Option 1 (recommended): Install ffmpeg
Expand Down
2 changes: 1 addition & 1 deletion examples/getting-started/03_check_credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- Monitoring usage and remaining credits

Requirements:
pip install fishaudio
pip install fish-audio-sdk

Environment Setup:
export FISH_API_KEY="your_api_key_here"
Expand Down
2 changes: 1 addition & 1 deletion examples/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"First, install the SDK and set your API key:\n",
"\n",
"```bash\n",
"pip install fishaudio\n",
"pip install fish-audio-sdk\n",
"export FISH_API_KEY=\"your_api_key\"\n",
"```\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion src/fishaudio/utils/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def play(
except ImportError:
raise DependencyError(
"sounddevice and soundfile",
"pip install 'fishaudio[utils]' # or\npip install sounddevice soundfile",
"pip install 'fish-audio-sdk[utils]' # or\npip install sounddevice soundfile",
)

# Load and play audio
Expand Down
8 changes: 5 additions & 3 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ def test_play_sounddevice_not_installed(self):
with pytest.raises(DependencyError) as exc_info:
play(b"audio", use_ffmpeg=False)

assert "sounddevice" in str(exc_info.value) or "fishaudio[utils]" in str(
exc_info.value
)
message = str(exc_info.value)
assert "sounddevice" in message
assert "fish-audio-sdk[utils]" in message
# `fishaudio` on PyPI is an unrelated package; the hint must not name it.
assert "fishaudio[utils]" not in message

def test_play_notebook_not_installed(self):
"""Test error when IPython not available."""
Expand Down
Loading