Riferimento API di ElevenLabs Dubbing
Doppia una registrazione o la colonna sonora di un video in 33 lingue, fino a 15 minuti
Con una sola chiave API di PopNow chiami ElevenLabs Dubbing dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD e una richiesta da incollare nel terminale così com’è.
Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.
In sintesi
- Sviluppato da
- ElevenLabs
- Risultato
- Audio
- Da
- $0.012 USD per secondo generato
I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.
Traduttore audio
elevenlabs/dubbing/audio-to-audio
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.012 per secondo generato |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
audio_urlObbligatorio | string | — | — | Speech recording to dub, 1 second to 15 minutes. Billed per second of this recording, rounded up. |
target_languageFacoltativo | string | en | ar, bg, zh, hr, cs, da, nl, en, fil, fi, fr, de, el, hi, … (+19) | Language to dub the speech into, as a language code. |
source_languageFacoltativo | string | auto | auto, af, ar, hy, az, be, bs, bg, ca, zh, hr, cs, da, nl, … (+44) | Language spoken in the source; auto detects it. |
speaker_countFacoltativo | integer | — | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, … (+18) | Number of people speaking, 1 to 32. Leave it out to let the service count them. |
keep_background_audioFacoltativo | boolean | true | — | Keep music and sound effects under the dubbed voices; off returns the voices only. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in audio_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "elevenlabs/dubbing/audio-to-audio",
"input": {
"audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Traduttore video
elevenlabs/dubbing/video-translate
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.012 per secondo generato |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
video_urlObbligatorio | string | — | — | Video with speech to dub, 1 second to 15 minutes. The picture is kept; billed per second of this clip, rounded up. |
target_languageFacoltativo | string | en | ar, bg, zh, hr, cs, da, nl, en, fil, fi, fr, de, el, hi, … (+19) | Language to dub the speech into, as a language code. |
source_languageFacoltativo | string | auto | auto, af, ar, hy, az, be, bs, bg, ca, zh, hr, cs, da, nl, … (+44) | Language spoken in the source; auto detects it. |
speaker_countFacoltativo | integer | — | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, … (+18) | Number of people speaking, 1 to 32. Leave it out to let the service count them. |
keep_background_audioFacoltativo | boolean | true | — | Keep music and sound effects under the dubbed voices; off returns the voices only. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in video_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "elevenlabs/dubbing/video-translate",
"input": {
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
