Przejdź do głównej treści
POST
cURL
Użyj POST /runwayml/v1/voice_dubbing, aby przetłumaczyć mowę na inny język. Użyj identyfikatora modelu eleven_voice_dubbing. Wyślij klucz API CometAPI z uwierzytelnianiem Bearer i treścią żądania JSON.

Podaj plik audio i język docelowy

Ustaw audioUri na dostępny adres URL HTTPS źródłowego pliku audio. Ustaw targetLang na kod języka docelowego, na przykład es dla języka hiszpańskiego lub fr dla języka francuskiego. Wybierz obsługiwany kod ze schematu żądania. Żądanie wymaga model, audioUri i targetLang. Zastąp przykładowy adres URL pliku audio swoim plikiem źródłowym.

Skonfiguruj dubbing

Pomiń kontrolki logiczne, aby użyć wartości domyślnych modelu. Wysłanie false również powoduje użycie wartości domyślnych.

Pobierz wynik

Zapisz zwrócony id, a następnie użyj operacji Pobierz zadanie Runway aby pobrać status zadania. Gdy status ma wartość SUCCEEDED, odczytaj adresy URL plików audio w output. Jeśli zadanie się nie powiedzie, sprawdź failure i failureCode.

Autoryzacje

Authorization
string
header
wymagane

Use your CometAPI API key.

Treść

application/json

Request settings for eleven_voice_dubbing.

model
enum<string>
wymagane

Model ID for this request.

Dostępne opcje:
eleven_voice_dubbing
Allowed value: "eleven_voice_dubbing"
audioUri
wymagane

Audio input as an accessible HTTPS URL or base64 data URI.

Required string length: 13 - 2048
Pattern: ^https:\/\/.*
targetLang
enum<string>
wymagane

The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for French).

Dostępne opcje:
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
disableVoiceCloning
boolean

Set true to use a generic voice instead of cloning the source voice. Omit or use false for the model default.

dropBackgroundAudio
boolean

Set true to remove background audio from the dubbed output. Omit or use false for the model default.

numSpeakers
integer

Number of speakers in the source audio. Supply a positive integer or omit it for automatic detection.

Wymagany zakres: x <= 9007199254740991

Odpowiedź

Task created. Save the returned id to retrieve task status.

id
string
wymagane

Task ID for GET /runwayml/v1/tasks/{id}.

status
string

Task state, when returned.

createdAt
string<date-time>

Task submission timestamp, when returned.

output
string<uri>[]

Result URLs, when returned.

failure
string

Failure explanation, when returned.

failureCode
string

Machine-readable failure code, when returned.

estimatedCost
object

Task estimate metadata, when returned.

cost
object

Task cost metadata, when returned.

Ostatnia modyfikacja 21 września 2026