导出文件支持更多类型;修复语音转文字意外报错的问题
This commit is contained in:
1 parent
cabedf034f
commit
84c943e75b
12 files changed
+101
-24
No files matched your search
@@ -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}`)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user