runapi-ai/fish-audio

RunAPI Fish Audio Composer package for PHP applications

Maintainers

Package info

github.com/runapi-ai/fish-audio-php

Homepage

Documentation

pkg:composer/runapi-ai/fish-audio

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2026-07-21 07:02 UTC

This package is auto-updated.

Last update: 2026-07-21 07:04:27 UTC


README

Packagist License

Use the Fish Audio PHP SDK to generate speech through RunAPI with a synchronous Composer client and typed managed-audio responses.

Install

composer require runapi-ai/fish-audio

Quick start

<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\FishAudio\FishAudioClient;

$client = new FishAudioClient(); // reads RUNAPI_API_KEY
$result = $client->textToSpeech->run([
    'model' => 's1',
    'references' => [['audio' => 'UklGRg==', 'text' => 'Reference transcript']],
    'text' => 'A product render',
]);

echo $result->audios[0]->url . PHP_EOL;

Pass request parameters as associative arrays with snake_case keys. Keep RUNAPI_API_KEY in the environment or your secret manager.

Links

License

Licensed under the Apache License, Version 2.0.