更新流式语音
This commit is contained in:
parent
7967a6f010
commit
2c7e4a51c7
@ -217,18 +217,16 @@ class XunFeiController extends BaseApiController
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
var_dump($resp, $result);
|
||||
|
||||
echo json_encode($result);
|
||||
if ($status === 2) {
|
||||
echo sprintf('%d %s %f', $code, $message, microtime(true) - $st);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $this->success('success');
|
||||
} else {
|
||||
return $this->fail('无法连接到 WebSocket 服务器');
|
||||
}
|
||||
|
||||
fclose($audioFile);
|
||||
usleep(3); //等待数据
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user