Producer 下載 WAV API 串接說明
Producer 允許我們下載歌曲相關的 WAV 檔案,本文檔講解相關 API 的串接方法。
該 API 只有一個輸入參數,就是 audio_id,它是歌曲唯一的 ID。
這裡我們輸入的 audio_id 是 a54609c6-13e2-4176-be0f-4d7eebc68e1f,是一個 Producer 生成的歌曲 ID。
curl -X POST 'https://api.01ai.cloud/producer/wav' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"audio_id": "a54609c6-13e2-4176-be0f-4d7eebc68e1f"
}'
結果如下:
{
"success": true,
"task_id": "44963173-b6c5-463c-915f-96730d14ec63",
"trace_id": "f75d6a27-54bc-49fd-a40e-6d4cd0427764",
"data": [
{
"title": "Woke up with the sun in my eyes",
"file_url": "https://cdn.acedata.cloud/assets/examples/fish/64adc04b-c196-4a0f-9070-222ba101ce6c-fc50de38c165.wav"
}
]
}
可以看到,data 的 file_url 欄位就是下載的 WAV 連結。

