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 +}