voice-message by xmanrui/voice-message
npx skills add https://github.com/xmanrui/voice-message --skill voice-message将文本作为语音消息发送到任何聊天频道。
edge-tts — Microsoft Edge TTS (pip install edge-tts)ffmpeg / ffprobe — 音频转换和时长检测zh-CN-XiaoxiaoNeuralen-US-JennyNeural使用 scripts/gen_voice.sh 将文本转换为 ogg/opus 文件:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
scripts/gen_voice.sh "你好" /tmp/voice.ogg
scripts/gen_voice.sh "Hello" /tmp/voice.ogg en-US-JennyNeural
参数: <text> <output.ogg> [voice]
zh-CN-XiaoxiaoNeural。直接使用消息工具:
action=send, asVoice=true, filePath=/tmp/voice.ogg
这对大多数频道都有效。Telegram 已确认可用。
⚠️ 飞书不支持通过消息工具使用 asVoice=true。你必须使用专用脚本。
使用 scripts/send_feishu_voice.sh:
scripts/send_feishu_voice.sh /tmp/voice.ogg <receive_id> <tenant_access_token> [receive_id_type]
receive_id_type: open_id (默认), chat_id, user_id, union_id, emailtenant_access_token,请使用你的应用凭证调用飞书租户令牌 API。Discord 语音消息需要波形图和特殊标志。
scripts/gen_voice.sh 生成 ogg 文件python3 scripts/gen_waveform.py /tmp/voice.ogg
{"duration_secs": 4.2, "waveform": "base64..."}flags: 8192 (IS_VOICE_MESSAGE) 并在附件元数据中包含波形图/时长。
如果 asVoice=true 在某个频道上无法生成语音气泡:
每周安装量
82
代码仓库
GitHub 星标数
3
首次出现
2026年2月26日
安全审计
安装于
kimi-cli82
gemini-cli82
amp82
cline82
github-copilot82
codex82
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
46,600 周安装