Skip to main content
python.png

Fish Audio Python SDK

PyPI version Python Version PyPI - Downloads codecov License The official Python library for the Fish Audio API Documentation: Python SDK Guide | API Reference
[!IMPORTANT]

Changes to PyPI Versioning

For existing users on Fish Audio Python SDK, please note that the starting version is now 1.0.0. The last version before this was 2025.6.3. You may need to adjust your version constraints accordingly. The original API in the fish_audio_sdk package 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 to fish-audio-sdk>=1.0.0 to continue receiving updates, or by pinning to a specific version like fish-audio-sdk==1.0.0 when installing via your package manager. There are no changes to the API itself in this transition. If you’re using the legacy fish_audio_sdk and would like to switch to the newer, more robust fishaudio package, see the migration guide to upgrade.

Installation

Authentication

Get your API key from fish.audio/app/api-keys:
Or provide directly:

Quick Start

Synchronous:
Asynchronous:

Core Features

Text-to-Speech

With custom voice:
With speed control:
Reusable configuration:
Chunk-by-chunk processing:
Learn more

Speech-to-Text

Learn more

Real-time Streaming

Stream dynamically generated text for conversational AI and live applications: Synchronous:
Asynchronous:
Learn more

Voice Cloning

Instant cloning:
Persistent voice models:
Learn more

Resource Clients

ResourceDescriptionKey Methods
client.ttsText-to-speechconvert(), stream(), stream_websocket()
client.asrSpeech recognitiontranscribe()
client.voicesVoice managementlist(), get(), create(), update(), delete()
client.accountAccount infoget_credits(), get_package()

Error Handling

Resources

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.