从密语给批量语音转文字搬过来了

This commit is contained in:
xuncha
2026-02-06 17:57:39 +08:00
committed by xuncha
parent 4d1632a9b9
commit 54378a132f
6 changed files with 803 additions and 1 deletions

View File

@@ -896,6 +896,9 @@ function registerIpcHandlers() {
ipcMain.handle('chat:getVoiceData', async (_, sessionId: string, msgId: string, createTime?: number, serverId?: string | number) => {
return chatService.getVoiceData(sessionId, msgId, createTime, serverId)
})
ipcMain.handle('chat:getAllVoiceMessages', async (_, sessionId: string) => {
return chatService.getAllVoiceMessages(sessionId)
})
ipcMain.handle('chat:resolveVoiceCache', async (_, sessionId: string, msgId: string) => {
return chatService.resolveVoiceCache(sessionId, msgId)
})