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.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runapi_fish_audio-0.4.0.tar.gz.
File metadata
- Download URL: runapi_fish_audio-0.4.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17b3617b6e840322c07924881e1175314dd58ec3442a24165d4e822617e1a440
|
|
| MD5 |
39e02606f1e683cba9ae0a989192052a
|
|
| BLAKE2b-256 |
ba479146fdafaf896736a3ebc3e7873e509ce915de6611075522d90cd9cb47ba
|
File details
Details for the file runapi_fish_audio-0.4.0-py3-none-any.whl.
File metadata
- Download URL: runapi_fish_audio-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
248276701d5535ccb68047f6548281344a465cf21c4545334ebe03f79eafe89e
|
|
| MD5 |
94b5cb446e7310a5a8f33a2e59bb8384
|
|
| BLAKE2b-256 |
70f7c5fce64a8469f4a1bab2d6e0825f1f7a5628a004dcf15e65592082631910
|