The project is in a healthy, maintained state
Install `runapi-fish-audio`, create `RunApi::FishAudio::Client`, and call `client.text_to_speech.run(model: "s1", text: "Hello")`.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.3.0
 Project Readme

RunAPI

Fish Audio API SDKs for JavaScript, Python, Ruby, Go, Java, and PHP on RunAPI.

npm PyPI RubyGems Go Reference Maven Central License

Generate MP3 speech from text with s1 or s2-pro. RunAPI validates and stores each audio result before returning it.

Install

npm install @runapi.ai/fish-audio
pip install runapi-fish-audio
gem install runapi-fish-audio
go get github.com/runapi-ai/fish-audio-sdk/go@latest

For Java, install ai.runapi:runapi-fish-audio:0.1.2. The PHP package is released from the split repository at https://github.com/runapi-ai/fish-audio-php.

Quick start

import { FishAudioClient } from '@runapi.ai/fish-audio';

const client = new FishAudioClient();
const result = await client.textToSpeech.run({
  model: 's1',
  text: 'Hello from RunAPI',
  references: [{
    audio: '<base64 raw audio bytes>',
    text: 'Exact reference transcript',
  }],
});
console.log(result.audios[0].url);

references applies only to the current request. Each item requires base64-encoded raw audio bytes and its exact transcript; reusable voice IDs are not supported.

Variants

The returned URL points to RunAPI-managed storage. See the Fish Audio model page for current pricing, limits, and usage details.

License

Licensed under the Apache License, Version 2.0.