导出文件支持更多类型;修复语音转文字意外报错的问题

This commit is contained in:
cc committed 2026-07-02 15:31:21 +08:00
1 parent cabedf034f
commit 84c943e75b
12 files changed
+101 -24

No files matched your search

+6 -3
View File
@@ -9215,9 +9215,12 @@ class ChatService {
const t6 = Date.now()
if (result.success && result.transcript) {
this.cacheVoiceTranscript(cacheKey, result.transcript)
if (result.success) {
const transcript = String(result.transcript || '').trim()
if (transcript) {
this.cacheVoiceTranscript(cacheKey, transcript)
}
return { success: true, transcript }
} else {
console.error(`[Transcribe] 转写失败: ${result.error}`)
}