From 21d166ab198c3bf39f7a3dc54584ee0e715778cb Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 11 Oct 2023 18:31:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0iat=E8=AF=AD=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/XunFeiController.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index 12dffb8bd..0eef38ac2 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -147,6 +147,15 @@ class XunFeiController extends BaseApiController $last_file = substr($savename, -36); $copyFile = app()->getRootPath() . '/public/uploads/iat/' . $last_file; copy($file, $copyFile); + // $last_file = 'a1fcdd96c7967b48add17b52ab456368.mp3'; + $curl_url = "https://dev.app.tword.cn/ffmpeg.php?file={$last_file}"; + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, "//www.jb51.cc"); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); + curl_setopt($ch, CURLOPT_HEADER,0); + curl_exec($ch); + curl_close($ch); + $file = "https://dev.app.tword.cn/iat/" . $last_file . ".pcm"; // $ext = pathinfo($file, PATHINFO_EXTENSION); $ext = "pcm";