Skip to main content
POST
/api/v1/audio/voice-changer/queue
Chame /audio/voice-changer/quote para estimar o custo e, em seguida, faça polling em /audio/voice-changer/retrieve com o queue_id retornado até que a conversão termine. Uma conversão enfileirada já foi cobrada. Se essa resposta for perdida, faça polling em retrieve em vez de enfileirar novamente. Se você mantiver a mídia convertida após a recuperação, chame /audio/voice-changer/complete assim que tiver feito o download. Modelos de trocador de voz não são aceitos em /audio/queue. Consulte o guia do Trocador de Voz para um passo a passo completo.

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

model
string
obrigatório

The voice-changer model to run. Models that are not voice changers are not supported here; use the /api/v1/audio endpoints instead.

Exemplo:

"elevenlabs-voice-changer"

file
file

The source recording (multipart/form-data, field name "file"). Accepted containers are listed per model as accepted_audio_formats in /models. Mutually exclusive with audio_url.

audio_url
string

Publicly reachable http(s) URL of the source recording. Venice fetches and validates the bytes itself and forwards only those bytes to the provider, so the URL is never handed onward. Mutually exclusive with the multipart file field.

Exemplo:

"https://example.com/source-recording.mp3"

voice
string

The target voice: one of the model’s voices from /models, or a provider Voice ID when the model reports supports_custom_voice_id. Defaults to the model’s default_voice.

Exemplo:

"Aria"

remove_background_noise
boolean

Strip background noise from the source recording before conversion.

Exemplo:

false

seed
integer

Seed for reproducible output. Omit for a non-deterministic result.

Intervalo obrigatório: x >= 0
Exemplo:

42

Resposta

Voice conversion queued successfully

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"

status
enum<string>
obrigatório

Always QUEUED. The provider has accepted the job.

Opções disponíveis:
QUEUED
Exemplo:

"QUEUED"

duration_seconds
number
obrigatório

Length of the source recording in seconds, measured server-side, and therefore the exact quantity billed for this request. Use it to reconcile against the estimate from /audio/voice-changer/quote.

Exemplo:

52