KeinsteinNUS/dsh-speech-polish ↗★ 0

dsh-speech-polish

Terminology-aware correction layer for DeepSeek Harness's built-in local speech-to-text: fixes homophone and near-homophone mistakes before the transcript reaches the composer.

Package
dsh-speech-polish
Compatibility
Unverified
Harness peer range
>=0.2.0-0 <0.3.0-0
Version
0.1.0
License
MIT
Last updated
Oct 27, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/KeinsteinNUS/dsh-speech-polish/releases/download/v0.1.0/dsh-speech-polish-0.1.0.tgz

配置

写在 bundle patch 的 speech-polish 行的 config 里:

键默认说明
baseProviderIdsensevoice-local底层识别器 id
providerIdsensevoice-polish本插件注册的 id
labelSenseVoice + glossary fix设置里显示的名字
modeldeepseek-chat纠错模型
baseURLhttps://api.deepseek.comOpenAI 兼容端点(可换任何厂商/自建网关)
apiKey空显式密钥,优先于环境变量与凭据库
timeoutMs8000单次纠错超时
minChars4短于此长度的文本不纠错(“嗯”“好的”)
maxGrowthRatio0.6输出相对原文允许的最大膨胀,超出即丢弃该次纠错
glossary内置通用技术词表你的领域术语,数组;替换内置表
instruction空追加给模型的额外要求(口吻、单位习惯等)
enabledtrue关掉后只做透传
traceFile关闭打开后把每步写入 JSONL,便于排查

领域术语表

内置表只有通用技术词。材料的、医疗的、法务的术语请自己加:

- id: speech-polish
  config:
    glossary: [液晶盒, 取向层, 旋涂, 退火, 相位延迟, 氧化铟锡, 偏振响应, 双折射]

术语表只用于“同音错写时该改成什么”,不会让模型无中生有——输出长度偏离原文 40%~160% 之外会被判定不可信并丢弃。