Install
openclaw skills install memory-assistantHelps users remember where they put things and schedule voice reminders. Use when the user says "记一下"/"记一下"/"提醒我", records item locations (e.g. keys, passport), or asks for time-based reminders with voice notification. Integrates SenseAudio TTS for spoken alerts.
openclaw skills install memory-assistant针对“健忘症”的帮记助手:支持随手放的东西快速录入与查询、日程/约会定时提醒,并通过 SenseAudio 合成语音进行语音提醒。
SENSEAUDIO_API_KEY(https://senseaudio.cn/platform/api-key)。pip install requests。播放时 macOS 使用 afplay,Windows 使用系统默认播放器,Linux 使用 paplay/aplay/ffplay。用户用自然语言快速录入物品与位置,例如:
处理流程:
用户说明时间与事项,并要求提前提醒,例如:
处理流程:
{ "item": "备用电池", "location": "电视柜左侧第二个抽屉", "created_at": "ISO8601" }{ "at": "ISO8601", "event": "下午三点开会", "advance_minutes": 30, "created_at": "ISO8601" }完整字段与存储路径见 reference.md。
所有需要“读出来”的提醒(如:到点提醒、查询到的位置)均通过 SenseAudio 文本转语音 API 合成。
POST https://api.senseaudio.cn/v1/t2a_v2Authorization: Bearer YOUR_API_KEYmodel: "SenseAudio-TTS-1.0",text(要朗读的文案),voice_setting.voice_id(如 male_0004_a)stream: false 一次取回整段音频;响应中 data.audio 为 hex 编码,需解码为二进制后保存为 mp3/wav 或送入播放器。详细请求/响应格式、音色列表与示例代码见 reference.md。API 文档:https://senseaudio.cn/docs,TTS 说明:https://senseaudio.cn/docs/text_to_speech_api。
技能提供两个脚本,用于语音播报物品位置和定时播报待办提醒。{baseDir} 表示本技能所在目录(由运行环境或工作区解析,不暴露具体绝对路径)。
{baseDir}/scripts/speak.pypython {baseDir}/scripts/speak.py --text "下午三点有会议,请提前准备" --playitems.json 查询并合成「X 在 Y」后播放:python {baseDir}/scripts/speak.py --item 备用电池 --play--play,可用 --out 路径.mp3 指定输出文件。--voice 指定音色 ID(默认 male_0004_a)。{baseDir}/scripts/run_reminders.pyreminders.json 中找出 notify_at <= 当前时间 且 status=pending 的条目,合成「提醒:XXX」并播放,然后标记为 notified。python {baseDir}/scripts/run_reminders.pypython {baseDir}/scripts/run_reminders.py --daemon(默认每 60 秒检查一次,可用 --interval N 修改)。python {baseDir}/scripts/run_reminders.py --dry-run。建议用系统定时任务定期执行(如每分钟一次),以实现到点语音提醒:
cd {baseDir} && python scripts/run_reminders.pypython {baseDir}\scripts\run_reminders.pycd {baseDir} && python scripts/run_reminders.py.cursor/skills 或绝对路径。SENSEAUDIO_API_KEY。密钥申请:https://senseaudio.cn/platform/api-key。