From bfc4bbbe556524634a045b76365d7869f8ced890 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Tue, 10 Oct 2023 14:46:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index a222006c1..d94ff9e67 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -239,6 +239,7 @@ class XunFeiController extends BaseApiController //语音合成(流式版) public function tts() { + halt(request()->domain() . request()->host()); header('X-Accel-Buffering: no'); $ttsHostUrl = "wss://tts-api.xfyun.cn/v2/tts"; $text = request()->param('text'); @@ -267,7 +268,7 @@ class XunFeiController extends BaseApiController } catch (\Exception $e) { return $this->fail($e->getMessage().''); } - return $this->data(['audio_file' => 'https://ceshi-worker-task.lihaink.cn/uploads/audio/' . date('Ymd') . '/' . $file_name]); + return $this->data(['audio_file' => request()->domain() . '/uploads/audio/' . date('Ymd') . '/' . $file_name]); } }