feat(#613): retain recording on ASR failure + retranscribe from history#640
feat(#613): retain recording on ASR failure + retranscribe from history#640H-Chris233 wants to merge 1 commit into
Conversation
…rom history - 新增 autoRetainRecordingOnFailure 设置(默认 false) - 14 个 ASR 失败分支写入 history(errorCode: transcribeFailed/transcribeTimeout) - 新增 retranscribe_history_entry IPC(支持 Whisper/MiMo WAV PCM 转写) - 历史页渲染「重新转录」按钮 + 交互状态 - Settings 页面新增「转录失败时保留录音」开关 - 修 emptyTranscript 路径 session id 对齐 WAV 文件 bug - 5 语言(zh-CN/en/zh-TW/ja/ko)i18n 补全 Closes Open-Less#613
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
User description
Closes #613
改动
后端 (Rust)
前端
决策
PR Type
Bug fix, Enhancement
Description
Retain recording on ASR failure via new switch
Write failed transcription to history with errorCode
Support retranscribe from history page
Fix empty transcript session id alignment with WAV file
Diagram Walkthrough
flowchart LR A["Recording ends"] --> B{ASR success?} B -- "Yes" --> C["Normal history entry"] B -- "No" --> D["Auto retain audio?"] D -- "Yes" --> E["History entry with errorCode"] D -- "No" --> F["No history entry"] E --> G["User clicks Retranscribe"] G --> H["IPC: decode WAV & re-transcribe"] H --> I{Success?} I -- "Yes" --> J["Update entry, clear error"] I -- "No" --> K["Show error, entry unchanged"]File Walkthrough
12 files
Add transcribe_pcm method for retranscriptionImplement WAV to PCM decoder for retranscribeAdd transcribe_pcm method for retranscriptionAdd retranscribe_history_entry IPC commandRe-export credential readers for retranscribe commandAppend failure history entries on ASR errorsExtend audio archive condition for failure retentionAdd find_entry and update_entry to HistoryStoreAdd retranscribeHistoryEntry IPC functionAdd autoRetainRecordingOnFailure to UserPreferencesAdd retranscribe button and handler in history pageAdd autoRetainRecordingOnFailure switch in settings2 files
Register retranscribe_history_entry commandAdd auto_retain_recording_on_failure preference field5 files
Add retranscribe and failure retention i18n keysAdd retranscribe and failure retention i18n keysAdd retranscribe and failure retention i18n keysAdd retranscribe and failure retention i18n keysAdd retranscribe and failure retention i18n keys