This commit is contained in:
2024-07-12 15:28:52 +08:00
parent a63acfdb1d
commit f931475b95

View File

@@ -203,6 +203,8 @@ class Events extends \think\worker\Events
// 将音频数据转换为文件以便传递给iFLYTEK SDK
$tempFile = tempnam(sys_get_temp_dir(), 'audio');
Tools::log_to_write_txt(['tempFile:',$tempFile]);
file_put_contents($tempFile, $audioData);
// 设置请求参数
//$params = [