Fish Audio Python SDK
[!IMPORTANT]Changes to PyPI Versioning
For existing users on Fish Audio Python SDK, please note that the starting version is now1.0.0. The last version before this was2025.6.3. You may need to adjust your version constraints accordingly. The original API in thefish_audio_sdkpackage has NOT been removed, but you will not receive any updates if you continue using the old versioning scheme. The simplest fix is to update your dependency tofish-audio-sdk>=1.0.0to continue receiving updates, or by pinning to a specific version likefish-audio-sdk==1.0.0when installing via your package manager. There are no changes to the API itself in this transition. If you’re using the legacyfish_audio_sdkand would like to switch to the newer, more robustfishaudiopackage, see the migration guide to upgrade.
Installation
Authentication
Get your API key from fish.audio/app/api-keys:Quick Start
Synchronous:Core Features
Text-to-Speech
With custom voice:Speech-to-Text
Real-time Streaming
Stream dynamically generated text for conversational AI and live applications: Synchronous:Voice Cloning
Instant cloning:Resource Clients
| Resource | Description | Key Methods |
|---|---|---|
client.tts | Text-to-speech | convert(), stream(), stream_websocket() |
client.asr | Speech recognition | transcribe() |
client.voices | Voice management | list(), get(), create(), update(), delete() |
client.account | Account info | get_credits(), get_package() |
Error Handling
Resources
- Documentation: SDK Guide | API Reference
- Package: PyPI | GitHub
- Legacy SDK: Documentation | Migration Guide

