fish-audio-sdk
The official Python library for the Fish Audio API
What it is and what it does
Fish Audio SDK is the official Python client for Fish Audio's cloud-hosted speech synthesis and recognition services. It wraps HTTP and WebSocket APIs for text-to-speech (TTS), automatic speech recognition (ASR), voice management, and account operations. The library supports both synchronous and asynchronous workflows, making it suitable for simple scripts and production applications alike.
The SDK handles authentication via API key, provides typed request/response objects through pydantic, and includes utilities for audio playback and file I/O. It exposes core resources for converting text to speech with custom voices, transcribing audio files, cloning voices from samples, and checking account credits. Real-time streaming is supported via WebSocket for conversational AI and live applications.
Use it for:
- Build a chatbot or voice assistant that speaks responses in real time using TTS streaming
- Transcribe recorded audio files or live speech streams for meeting notes or accessibility
- Clone a custom voice from a sample recording and reuse it across multiple TTS requests
- Integrate speech synthesis into a web or mobile app backend with async/await support
- Monitor account usage and credit balance programmatically before running large synthesis jobs
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Official Python client for the Fish Audio API, providing text-to-speech, speech-to-text, voice cloning, and real-time streaming capabilities with both synchronous and asynchronous interfaces.
Yes. The package is actively maintained, has no known vulnerabilities, installs cleanly with low friction, and is licensed permissively under Apache-2.0. It is the official SDK for Fish Audio's API, so it is the natural choice if you need to integrate Fish Audio services into a Python application. Verify that Fish Audio's pricing and rate limits fit your use case before committing.
Install
fish-audio-sdk on PyPI
pip
pip install fish-audio-sdkuv
uv add fish-audio-sdkpoetry
poetry add fish-audio-sdkInstalling fish-audio-sdk
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent commit on 2026-07-31 and steady release cadence. Supports Python 3.9 through 3.14.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install fish-audio-sdk
from fish_audio_sdk import FishAudio
client = FishAudio(api_key="your_api_key")
audio = client.tts.convert(text="Hello, world!")
Requires a valid Fish Audio API key from fish.audio/app/api-keys; API calls are rate-limited and consume account credits.
Verify before relying
- Exact rate limits and quota behavior for different account tiers
- Performance characteristics for large-scale batch TTS or ASR operations
- Latency guarantees for real-time streaming endpoints
- Whether the import path is fish_audio_sdk or fishaudio in version 1.3.0
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — httpx-ws, httpx, ormsgpack, pydantic, typing-extensions |
| Maintenance | actively maintained — 157 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 192,118/month — #9,869 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fish_audio_sdk-1.3.0-py3-none-any.whl
Keywords: ai, fish-audio, speech-synthesis, text-to-speech, tts, voice-cloning
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
elevenlabsOfficial Python SDK for ElevenLabs…
permissive · top 5,000 on PyPI
livekit-plugins-sonioxIntegrates Soniox speech-to-text and…
permissive · top 15,000 on PyPI
deepgram-sdkOfficial Python SDK for Deepgram's speech…
permissive · top 5,000 on PyPI
aws_sdk_transcribe_streamingProvides a Python client for AWS Transcribe…
permissive · top 15,000 on PyPI
sonioxPython SDK for the Soniox speech-to-text and…
permissive · top 15,000 on PyPI
humePython SDK for integrating Hume AI's empathic…
permissive · top 15,000 on PyPI
pocket-ttsPocket TTS generates speech from text on CPU…
unclear · top 15,000 on PyPI
speechmatics-voicePython SDK for building real-time voice…
permissive · top 15,000 on PyPI
captchaGenerates audio and image CAPTCHAs for use in…
permissive · top 15,000 on PyPI
cartesiaCartesia is the official Python client library…
permissive · top 5,000 on PyPI