Skip to main content
POST
/api/v1/audio/voice-changer/retrieve
使用 /audio/voice-changer/queue 返回的 queue_id 来检查转换状态。任务运行期间会返回 status: "PROCESSING" 的 JSON;任务完成时会返回 audio/mpeg。将 delete_media_on_completion 设置为 true 可在同一次调用中清理存储的媒体,或者在下载文件后调用 /audio/voice-changer/complete /audio/retrieve 不接受语音转换(Voice Changer)模型。

Postman 集合

如需更多示例,请参阅此 Postman 集合

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
model
string
必填

The model that is running the conversion. Only voice-changer models are accepted on the /api/v1/audio/voice-changer endpoints.

示例:

"elevenlabs-voice-changer"

queue_id
string
必填

Pass this to /audio/voice-changer/retrieve to poll for the converted audio, and to /audio/voice-changer/complete when finished.

示例:

"0190f2c4-9c1e-7a3b-8f42-2c9d5e7a1b34"

delete_media_on_completion
boolean
默认值:false

Release the provider-held media as soon as this call returns the audio, so a separate /audio/voice-changer/complete call is unnecessary. The audio cannot be retrieved again afterwards.

示例:

false

响应

Conversion still processing, or the completed audio

status
enum<string>
必填

The conversion is still running. Poll again.

可用选项:
PROCESSING
示例:

"PROCESSING"

average_execution_time
number
必填

Recent average end-to-end time for this model in milliseconds. Use it to pace polling.

示例:

10000

execution_duration
number
必填

Milliseconds elapsed since the conversion was queued.

示例:

4200