[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FV4S9FECEJ2JD0ZAC69ACF":3,"skill-same:01M6FV4S9FECEJ2JD0ZAC69ACF":92},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M6FV4S9FECEJ2JD0ZAC69ACF","discord-voice-memo-upgrade",null,"kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002FSKILL.md",[],[17,18,19,20,21,22],"discord","voice","discord voice","upgrade","memo","discord voice memo upgrade","2026-11-10 10:12:30",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",{},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add kbarbel640-del\u002Fskills --skill discord-voice-memo-upgrade",{"tool":40,"command":41},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill discord-voice-memo-upgrade",{"tool":43,"command":44},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill discord-voice-memo-upgrade","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002FSKILL.md",true,[48,54,58,62,68,72,76,80,84,88],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"_meta.json","REFERENCE","参考文档",304,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002F_meta.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"CHANGELOG.md",1149,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002FCHANGELOG.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"clawdbot.plugin.json",688,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002Fclawdbot.plugin.json",{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"index.js","SCRIPT","脚本",982,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002Findex.js",{"path":69,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":70,"sourceHtmlUrl":71},"package.json",509,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002Fpackage.json",{"path":73,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":74,"sourceHtmlUrl":75},"PATCH.md",5993,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002FPATCH.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"patch\u002Fdispatch-from-config.js",13379,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002Fpatch\u002Fdispatch-from-config.js",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"patch\u002Ftts.js",47869,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002Fpatch\u002Ftts.js",{"path":85,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":86,"sourceHtmlUrl":87},"README.md",4029,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002FREADME.md",{"path":89,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":90,"sourceHtmlUrl":91},"UPLOAD.md",4279,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fkoto9x\u002Fdiscord-voice-memo-upgrade\u002FUPLOAD.md",[93,124,153,174,180,200],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":104,"publishedAt":23},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[99],{"categoryNo":100,"categoryName":101,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":135,"publishedAt":23},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[130],{"categoryNo":131,"categoryName":132,"taxonomyType":133,"taxonomyTypeDesc":134},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[136,107,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,112,152],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":162,"publishedAt":23},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[159],{"categoryNo":160,"categoryName":161,"taxonomyType":133,"taxonomyTypeDesc":134},"01JBSEEDCAT000000000000021","资料检索与研究",[163,164,165,166,167,168,169,108,170,150,152,171,107,172,173],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":175,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":179,"publishedAt":23},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[178],{"categoryNo":160,"categoryName":161,"taxonomyType":133,"taxonomyTypeDesc":134},[166,165,164,163,173,168,169,108,167,150,152,170,171,107,172],{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":23},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[187,188,189,190,191,192,193,194,195,196,197,198,199],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":204,"categories":205,"keywords":210,"publishedAt":23},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[206,207],{"categoryNo":131,"categoryName":132,"taxonomyType":133,"taxonomyTypeDesc":134},{"categoryNo":208,"categoryName":209,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000037","律师与法务",[211,212,213,214,108,215,216,27,217,171,218,219,220,221,222,121,223,224,225],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]