API ドキュメントとデバッグツール
テキスト読み上げ
音声クローン
リップシンク
その他
テキスト読み上げ
音声クローン
リップシンク
その他
テキスト読み上げ (HTTP)
HTTP 経由で音声合成 API をテストします。
テキスト読み上げ API
エンドポイント
POST /api/open/tts
リクエストヘッダー
// undefined Content-Type: application/json Authorization: Bearer YOUR_API_TOKEN // API キー // undefined Content-Type: application/msgpack Authorization: Bearer YOUR_API_TOKEN // API キー
リクエストパラメータ
サンプルリクエストパラメータ
バージョンの説明
- • 従来版: v1 / v2 / s1
- • V3: v3-turbo / v3-hd(感情制御などに対応)
- • モデル設定により適切なバージョンを自動選択します。
レスポンス
// undefined (cache=false) - 200
Content-Type: audio/mpeg
<undefined>
// undefined (cache=true) - 200
Content-Type: application/json
{
"success": boolean, // undefined
"audio_url": string, // undefined
"format": string, // undefined
"characters_used": number, // undefined
"quota_remaining": number // undefined
}
// undefined
{
"error": string // undefined
}CURL 例
# undefined - undefined
curl -X POST https://fishaudio.net/api/open/tts \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"reference_id": "your_model_id",
"text": "undefined",
"speed": 1.0,
"volume": 0,
"version": "s1",
"format": "mp3",
"cache": false
}' \
--output output.mp3
# undefined - undefined
curl -X POST https://fishaudio.net/api/open/tts \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"reference_id": "your_model_id",
"text": "undefined",
"speed": 1.0,
"volume": 0,
"version": "v3-hd",
"emotion": "calm",
"language": "zh",
"format": "mp3",
"cache": false
}' \
--output output.mp3
# undefined (undefined)オンラインデバッグ
ステータスコード
200: Success 400: Bad Request 401: Unauthorized 403: Forbidden 404: Not Found 429: Too Many Requests 500: Internal Server Error