Skip to main content
POST
/api/v1/audio/voice-changer/retrieve
Utilisez le queue_id renvoyé par /audio/voice-changer/queue pour vérifier l’état de la conversion. Tant que le travail est en cours d’exécution, cet endpoint renvoie du JSON avec status: "PROCESSING" ; lorsqu’il se termine, il renvoie audio/mpeg. Définissez delete_media_on_completion sur true pour nettoyer les médias stockés dans le même appel, ou appelez /audio/voice-changer/complete après avoir téléchargé le fichier. Les modèles de changeur de voix ne sont pas acceptés sur /audio/retrieve.

Collection Postman

Pour des exemples supplémentaires, veuillez consulter cette collection Postman.

Autorisations

Authorization
string
header
requis

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

Corps

application/json
model
string
requis

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

Exemple:

"elevenlabs-voice-changer"

queue_id
string
requis

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

Exemple:

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

delete_media_on_completion
boolean
défaut: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.

Exemple:

false

Réponse

Conversion still processing, or the completed audio

status
enum<string>
requis

The conversion is still running. Poll again.

Options disponibles:
PROCESSING
Exemple:

"PROCESSING"

average_execution_time
number
requis

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

Exemple:

10000

execution_duration
number
requis

Milliseconds elapsed since the conversion was queued.

Exemple:

4200