Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【bug反馈】单击模式下麦克风听写时分段未生效 #169

Open
heziBox opened this issue Oct 11, 2024 · 0 comments
Open

【bug反馈】单击模式下麦克风听写时分段未生效 #169

heziBox opened this issue Oct 11, 2024 · 0 comments

Comments

@heziBox
Copy link

heziBox commented Oct 11, 2024

测试录音一分钟,生成的结果没有按麦克风听写时分段进行分割,结果如图:
1728650358345

具体配置如下:

addr = '127.0.0.1'          # Server 地址
port = '6016'               # Server 端口

shortcut     = 'caps lock'  # 控制录音的快捷键,默认是 CapsLock
hold_mode    = False         # 长按模式,按下录音,松开停止,像对讲机一样用。
                            # 改为 False,则关闭长按模式,也就是单击模式
                            #       即:单击录音,再次单击停止
                            #       且:长按会执行原本的单击功能
suppress     = False        # 是否阻塞按键事件(让其它程序收不到这个按键消息)
restore_key  = True         # 录音完成,松开按键后,是否自动再按一遍,以恢复 CapsLock 或 Shift 等按键之前的状态
threshold    = 0.3          # 按下快捷键后,触发语音识别的时间阈值
paste        = True         # 是否以写入剪切板然后模拟 Ctrl-V 粘贴的方式输出结果
restore_clip = True         # 模拟粘贴后是否恢复剪贴板

save_audio = True           # 是否保存录音文件
audio_name_len = 20         # 将录音识别结果的前多少个字存储到录音文件名中,建议不要超过200

trash_punc = ',。,.'        # 识别结果要消除的末尾标点

hot_zh = True               # 是否启用中文热词替换,中文热词存储在 hot_zh.txt 文件里
多音字 = True                  # True 表示多音字匹配
声调  = False                 # False 表示忽略声调区别,这样「黄章」就能匹配「慌张」

hot_en   = True             # 是否启用英文热词替换,英文热词存储在 hot_en.txt 文件里
hot_rule = True             # 是否启用自定义规则替换,自定义规则存储在 hot_rule.txt 文件里
hot_kwd  = True             # 是否启用关键词日记功能,自定义关键词存储在 keyword.txt 文件里

mic_seg_duration = 15           # 麦克风听写时分段长度:15秒
mic_seg_overlap = 2             # 麦克风听写时分段重叠:2秒

file_seg_duration = 25           # 转录文件时分段长度
file_seg_overlap = 2             # 转录文件时分段重叠
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant