From 7f258560a414364366ea1f8a5b23e83dc4af8ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=82=E5=90=89=E8=AF=83=E5=BE=B7=E6=8B=89=E6=9B=BC?= =?UTF-8?q?=E6=9F=A5=E7=9A=84=E8=8B=B1=E8=B1=AA?= Date: Mon, 31 Aug 2026 14:15:03 +0800 Subject: [PATCH] =?UTF-8?q?AI=E9=9D=A2=E8=AF=95=E6=9C=97=E8=AF=BB=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=96=B0=E5=A2=9E=E9=A2=98=E7=9B=AE=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AIService/AiInterviewTtsInterface.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/AIService/AiInterviewTtsInterface.php b/src/AIService/AiInterviewTtsInterface.php index ae0e9ba..b69e16d 100644 --- a/src/AIService/AiInterviewTtsInterface.php +++ b/src/AIService/AiInterviewTtsInterface.php @@ -30,10 +30,18 @@ interface AiInterviewTtsInterface */ public function submitInterviewTts(array $params): array; + /** + * 同步面试题音频(后台创建/编辑题目后调用):按题干内容哈希判断是否已生成, + * 内容未变跳过,内容变化或首次生成则投递队列后台合成 + * @param array $params 参数,['question_id'=>面试题ID, 'content'=>题干内容] + * 返回 ['question_id'=>int, 'status'=>success|queued] + */ + public function syncInterviewQuestionTts(array $params): array; + /** * 查询朗读任务状态(供前端轮询使用) * @param int $questionId 面试题ID * 返回 ['question_id'=>int, 'status'=>queued|processing|success|failed|unknown, 'url'=>?string] */ public function getInterviewTtsStatus(int $questionId): array; -} \ No newline at end of file +}