fixed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user