Install
openclaw skills install smyx-child-bedtime-soothing-analysisThrough a fixed camera (with infrared night vision) and microphone in the child's bedroom, the system analyzes pre-sleep and night-time video and audio to detect pre-sleep crying (continuous crying, calling 'Mama'), fear-of-the-dark expressions (curling up, looking around), and nightmare awakenings (sudden sitting up, trembling, screaming). When such unrest is detected, the system automatically triggers soothing actions: turning on a soft night light, playing a pre-recorded story from the mother, or playing a gentle lullaby. This helps reduce parents' night-time caregiving burden, supports the child's independent sleep, and builds a sense of security. Application scenarios: children's bedrooms, nurseries. The system runs automatically at night and proactively soothes the child when unrest is detected. Skill features: fear of the dark and nightmare-induced awakenings are common childhood sleep issues, and frequent crying disturbs parents' rest. AI-based automatic soothing can quickly calm the child and foster independent sleep ability. Can be integrated into smart baby cameras and smart speakers as a practical parenting feature. | 通过儿童卧室的固定摄像头(红外夜视)及麦克风,分析儿童睡前及夜间视频,检测睡前哭闹(持续性哭声、呼喊'妈妈')、怕黑表现(身体蜷缩、四处张望)、噩梦惊醒(突然坐起、颤抖、尖叫)等行为。当检测到上述情绪不安时,自动触发安抚动作:开启小夜灯(柔光)、播放预先录制的妈妈讲故事音频或轻柔摇篮曲。该技能有助于减少父母夜间安抚负担,帮助儿童独立入睡,建立安全感。应用场景:儿童卧室、婴儿房。系统夜间自动运行,当检测到儿童不安时主动安抚。技能特点:儿童怕黑、噩梦惊醒是常见睡眠问题,频繁哭闹会干扰父母休息。通过AI自动安抚,可帮助儿童快速平静,培养独立入睡能力。该技能可集成到智能婴儿摄像头、智能音箱中,成为育儿家庭的实用功能。
openclaw skills install smyx-child-bedtime-soothing-analysisThrough a fixed camera (with infrared night vision) and microphone in the child's bedroom, the system analyzes pre-sleep and night-time video and audio to detect pre-sleep crying (continuous crying, calling 'Mama'), fear-of-the-dark expressions (curling up, looking around), and nightmare awakenings (sudden sitting up, trembling, screaming). When such unrest is detected, the system automatically triggers soothing actions: turning on a soft night light, playing a pre-recorded story from the mother, or playing a gentle lullaby. This helps reduce parents' night-time caregiving burden, supports the child's independent sleep, and builds a sense of security. Application scenarios: children's bedrooms, nurseries. The system runs automatically at night and proactively soothes the child when unrest is detected. Skill features: fear of the dark and nightmare-induced awakenings are common childhood sleep issues, and frequent crying disturbs parents' rest. AI-based automatic soothing can quickly calm the child and foster independent sleep ability. Can be integrated into smart baby cameras and smart speakers as a practical parenting feature.
通过儿童卧室的固定摄像头(红外夜视)及麦克风,分析儿童睡前及夜间视频,检测睡前哭闹(持续性哭声、呼喊'妈妈')、怕黑表现(身体蜷缩、四处张望)、噩梦惊醒(突然坐起、颤抖、尖叫)等行为。当检测到上述情绪不安时,自动触发安抚动作:开启小夜灯(柔光)、播放预先录制的妈妈讲故事音频或轻柔摇篮曲。该技能有助于减少父母夜间安抚负担,帮助儿童独立入睡,建立安全感。应用场景:儿童卧室、婴儿房。系统夜间自动运行,当检测到儿童不安时主动安抚。技能特点:儿童怕黑、噩梦惊醒是常见睡眠问题,频繁哭闹会干扰父母休息。通过AI自动安抚,可帮助儿童快速平静,培养独立入睡能力。该技能可集成到智能婴儿摄像头、智能音箱中,成为育儿家庭的实用功能。
假设你是一个专业的儿童睡眠安抚 AI。你的任务是分析儿童卧室固定摄像头(红外夜视 + 麦克风)的夜间音视频,检测:睡前哭闹(持续哭声 ≥ 30s 或呼喊"妈妈/爸爸" ≥ 2 次)、怕黑表现(蜷缩 + 四处张望 + 蒙头/抱玩具,在关灯后 ≤ 30 min)、噩梦惊醒(突然坐起 + 尖叫/急促哭声 + 颤抖)、下床事件(独立安全优先级)。当检测到不安状态时,按 4 级安抚策略递进:Level 1 极柔小夜灯+极轻摇篮曲 → Level 2 加妈妈预录故事/白噪音 → Level 3 加家长 APP 提醒 → Level 4 立即唤醒家长。婴儿(≤12 月)必须开专用模式,阈值更敏感、strong 及以上必须同步唤醒家长。不提供任何医疗建议,仅输出基于视觉和音频的行为检测与安抚指令;冷白光禁用、音量 ≤ 40 dB、亮度 ≤ 20 lux 暖光、严禁 AI 克隆家长声音。
python -m scripts.smyx_child_bedtime_soothing_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
在执行儿童睡前情绪安抚(怕黑/噩梦后)前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.smyx_child_bedtime_soothing_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地儿童卧室/婴儿房固定摄像头(红外夜视+麦克风)夜间音视频文件路径--url: 网络儿童卧室/婴儿房固定摄像头夜间音视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,儿童睡眠安抚场景默认 other--open-id: 当前用户的 open-id(必填,家长授权)--list: 显示儿童睡前情绪安抚(怕黑/噩梦后)历史安抚记录清单--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)儿童夜间安抚-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 场景/等级/已执行安抚动作 | 分析时间 | 点击查看 |
|---|---|---|---|
| 儿童夜间安抚-20260312172200001 | nightmare_wakeup / strong / 小夜灯+妈妈语音+APP 推送 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地儿童夜间音视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_child_bedtime_soothing_analysis --input /path/to/bedroom.mp4 --open-id your-open-id
# 分析网络儿童夜间音视频/实时流(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_child_bedtime_soothing_analysis --url https://example.com/bedroom.mp4 --open-id your-open-id
# 显示历史夜间安抚记录清单(自动触发关键词:查看儿童睡前安抚历史报告、夜间安抚日志清单等)
python -m scripts.smyx_child_bedtime_soothing_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_child_bedtime_soothing_analysis --input br.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_child_bedtime_soothing_analysis --input br.mp4 --open-id your-open-id --output result.json