# 安装期 bundle patch: dsh plugin --profile <name> add @nn12138/dsh-voice
# 后由插件声明(dsh.bundle.patch)自动加入 layer 栈。
# 纯语音输入插件:与 agent preset/人设完全解耦。
- insert:
    - id: voice
      name: '@nn12138/dsh-voice'
      inject: [connection]
      config:
        # 行内 config 只传给 host 半;client 半由 host 经 /voice.config
        # loopback RPC 同步 engine/hotkey。
        # 缺省 engine:host/client 两半都默认 auto(ping 探测;有模型就 native,
        # 没有模型就 Web Speech 兜底 —— 保证零配置开箱可用)
        # host 半: native 识别的模型目录(未配置 = 仅浏览器识别,开箱即用;
        #  需要原生识别时在 profile 的 cordis.patch.yml 里覆盖 modelDir)
        modelDir: ''
        hotkey: 'ctrl+space'
