feat: add optional local voice transcription - #84
Open
shierqi wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能说明
为聊天语音新增可选的本地语音转文字能力,同时保留原有语音播放与全部既有导出行为。
faster-whisper进行本地中文转写,默认模型为medium,模型与依赖均不随本 PR 分发。int8,且仅重试一次。t2s在写入缓存前统一转换为简体中文,并通过文本处理版本兼容旧缓存。wce_integrity.pyd已包含语音气泡下方纵向显示转写文字的 CSS。验证
uv lock --check、Python 编译检查、Node 语法检查、git diff --check通过wce_integrity.pyd的export_css("chat")已验证包含.wechat-voice-transcript和纵向布局兼容性说明