柔軟なパラメータ
bitrate_kbps, output_format, references, sample_rate_hz, text を含む 6 個のドキュメント済みパラメータを設定できます。
Expressive multilingual speech for conversational and narrative audio
curl -X POST https://runapi.ai/api/v1/fish_audio/text_to_speech \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "s1",
"text": "この短いドキュメンタリーのナレーションを、一定の話速を保った表現力豊かで自然な音声に変換してください。"
}'
import { FishAudioClient } from "@runapi.ai/fish-audio";
const client = new FishAudioClient();
const result = await client.textToSpeech.run({
model: "s1",
text: "この短いドキュメンタリーのナレーションを、一定の話速を保った表現力豊かで自然な音声に変換してください。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/fish_audio/text_to_speech",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"s1","text":"この短いドキュメンタリーのナレーションを、一定の話速を保った表現力豊かで自然な音声に変換してください。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/fish_audio/text_to_speech");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 's1',
'text' => 'この短いドキュメンタリーのナレーションを、一定の話速を保った表現力豊かで自然な音声に変換してください。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToSpeech().run({"model":"s1","text":"この短いドキュメンタリーのナレーションを、一定の話速を保った表現力豊かで自然な音声に変換してください。"});
task.waitForResult();
require "runapi/fish_audio"
client = RunApi::FishAudio::Client.new
result = client.text_to_speech.run(
model: "s1",
text: "この短いドキュメンタリーのナレーションを、一定の話速を保った表現力豊かで自然な音声に変換してください。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToSpeech.Run({"model":"s1","text":"この短いドキュメンタリーのナレーションを、一定の話速を保った表現力豊かで自然な音声に変換してください。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model s1 \
--endpoint text_to_speech \
--wait
3 個のバージョンを利用可能
モデルを選んで、数秒で生成できます。
モデルを選んで、数秒で生成できます。
| プロバイダー | Fish Audio |
| モデル ID | s1 |
| モダリティ | Audio & Music |
| タスク種別 | Synchronous |
| API エンドポイント | /api/v1/fish_audio/text_to_speech |
| 請求単位 | 1K UTF-8 bytes |
| 入力パラメータ | bitrate_kbps, model, output_format, references, sample_rate_hz, text, voice_id |
| 出力形式 | mp3, wav |
| カタログ状態 | 稼働中 |
無料で登録し、ダッシュボードから s1 用の API キーを作成します。
/api/v1/fish_audio/text_to_speech に s1 のモデル ID とパラメータを指定して POST リクエストを送信します。
エンドポイントから完了した s1 のレスポンスを直接読み取ります。
bitrate_kbps, output_format, references, sample_rate_hz, text を含む 6 個のドキュメント済みパラメータを設定できます。
1 個の公開 endpoint を提供しています: text_to_speech。
1K UTF-8 bytes に基づいて計量課金されます。サブスクリプション不要。
text説明はありません。
voice_id説明はありません。
referencesInline reference audio samples for this request.
bitrate_kbpsMP3 bitrate. Not accepted for WAV output. (64, 128, 192)
output_formatOutput audio format. (mp3, wav)
sample_rate_hzOutput sample rate. MP3 supports 32000 and 44100 Hz; WAV supports every listed value. (8000, 16000, 24000, 32000, 44100)
楽曲や音声アセットを作成します。
音声合成やオーディオ処理の pipeline を構築します。
開発環境にオーディオツールを提供します。
quickstart に表示されるモデル ID を渡してください。
はい。呼び出しまたは単位ごとの従量課金です。