Skip to main content
POST
/api/v1/audio/voice-changer/queue
Rufen Sie /audio/voice-changer/quote auf, um die Kosten zu schätzen, und fragen Sie dann /audio/voice-changer/retrieve mit der zurückgegebenen queue_id ab, bis die Konvertierung abgeschlossen ist. Eine in die Warteschlange gestellte Konvertierung wurde bereits berechnet. Wenn diese Antwort verloren geht, fragen Sie Retrieve ab, statt die Anfrage erneut in die Warteschlange zu stellen. Wenn Sie konvertierte Medien nach dem Abruf aufbewahren, rufen Sie /audio/voice-changer/complete auf, sobald Sie sie heruntergeladen haben. Voice-Changer-Modelle werden auf /audio/queue nicht akzeptiert. Eine vollständige Anleitung finden Sie im Voice-Changer-Guide.

Postman-Collection

Weitere Beispiele finden Sie in dieser Postman-Collection.

Autorisierungen

Authorization
string
header
erforderlich

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

Body

model
string
erforderlich

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

Beispiel:

"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.

Beispiel:

"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.

Beispiel:

"Aria"

remove_background_noise
boolean

Strip background noise from the source recording before conversion.

Beispiel:

false

seed
integer

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

Erforderlicher Bereich: x >= 0
Beispiel:

42

Antwort

Voice conversion queued successfully

model
string
erforderlich

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

Beispiel:

"elevenlabs-voice-changer"

queue_id
string
erforderlich

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

Beispiel:

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

status
enum<string>
erforderlich

Always QUEUED. The provider has accepted the job.

Verfügbare Optionen:
QUEUED
Beispiel:

"QUEUED"

duration_seconds
number
erforderlich

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.

Beispiel:

52