This commit is contained in:
2024-07-12 18:39:14 +08:00
parent 502256c4a0
commit 27e0064982

View File

@@ -104,6 +104,7 @@ class AudioRevertLogic extends BaseLogic
$appId = $xunfei_record_config['appid'];
$secretKey = $xunfei_record_config['secretKey'];
dump($xunfei_record_config);
$client = new LfasrClient($appId, $secretKey);
echo "开始上传音频...\n";
$filePath = Tools::get_root_path().'public/iseTest.mp3';
@@ -112,8 +113,10 @@ class AudioRevertLogic extends BaseLogic
do {
$progress = json_decode($client->getProgress($taskId)->getBody()->getContents(), true);
dump($progress);die;
if ($progress['ok'] !== 0) {
echo "获取任务进度失败\n";
exit;
}