Doppiaggio audio Runway
Traduci l’audio parlato in una lingua di destinazione con l’API Runway.
POST /runwayml/v1/voice_dubbing per tradurre l’audio parlato in un’altra
lingua. Usa l’ID modello eleven_voice_dubbing.
Invia la chiave API CometAPI con l’autenticazione Bearer e un corpo della richiesta JSON.
Fornisci l’audio e una lingua di destinazione
ImpostaaudioUri su un URL HTTPS accessibile dell’audio di origine.
Imposta targetLang sul codice della lingua di destinazione, ad esempio es per lo spagnolo
o fr per il francese. Seleziona il codice supportato dallo schema della richiesta.
La richiesta richiede model, audioUri e targetLang.
Sostituisci l’URL audio di esempio con il file di origine.
Configura il doppiaggio
false usa anch’esso
i valori predefiniti.
Recupera il risultato
Salva il valoreid restituito, quindi usa Ottieni un’attività Runway
per recuperare lo stato dell’attività. Quando status è SUCCEEDED, leggi gli URL audio in
output. Se l’attività non riesce, esamina failure e failureCode.Autorizzazioni
Use your CometAPI API key.
Corpo
Request settings for eleven_voice_dubbing.
Model ID for this request.
eleven_voice_dubbing "eleven_voice_dubbing"Audio input as an accessible HTTPS URL or base64 data URI.
13 - 2048^https:\/\/.*The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for French).
en, hi, pt, zh, es, fr, de, ja, ar, ru, ko, id, it, nl, tr, pl, sv, fil, ms, ro, uk, el, cs, da, fi, bg, hr, sk, ta Set true to use a generic voice instead of cloning the source voice. Omit or use false for the model default.
Set true to remove background audio from the dubbed output. Omit or use false for the model default.
Number of speakers in the source audio. Supply a positive integer or omit it for automatic detection.
x <= 9007199254740991Risposta
Task created. Save the returned id to retrieve task status.
Task ID for GET /runwayml/v1/tasks/{id}.
Task state, when returned.
Task submission timestamp, when returned.
Result URLs, when returned.
Failure explanation, when returned.
Machine-readable failure code, when returned.
Task estimate metadata, when returned.
Task cost metadata, when returned.