メインコンテンツへスキップ
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>",
  "streaming": false
}
'
This response does not have an example.

Authorizations

Authorization
string
header
required

APIキー認証。すべてのAPIリクエストには、Authorization HTTPヘッダーにAPIキーを Bearer {API_KEY} の形式で含めてください。APIキーはサーバー側に保存し、クライアント側で共有または保存しないことを強くお勧めします。

Body

application/json

user が必要です。message_id または text を提供してください。

user
string
required

ユーザー識別子。

message_id
string<uuid>

メッセージID(優先)。

text
string

音声生成コンテンツ。

streaming
boolean
default:false

trueの場合、応答はオーディオチャンクのストリームになります。

Response

音声ファイルを正常に生成しました。

The response is of type file.