shreejalmaharjan-27/php-fakeyou
Composer 安装命令:
composer require shreejalmaharjan-27/php-fakeyou
包简介
A PHP interface to interact with FakeYou APIs
README 文档
README
A library to interact with FakeYou APIs
Usage
Install
composer require shreejalmaharjan-27/php-fakeyou
Import library
use Shreejalmaharjan27\PhpFakeyou\FakeYou;
Create Object
$api = new FakeYou();
(Optional) Login to your FakeYou account
$api->login('joe@example.com', '12345678');
Audio Generation
/** * @param string The message to be converted to audio * @param string The model to be used for the audio */ $audio = $api->audio('Hello world', 'TM:fxq6hnfc3rht');
Check If Audio has been generated
/** * @param string Job Token * @param string Type of Check (lipsync/audio) */ $check = $api->check($audio['inference_job_token'], 'tts'); var_dump($check);
LipSync Generation
$video = $api->lipsync('https://example.com/audio.wav', 'WT:fp46xr2zewkt7yv14ptbehb1fcnth');
Check if video has been generated
/** * @param string Job Token * @param string Type of Check (lipsync/audio) */ $check = $api->check($video['inference_job_token'], 'lipsync'); var_dump($check);
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-24