応答オブジェクト
|
非ストリーミング{
"output": {
"audio": {
"data": "",
"expires_at": 1774936147,
"id": "audio_46c51288-7ed6-95cc-a119-xxxxxxxxxxxx",
"url": "http://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/pre/fun-music/20260330/xxxxxxxx/a8db24cc-d35f-961b-af81-a9e8d8b01f67.mp3?xxx"
},
"extra_info": {
"channels": 2,
"lyrics": "[verse]\nMorning sunlight slips through the curtain,\nCoffee aroma fills up the room.\nOpen the book left unfinished yesterday,\nTime quietly drifts by this way.\n\n[chorus]\nTake it slow, there's no hurry,\nLife should be this carefree.\nToss your worries into the wind,\nEmbrace every sunny day and rainy season.",
"sample_rate": 48000
},
"finish_reason": "stop"
},
"usage": {
"duration": 200
},
"request_id": "46c51288-7ed6-95cc-a119-xxxxxxxxxxxx"
}
ストリーミング(中間メッセージ){
"output": {
"audio": {
"data": "Base64-encoded audio data",
"expires_at": 1774937185,
"id": "audio_a8db24cc-d35f-961b-af81-xxxxxxxxxxxx"
},
"finish_reason": "null"
},
"request_id": "a8db24cc-d35f-961b-af81-xxxxxxxxxxxx"
}
ストリーミング(最終メッセージ){
"output": {
"audio": {
"expires_at": 1774937185,
"id": "audio_a8db24cc-d35f-961b-af81-xxxxxxxxxxxx",
"data": "",
"url": "http://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/pre/fun-music/20260330/xxxxxxxx/a8db24cc-d35f-961b-af81-a9e8d8b01f67.mp3?xxx"
},
"extra_info": {
"channels": 2,
"sample_rate": "48000",
"lyrics": "[verse]\nMorning sunlight slips through the curtain,\nCoffee aroma fills up the room.\nOpen the book left unfinished yesterday,\nTime quietly drifts by this way.\n\n[chorus]\nTake it slow, there's no hurry,\nLife should be this carefree.\nToss your worries into the wind,\nEmbrace every sunny day and rainy season."
},
"finish_reason": "stop"
},
"usage": {
"duration": 200
},
"request_id": "a8db24cc-d35f-961b-af81-xxxxxxxxxxxx"
}
|
|
request_id string
トラブルシューティングおよびログトレースに使用するリクエスト ID です。
|
|
output object
モデルの出力です。
プロパティ
audio object
モデルから出力されるオーディオデータです。
プロパティ
data string
ストリーミングモードでは Base64 エンコードされたオーディオチャンクが含まれます。非ストリーミングモードでは空文字列となります。
url string
完成したオーディオファイルの OSS URL です。有効期限は 24 時間です。非ストリーミングのすべての応答およびストリーミングの最終メッセージにのみ含まれます。
id string
オーディオファイル ID です。
expires_at integer
オーディオ URL の有効期限を示す UNIX タイムスタンプです。
extra_info object
生成されたオーディオに関する追加メタデータです。
プロパティ
channels integer
オーディオチャンネル数です。たとえば、2 はステレオを示します。
sample_rate string
オーディオのサンプルレートです。たとえば、「48000」などです。
lyrics string
生成された楽曲の歌詞です。
finish_reason string
生成ステータス:
|
|
usage object
このリクエストの課金情報です。
プロパティ
duration integer
課金対象となる楽曲の持続時間(秒単位)です。
|