[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77BXS35MGPMKG7RBNDMTSTJ":3,"skill-same:01M77BXS35MGPMKG7RBNDMTSTJ":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77BXS35MGPMKG7RBNDMTSTJ","discord-voice-memo-upgrade",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fd\u002Fdiscord-voice-memo-upgrade\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Discord Voice Memo Upgrades - Skill Documentation\n\n## Overview\n\nThis skill provides a core patch for Moltbot that fixes voice memo TTS auto-replies. The issue occurs when block streaming prevents the final payload from reaching the TTS synthesis pipeline.\n\n## Type\n\n**Core Patch \u002F Documentation**\n\nThis is not a traditional plugin that extends functionality - it's a documentation package with patch files for core Clawdbot modifications.\n\n## Use Case\n\nUse this if you're experiencing:\n- Voice memos not triggering TTS responses\n- TTS working for text messages but not audio messages\n- TTS auto mode = \"inbound\" not functioning\n\n## Installation Methods\n\n### Method 1: Manual Patch (Recommended for Development)\n\n```bash\n# 1. Locate your clawdbot installation\nCLAWDBOT_PATH=$(which clawdbot)\nCLAWDBOT_DIR=$(dirname $(dirname $CLAWDBOT_PATH))\n\n# 2. Backup original files\ncp $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Fauto-reply\u002Freply\u002Fdispatch-from-config.js \\\n   $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Fauto-reply\u002Freply\u002Fdispatch-from-config.js.backup\n\ncp $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Ftts\u002Ftts.js \\\n   $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Ftts\u002Ftts.js.backup\n\n# 3. Apply patch\ncp patch\u002Fdispatch-from-config.js $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Fauto-reply\u002Freply\u002F\ncp patch\u002Ftts.js $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Ftts\u002F\n\n# 4. Restart clawdbot\nclawdbot restart\n```\n\n### Method 2: Wait for Upstream\n\nIf this patch gets accepted into core Clawdbot, you can simply update:\n```bash\nnpm install -g clawdbot@latest\n```\n\n## Configuration\n\nNo additional configuration needed beyond existing TTS settings. Ensure you have:\n\n```json\n{\n  \"messages\": {\n    \"tts\": {\n      \"auto\": \"inbound\",  \u002F\u002F or \"always\"\n      \"provider\": \"openai\",  \u002F\u002F or \"elevenlabs\" or \"edge\"\n      \"elevenlabs\": {\n        \"apiKey\": \"your-key-here\"\n      }\n    }\n  }\n}\n```\n\n## How to Test\n\n1. Configure TTS with `auto: \"inbound\"`\n2. Send a voice memo to your bot\n3. Check logs for debug output:\n   ```\n   [TTS-DEBUG] inboundAudio=true ttsAutoResolved=inbound ttsWillFire=true\n   [TTS-APPLY] PASSED all checks, proceeding to textToSpeech\n   [TTS-SPEECH] ...\n   ```\n4. Verify bot responds with audio\n\n## Debug Logging\n\nThe patch includes extensive debug logging. To view:\n```bash\n# Logs will show in your clawdbot console\nclawdbot gateway start\n```\n\nLook for:\n- `[TTS-DEBUG]` - Shows TTS detection logic\n- `[TTS-APPLY]` - Shows TTS payload processing decisions\n- `[TTS-SPEECH]` - Shows TTS synthesis attempt\n\n## Production Deployment\n\n**Important**: Before deploying to production, consider:\n\n1. **Remove debug logging** - The `console.log` statements should be removed or made configurable\n2. **Test thoroughly** - Ensure voice memos work correctly\n3. **Monitor performance** - Disabling block streaming may impact streaming behavior\n\nTo remove debug logging, edit the patched files and remove lines containing:\n- `console.log('[TTS-DEBUG]'`\n- `console.log('[TTS-APPLY]'`\n- `console.log('[TTS-SPEECH]'`\n\n## Reverting\n\nIf you need to revert the patch:\n```bash\n# Restore backups\nCLAWDBOT_PATH=$(which clawdbot)\nCLAWDBOT_DIR=$(dirname $(dirname $CLAWDBOT_PATH))\n\ncp $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Fauto-reply\u002Freply\u002Fdispatch-from-config.js.backup \\\n   $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Fauto-reply\u002Freply\u002Fdispatch-from-config.js\n\ncp $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Ftts\u002Ftts.js.backup \\\n   $CLAWDBOT_DIR\u002Flib\u002Fnode_modules\u002Fclawdbot\u002Fdist\u002Ftts\u002Ftts.js\n\nclawdbot restart\n```\n\n## Technical Details\n\n### The Problem\n\nBlock streaming is used to send incremental text chunks to the user as they're generated. However, TTS synthesis hooks into the \"final\" payload type by default. When block streaming is enabled:\n\n1. Text chunks are sent as \"block\" payloads\n2. The final assembled text is sent as a \"final\" payload\n3. But block streaming optimization drops the final payload (text already sent)\n4. TTS never fires because it only processes \"final\" payloads\n\n### The Solution\n\nThe patch adds detection logic to identify when TTS should fire:\n- Inbound message has audio attachment (`isInboundAudioContext()`)\n- TTS auto mode is \"inbound\" or \"always\"\n- Valid TTS provider and API key configured\n\nWhen these conditions are met, block streaming is temporarily disabled for that specific reply, ensuring the final payload reaches the TTS pipeline.\n\n### Code Flow\n\n```\ndispatchReplyFromConfig()\n  ├─ isInboundAudioContext(ctx) → detects audio\n  ├─ resolveSessionTtsAuto(ctx, cfg) → gets TTS settings\n  ├─ ttsWillFire = conditions met?\n  └─ getReplyFromConfig({ disableBlockStreaming: ttsWillFire })\n       └─ maybeApplyTtsToPayload() receives final payload\n            └─ textToSpeech() synthesizes audio\n```\n\n## Compatibility\n\n- **Clawdbot**: 1.0.0+\n- **Node.js**: 18+\n- **Platforms**: All platforms supported by Clawdbot\n\n## Known Issues\n\n- Debug logging is verbose (should be removed for production)\n- Modifies compiled dist files (not source)\n- May need to reapply after clawdbot updates\n\n## Contributing\n\nTo improve this patch:\n1. Test with different TTS providers (OpenAI, ElevenLabs, Edge)\n2. Test with different auto modes (\"always\", \"inbound\", \"tagged\")\n3. Suggest optimizations to reduce debug logging overhead\n4. Propose integration into core Clawdbot source\n\n## Support\n\nIf you encounter issues:\n1. Check logs for `[TTS-DEBUG]` output\n2. Verify TTS configuration is correct\n3. Ensure API keys are valid\n4. Check that block streaming was actually disabled (`disableBlockStreaming: true` in logs)\n\n## License\n\nSame as Moltbot.\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fd\u002Fdiscord-voice-memo-upgrade",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill discord-voice-memo-upgrade",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill discord-voice-memo-upgrade",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill discord-voice-memo-upgrade","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fd\u002Fdiscord-voice-memo-upgrade\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]