すべてのTTS APIエンドポイントは、X-API-KeyヘッダーにAPIキーを含める必要があります
X-API-Key: your-api-key-here
APIキーはダッシュボードより発行することができます。 クレジット不足など、APIキーが無効な場合、401レスポンスが返ってきます。
Livetoon TTSエンジンを使用してテキストから音声を生成します。
リクエスト例:
curl -X POST <https://api.livetoon.net/v1/tts/livetoon> \\
-H "X-API-Key: your-api-key" \\
-H "Content-Type: application/json" \\
-d '{"text": "これは音声に変換されるサンプルテキストです。", "voice": "default", "speed": 1}' \\
--output speech.wav
リクエスト:
/v1/tts/livetoonX-API-Key: your-api-keyContent-Type: application/json{
"text": "こんにちは、世界!",
"voice": "default",
"speed": 1
}
Bodyのパラメータ説明: