runapi-ai/volcengine-lip-sync

RunAPI Volcengine Lip Sync Composer package for PHP applications

Maintainers

Package info

github.com/runapi-ai/volcengine-lip-sync-php

Homepage

Documentation

pkg:composer/runapi-ai/volcengine-lip-sync

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2026-07-16 04:09 UTC

This package is auto-updated.

Last update: 2026-07-29 04:08:07 UTC


README

Packagist License

The Volcengine Lip Sync PHP SDK is the Composer package for Volcengine Lip Sync on RunAPI. Use it when your PHP application needs associative-array request bodies, task status lookup, polling helpers, file helpers, and consistent RunAPI errors.

This README is the PHP package guide for the public volcengine-lip-sync-php split repository. For model details, use https://runapi.ai/models/volcengine-lip-sync; for API reference, use https://runapi.ai/docs/api/volcengine-lip-sync/lip-sync-video; for SDK docs, use https://runapi.ai/docs/resources/sdks.

Install

composer require runapi-ai/volcengine-lip-sync

Quick start

<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\VolcengineLipSync\VolcengineLipSyncClient;

$client = new VolcengineLipSyncClient(); // reads RUNAPI_API_KEY

$task = $client->lipSyncVideo->create([
    'model' => 'volcengine-lip-sync',
    'align_audio' => true,
    'align_audio_reverse' => true,
    'enable_vocal_separation' => true,
    'mode' => 'lite',
    'source_audio_url' => 'https://cdn.runapi.ai/public/samples/volcengine-lip-sync-voice-adam.mp3',
    'source_video_url' => 'https://cdn.runapi.ai/public/samples/volcengine-lip-sync-source.mp4',
    'template_start_seconds' => 0.5,
]);

$status = $client->lipSyncVideo->get($task->id);

$result = $client->lipSyncVideo->run([
    'model' => 'volcengine-lip-sync',
    'align_audio' => true,
    'align_audio_reverse' => true,
    'enable_vocal_separation' => true,
    'mode' => 'lite',
    'source_audio_url' => 'https://cdn.runapi.ai/public/samples/volcengine-lip-sync-voice-adam.mp3',
    'source_video_url' => 'https://cdn.runapi.ai/public/samples/volcengine-lip-sync-source.mp4',
    'template_start_seconds' => 0.5,
]);

echo $result->videos[0]->url . PHP_EOL;

Use create() to submit a task and return quickly, get() to fetch the latest task state, and run() when a script should create and poll until completion. In web request handlers, prefer create() plus webhook or later get() polling so a worker is not held open.

RunAPI-generated file URLs are temporary. Download and store generated files in your own durable storage within the retention window; do not treat returned URLs as long-term assets.

Language notes

Pass request parameters as associative arrays with snake_case keys. The available resources are lipSyncVideo. Keep RUNAPI_API_KEY in the environment or your secret manager; never commit API keys or callback secrets.

Links

License

Licensed under the Apache License, Version 2.0.