メインコンテンツへスキップ
POST
/
text-to-audio
テキストから音声
curl --request POST \
  --url http://{api_base_url}/text-to-audio \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "text": "<string>",
  "user": "<string>"
}
'
This response does not have an example.

Authorizations

Authorization
string
header
required

API-Key認証。すべてのAPIリクエストで、Authorization HTTPヘッダーに Bearer {API_KEY} の形式でAPIキーを含めてください。APIキーの漏洩を避けるため、サーバーサイドでの保存を強く推奨します。

Body

application/json

userが必須。message_idまたはtextのいずれかを提供。

user
string
required

ユーザー識別子。

message_id
string<uuid>

メッセージID(textより優先)。

text
string

音声生成コンテンツ。

Response

音声ファイル生成成功。

The response is of type file.