Skip to main content
POST
/api/v1/audio/voice-changer/retrieve
Usa el queue_id devuelto por /audio/voice-changer/queue para comprobar el estado de la conversión. Mientras el trabajo se está ejecutando, esto devuelve JSON con status: "PROCESSING"; cuando termina, devuelve audio/mpeg. Establece delete_media_on_completion en true para limpiar los medios almacenados en la misma llamada, o llama a /audio/voice-changer/complete después de descargar el archivo. Los modelos de cambiador de voz no se aceptan en /audio/retrieve.

Colección de Postman

Para ver más ejemplos, consulta esta Colección de Postman.

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
model
string
requerido

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

Ejemplo:

"elevenlabs-voice-changer"

queue_id
string
requerido

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

Ejemplo:

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

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

Ejemplo:

false

Respuesta

Conversion still processing, or the completed audio

status
enum<string>
requerido

The conversion is still running. Poll again.

Opciones disponibles:
PROCESSING
Ejemplo:

"PROCESSING"

average_execution_time
number
requerido

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

Ejemplo:

10000

execution_duration
number
requerido

Milliseconds elapsed since the conversion was queued.

Ejemplo:

4200