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 Get Started:Quick Start
Most examples on this page passmodel="s2.1-pro-free", the free model, so they work before you add API credit. Without model=, the SDK uses a paid model.
Synchronous:
Core Features
Text-to-Speech
With custom voice:fish-audio-sdk 1.6.0 or later):
client.tts.stream_with_timestamps() yields audio and timings while they arrive.
Learn more
Speech-to-Text
fish-audio-sdk 1.5.0 or later): stream 16-bit mono PCM to transcribe-stream-1 in 20 to 40 ms chunks and read the transcript turn by turn.
Real-time Streaming
Stream dynamically generated text for conversational AI and live applications: Synchronous:Voice Cloning
Instant cloning:Resource Clients
Error Handling
Resources
- Documentation: SDK Guide | API Reference
- Package: PyPI | GitHub
- Legacy SDK: Documentation | Migration Guide

