Skip to main content
POST
/api/v1/audio/voice-changer/queue
调用 /audio/voice-changer/quote 估算费用,然后使用返回的 queue_id 轮询 /audio/voice-changer/retrieve,直到转换完成。已加入队列的转换已经扣费。如果此响应丢失,请轮询 retrieve,而不要重新加入队列。如果您在检索后需要保留转换后的媒体,请在下载完成后调用 /audio/voice-changer/complete /audio/queue 不接受语音转换(Voice Changer)模型。完整流程请参阅语音转换指南

Postman 集合

如需更多示例,请参阅此 Postman 集合

授权

Authorization
string
header
必填

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

请求体

model
string
必填

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

示例:

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

示例:

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

示例:

"Aria"

remove_background_noise
boolean

Strip background noise from the source recording before conversion.

示例:

false

seed
integer

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

必填范围: x >= 0
示例:

42

响应

Voice conversion queued successfully

model
string
必填

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

示例:

"elevenlabs-voice-changer"

queue_id
string
必填

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

示例:

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

status
enum<string>
必填

Always QUEUED. The provider has accepted the job.

可用选项:
QUEUED
示例:

"QUEUED"

duration_seconds
number
必填

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.

示例:

52