# 1. the lip-sync state of a dubbed project
curl https://api.rask.ai/v3/projects/$ID/lipsync \
-H "Authorization: Bearer $RASK_API_KEY"
# "video_has_face": true, "free_trial_run_available": true
# 2. the price first - free, and it changes nothing
curl -X POST https://api.rask.ai/v3/projects/$ID/lipsync/estimate \
-H "Authorization: Bearer $RASK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "enhanced"}'
# 3. lip-sync the full video - the price you accepted is the ceiling
curl -X POST https://api.rask.ai/v3/projects/$ID/lipsync \
-H "Authorization: Bearer $RASK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "enhanced", "expected_cost_minutes": 12}'# Starting lip-sync returns a job. Wait on it instead of polling:
# one request, up to 20 seconds, and it returns the moment the task is done.
curl -s "https://api.rask.ai/v3/jobs/$JOB_ID?wait_seconds=20" \
-H "Authorization: Bearer $RASK_API_KEY" | jq .status



Giriş videosunu içe aktarın veya genel bir URL gönderin, hedef dilde bir proje oluşturun ve işlemin tamamlanmasını bekleyin. Dudak senkronizasyonu için bu projenin ürettiği dublajlı video gereklidir.
Yüz kontrolü görevi, videoda en az bir yüz olduğunu doğrular. Genellikle otomatik olarak başlar. Başlamadıysa proje için bir kez kendiniz çalıştırın.
Dudak senkronizasyonu görevini başlatın, 0'dan 100'e kadar olan ilerlemeyi takip edin ve ardından videoyu proje çıktıverinden indirin.
import os, requests
API = "https://api.rask.ai/v3"
h = {"Authorization": f"Bearer {os.environ['RASK_API_KEY']}"}
# lip-sync runs on a project that has already been dubbed
state = requests.get(f"{API}/projects/{project_id}/lipsync", headers=h).json()
assert state["video_has_face"]
# the price first - free, and it changes nothing
estimate = requests.post(f"{API}/projects/{project_id}/lipsync/estimate", headers=h,
json={"model": "enhanced"}).json()
# the price you accepted is the ceiling
job = requests.post(f"{API}/projects/{project_id}/lipsync", headers=h,
json={"model": "enhanced",
"expected_cost_minutes": estimate["total_minutes"]}).json()
requests.get(f"{API}/jobs/{job['id']}?wait_seconds=20", headers=h).json()
for o in requests.get(f"{API}/projects/{project_id}/outputs", headers=h).json()["data"]:
print(o["kind"], o["url"])# pip install rask-sdk
from rask_sdk import Rask
rask = Rask() # reads RASK_API_KEY
# the price first - free, and it changes nothing
estimate = rask.projects.estimate_project(
media_id=media_id, target_language="es-mx"
)
# dub, then lip-sync what it produced
created = rask.projects.create_project(
media_id=media_id,
target_language="es-mx",
expected_cost_minutes=estimate.total_minutes,
)
dubbed = rask.jobs.wait(created.id)
for o in rask.exports.list_project_outputs(dubbed.result.project_id).data:
print(o.kind, o.url)// no dependencies, Node 18+ global fetch
const API = 'https://api.rask.ai/v3';
const h = {
Authorization: `Bearer ${process.env.RASK_API_KEY}`,
'Content-Type': 'application/json',
};
// lip-sync runs on a project that has already been dubbed
const state = await fetch(`${API}/projects/${projectId}/lipsync`, { headers: h })
.then(r => r.json());
// the price first - free, and it changes nothing
const estimate = await fetch(`${API}/projects/${projectId}/lipsync/estimate`, {
method: 'POST', headers: h, body: JSON.stringify({ model: 'enhanced' }),
}).then(r => r.json());
// the price you accepted is the ceiling
const job = await fetch(`${API}/projects/${projectId}/lipsync`, {
method: 'POST', headers: h,
body: JSON.stringify({ model: 'enhanced', expected_cost_minutes: estimate.total_minutes }),
}).then(r => r.json());
await fetch(`${API}/jobs/${job.id}?wait_seconds=20`, { headers: h }).then(r => r.json());
const outputs = await fetch(`${API}/projects/${projectId}/outputs`, { headers: h })
.then(r => r.json());
outputs.data.forEach(o => console.log(o.kind, o.url));API=https://api.rask.ai/v3
AUTH="Authorization: Bearer $RASK_API_KEY"
JSON="Content-Type: application/json"
# 1. the dubbed video must have a usable face
curl -s $API/projects/$ID/lipsync -H "$AUTH" | jq .video_has_face
# 2. the price first - free, and it changes nothing
CAP=$(curl -s -X POST $API/projects/$ID/lipsync/estimate -H "$AUTH" -H "$JSON" \
-d '{"model": "enhanced"}' | jq -r .total_minutes)
# 3. start lip-sync - the price you accepted is the ceiling
JOB=$(curl -s -X POST $API/projects/$ID/lipsync -H "$AUTH" -H "$JSON" \
-d "{\"model\":\"enhanced\",\"expected_cost_minutes\":$CAP}" | jq -r .id)
# 4. wait on the job, then collect the lip-synced video
curl -s "$API/jobs/$JOB?wait_seconds=20" -H "$AUTH" | jq .status
curl -s $API/projects/$ID/outputs -H "$AUTH" \
| jq -r '.data[] | "\(.kind)\t\(.url)"'<?php
use GuzzleHttp\Client;
$http = new Client([
'base_uri' => 'https://api.rask.ai/v3/',
'headers' => ['Authorization' => 'Bearer ' . getenv('RASK_API_KEY')],
]);
// lip-sync runs on a project that has already been dubbed
$state = json_decode($http->get("projects/{$projectId}/lipsync")->getBody(), true);
// the price first - free, and it changes nothing
$estimate = json_decode($http->post("projects/{$projectId}/lipsync/estimate",
['json' => ['model' => 'enhanced']])->getBody(), true);
// the price you accepted is the ceiling
$job = json_decode($http->post("projects/{$projectId}/lipsync", ['json' => [
'model' => 'enhanced',
'expected_cost_minutes' => $estimate['total_minutes'],
]])->getBody(), true);
$http->get("jobs/{$job['id']}?wait_seconds=20");
$outputs = json_decode(
$http->get("projects/{$projectId}/outputs")->getBody(), true); 0s queued lip-sync task accepted
8s running face check
40s running generating
180s running merging
210s succeeded the lip-synced video is in the project outputs

