Fish Audio Python SDK for RunAPI
Install runapi-fish-audio and create a FishAudioClient.
created = client.create_voice.run(name="Narrator", source_audio_url="https://cdn.runapi.ai/public/samples/voice.mp3")
voice = client.get_voice.run(voice_id=created.voice.voice_id)
if voice.voice.state != "trained":
raise RuntimeError(f"Voice is {voice.voice.state}")
result = client.text_to_speech.run(model="s2.1-pro", text="Hello [excited]", voice_id=created.voice.voice_id, output_format="wav", sample_rate_hz=44100)
Pass optional references entries with base64-encoded raw audio bytes and exact transcripts for request-scoped voice matching.
create_voice.run() and text_to_speech.run() return the same typed terminal result whether the request completes directly or is accepted for background processing. To resume an accepted request from its opaque Task Result URL, call subscribe(location) on the same resource.
Use list_voices and get_voice to inspect account-owned voice resources. Only trained voices can be submitted for speech generation; a returned voice_id is a best-effort reference and may stop working later. Update, delete, revoke, or voice-library management methods are not provided; voice retention is not promised.
The output defaults to MP3. Select WAV with output_format; bitrate_kbps applies only to MP3.
Model details and pricing: https://runapi.ai/models/fish-audio/s2.1-pro
Licensed under the Apache License, Version 2.0.
Metadata
Release files for runapi-fish-audio 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| runapi_fish_audio-0.6.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| runapi_fish_audio-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / runapi_fish_audio-0.6.0.tar.gz
| Download URL | runapi_fish_audio-0.6.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c22335def964b8cf6aa6a4cb57549e9b0ea61fd19df55bac3e32ac9ff616c4a3
|
|
BLAKE2b-256 checksum How to use checksums |
6c2bd4eee49b25ff9cc13ca991520629f96f4a53ab09ccdda00f26cd2d6edb73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.1","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / runapi_fish_audio-0.6.0-py3-none-any.whl
| Download URL | runapi_fish_audio-0.6.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d0b5b55f7288e43be0f5e8f0be5a84d9c5aa3b0b6c7c43e056353ad9314e7a9
|
|
BLAKE2b-256 checksum How to use checksums |
284b222d78c0c0097a9249da7ea85dd0b8507106e24a818845b45e287af726eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.1","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|