• - 去掉 send_voice_tts_via_hook 里多余的 staging 步骤:
      生成 SILK 后直接把临时路径传给 send_voice_via_hook,
      由它统一做 cp → wechat_cache + broadcast(避免 cp A→A 报错)
    - _tts_to_silk: ffmpeg/node 路径检测增加 Termux 全路径候选,
      root su shell 下 PATH 不含 Termux bin 时也能找到
    
    验证:device 侧 Python 直调 send_voice_tts_via_hook → filehelper 5620ms 语音 OK
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    yibo authored
     
    Browse File »
  • silk-wasm 搜索顺序调整为 Termux 全局路径优先,
    与 node.js 在 Termux 下 NODE_PATH 行为一致。
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    yibo authored
     
    Browse File »
  • wechat_hook_send.py:
    - 新增 _tts_to_silk(): edge-tts → ffmpeg → silk-wasm 完整 TTS 管线
      支持 on-device (Termux) 和 off-device (Mac adb push) 两种运行模式
    - 新增 send_voice_tts_via_hook(): 文字 → 语音一步到位,
      自动处理 TTS/SILK 编码+WeChat cache 暂存+broadcast 发送
    
    android_mcp.py:
    - 新增 send_wechat_voice_tts MCP 工具(Hermes 直接传文字即可发语音)
      docstring 明确写明:不要自己实现 SILK,调这个工具就行
    
    docs/wechat-voice-send-guide.md (新):
    - Hermes 调用说明:正确姿势 / 声音选项 / 依赖安装 / 常见错误 / 技术背景
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    yibo authored
     
    Browse File »