This commit is contained in:
2024-07-12 15:29:51 +08:00
parent f931475b95
commit b77a473507

View File

@@ -226,6 +226,7 @@ class Events extends \think\worker\Events
$filePath = $tempFile;//'/Users/wh/Desktop/test.wav';
// 这里的$app_id、$secret_key是在开放平台控制台获得
$client = new LfasrClient($app_id, $secret_key, $lfasrConfig);
Tools::log_to_write_txt(['初始化$client:'=>$client]);
// $filePath为待转写的本地文件路径返回taskId作为后续查询进度、获取结果操作的参数
$taskId = $client->combineUpload($filePath);