es-mx ve es-es benzer şekilde hizmet eder. Proje kayıtları sözlük.sürüm, böylece daha sonra yapılan düzenlemeler tamamlanan çalışmayı habersiz değiştirmez.Evet. Rask dudak senkronizasyonu API'si, projektörünüzün dublaj yaptığı her videoda çalışır. Videoda bir yüz olduğundan emin olun, POST /v3/projects/{project_id}/lipsync/estimate ile görevi tahmin edin, başlatın ve işlem bittiğinde dudak senkronize edilmiş videoyu indirin. Kimlik doğrulama tek bir API anahtarı üzerinden yapılır, bu nedenle entegrasyon Rask API'nin geri kalanıyla aynı kalıbı takip eder.
Dudak senkronizasyonu çevrilmiş bir video üzerinde çalışır. Önce projenizi oluşturun ve dublajlayın, ardından bu işlem başarıyla tamamlandığında ve proje çıktılarında dublajlı bir video listelendiğinde dudak senkronizasyonunu başlatın.
Dudak senkronizasyonu, projenin seslendirilmiş sesini kullanır. Kendi ifadelerinizi kullanmak için çevrilmiş metni düzenleyin veya transkripti kendi .srt dosyanızdan oluşturun, projeyi yeniden seslendirin ve ardından yeni sürümde dudak senkronizasyonunu çalıştırın.
Rask, giriş videonuzdaki gerçek konuşmacıların gerçek görüntülerini dudak senkronizasyonuna tabi tutar. Konuşan avatar oluşturma, dijital insanlar ve bir görselden veya metin komutundan yapay zeka video üretimi farklı bir ürün kategorisidir ve bunun için bir yapay zeka video üretim aracı daha uygundur.
Konuşan yüzün net bir şekilde göründüğü, iyi aydınlatılmış ve ağzın kapanmadığı görüntüler kullanın. Güçlü profillerden ve dudakları kapatan mikrofon, el veya altyazı gibi unsurlardan kaçının. Yüz kontrolü, bir yüzün mevcut olduğunu doğrular; sonuçları videonuzda değerlendirmek için önizlemeyi kullanın.
Dudak senkronizasyonu, her tam video oluşturma işlemi için dublajdan ayrı olarak ücretlendirilir. Düzenlemelerden sonra dudak senkronize edilmiş yeni bir sürüm oluşturmak, ek bir dudak senkronizasyonu ücretine tabi olur.
Evet. Her hesabın ücretsiz kredileri arasında bir dakikalık ücretsiz dudak senkronizasyonu bulunur. Videonuzun bir dakikasını senkronize edip incelemek için görevi free_trial_run parametresi true olarak ayarlanmış şekilde çalıştırın. Kredi uç noktası bunu lipsync_free_minutes olarak gösterir.
Evet. Kamerada birden fazla kişi konuşuyorsa her sesin kendi konuşmacısıyla eşleşmesi için projede num_speakers ayarını yapın. Yapmazsanız Rask konuşmacıları kendi algılar.
GET /v3/projects/{project_id}/lipsync returns the state: video_has_face, whether a free trial run is available, and the latest job. Starting lip-sync returns a job that reports its stage, progress and queue position, and GET /v3/jobs/{job_id}?wait_seconds=20 returns the moment it is done.
İşlem süresi videonun uzunluğuna ve dudak senkronizasyonu sırasına göre değişir. Sıra konumu ve ilerleme değeri, kullanıcılarınıza görevin tam olarak hangi aşamada olduğunu gösterMENİZE olanak tanır.
Dudak senkronizasyonu, dublajlı versiyon başına bir kez oluşturulur. Metni, zaman damgalarını, konuşmacıları veya sesleri değiştirdikten sonra projeyi yeniden dublajlayın, işlemin başarılı olmasını bekleyin ve dudak senkronizasyonunu tekrar çalıştırın. Yeni dudak senkronizasyonu oluşturma işlemi ayrı olarak tahmin edilir ve faturalandırılır. Tamamlanan bir yüz kontrolünün yeniden çalıştırılması gerekmez.
İşlem durumu başarısız olarak görünüyorsa, hatayı okuyun ve ekibin incelemesini isterseniz project_id'niz ile birlikte [email protected] adresine e-posta gönderin.
API erişimi Creator Pro, Business ve Enterprise planlarında sunulmakta olup, özellikler planınıza göre belirlenir. Uygulama içinde bir API anahtarı oluşturarak hemen kullanmaya başlayabilirsiniz. Kurumsal şartlar, hacim bazlı fiyatlandırma ve özel dil kapsamı için ekibimizle iletişime geçebilirsiniz.