diff --git a/src/AIService/AIService.php b/src/AIService/AIService.php index 61ed094..e963439 100644 --- a/src/AIService/AIService.php +++ b/src/AIService/AIService.php @@ -10,4 +10,5 @@ namespace Dhd\Micro\Interface\AIService; interface AIService extends AiEssayCheckInterface, - AiInterviewCheckInterface {} + AiInterviewCheckInterface, + AiInterviewTtsInterface {} diff --git a/src/AIService/AiInterviewTtsInterface.php b/src/AIService/AiInterviewTtsInterface.php new file mode 100644 index 0000000..35d1810 --- /dev/null +++ b/src/AIService/AiInterviewTtsInterface.php @@ -0,0 +1,25 @@ +面试题ID] + */ + public function interviewTtsAudio(array $params): array; + + /** + * 查询面试题是否已生成音频,仅查缓存不触发合成(供取题接口附带音频使用) + * @param int $questionId 面试题ID + */ + public function getInterviewQuestionAudioUrl(int $questionId): ?string; +} \ No newline at end of file diff --git a/src/FileService/JsonRpcInterface/FileServiceInterface.php b/src/FileService/JsonRpcInterface/FileServiceInterface.php index a83c4ed..7e3bdcf 100644 --- a/src/FileService/JsonRpcInterface/FileServiceInterface.php +++ b/src/FileService/JsonRpcInterface/FileServiceInterface.php @@ -27,4 +27,10 @@ interface FileServiceInterface * 获取文件列表 */ public function getFileList(array $params): array; + + /** + * 保存二进制(base64)文件,用于服务端生成的文件 + * @param array $params 参数,如 ['base64'=>.., 'file_name'=>.., 'file_type'=>.., 'group_id'=>.., 'channel'=>.., 'uploader_id'=>..] + */ + public function saveBase64File(array $params): array; }