Skip to main content
POST
/api/v1/audio/voice-changer/retrieve
Use o queue_id retornado por /audio/voice-changer/queue para verificar o status da conversão. Enquanto o job está em execução, isso retorna JSON com status: "PROCESSING"; quando termina, retorna audio/mpeg. Defina delete_media_on_completion como true para limpar a mídia armazenada na mesma chamada, ou chame /audio/voice-changer/complete após baixar o arquivo. Modelos de trocador de voz não são aceitos em /audio/retrieve.

Coleção do Postman

Para exemplos adicionais, consulte esta coleção do Postman.

Autorizações

Authorization
string
header
obrigatório

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

Corpo

application/json
model
string
obrigatório

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

Exemplo:

"elevenlabs-voice-changer"

queue_id
string
obrigatório

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

Exemplo:

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

delete_media_on_completion
boolean
padrão: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.

Exemplo:

false

Resposta

Conversion still processing, or the completed audio

status
enum<string>
obrigatório

The conversion is still running. Poll again.

Opções disponíveis:
PROCESSING
Exemplo:

"PROCESSING"

average_execution_time
number
obrigatório

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

Exemplo:

10000

execution_duration
number
obrigatório

Milliseconds elapsed since the conversion was queued.

Exemplo:

4200