Skip to main content
POST
/api/v1/audio/voice-changer/retrieve
Usa il queue_id restituito da /audio/voice-changer/queue per controllare lo stato della conversione. Mentre il job è in esecuzione questo endpoint restituisce JSON con status: "PROCESSING"; quando termina restituisce audio/mpeg. Imposta delete_media_on_completion su true per ripulire i media memorizzati nella stessa chiamata, oppure chiama /audio/voice-changer/complete dopo aver scaricato il file. I modelli voice-changer non sono accettati su /audio/retrieve.

Postman Collection

Per ulteriori esempi, consulta questa Postman Collection.

Autorizzazioni

Authorization
string
header
obbligatorio

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

Corpo

application/json
model
string
obbligatorio

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

Esempio:

"elevenlabs-voice-changer"

queue_id
string
obbligatorio

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

Esempio:

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

delete_media_on_completion
boolean
predefinito: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.

Esempio:

false

Risposta

Conversion still processing, or the completed audio

status
enum<string>
obbligatorio

The conversion is still running. Poll again.

Opzioni disponibili:
PROCESSING
Esempio:

"PROCESSING"

average_execution_time
number
obbligatorio

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

Esempio:

10000

execution_duration
number
obbligatorio

Milliseconds elapsed since the conversion was queued.

Esempio:

4200