Install
openclaw skills install smyx-pregnancy-emotion-soothing-analysisThrough fixed cameras (and optional microphones) at the pregnant woman's home or prenatal exam waiting room, the system analyzes facial expressions (sudden crying, frowning, anxiety), prolonged silent sitting (≥ 30 consecutive minutes without social interaction or activity), and tone of conversations with family members (rapid, impatient). When significant emotional fluctuations are detected, soothing actions are automatically triggered: playing pregnancy soothing music or mindfulness guided audio via a smart speaker, or pushing reminders to the husband's mobile APP ('Your wife is experiencing emotional fluctuations, please call to check on her'). This skill aims to provide immediate emotional support to pregnant women and reduce risks of pregnancy anxiety and depression. Application scenarios: pregnant women's homes, prenatal exam waiting rooms, prenatal classes. The system monitors in real time and actively intervenes upon emotional anomalies. Skill features: existing pregnancy health apps (e.g., BabyTree, Meiyou) provide emotion logging and articles but lack active emotion recognition and real-time intervention. Some smart speakers can play music but lack emotion linkage. This skill leverages AI vision and audio analysis to actively identify emotional fluctuations and provide personalized soothing, filling the intelligent pregnancy emotional support gap. | 通过孕妇家中或产检候诊室的固定摄像头(及可选麦克风),分析孕妇的面部表情(突然哭泣、皱眉、焦虑)、长时间静坐不语(连续超过30分钟无社交互动或活动)、以及与家人对话的语气(急促、不耐烦)。当检测到显著情绪波动时,自动触发安抚动作:通过智能音箱播放孕期舒缓音乐或正念引导音频,或向丈夫手机APP推送提醒('妻子情绪波动,请打电话关心')。该技能旨在为孕妇提供即时的情绪支持,减少孕期焦虑和抑郁风险。应用场景:孕妇家中、产检候诊室、孕妇学校。系统实时监测,当情绪异常时主动干预。技能特点:目前市面上有孕期健康APP(如宝宝树、美柚)提供情绪记录和文章,但缺乏主动情绪识别和实时干预。部分智能音箱可播放音乐,但无情绪联动。本技能利用AI视觉和音频分析,主动识别孕妇情绪波动并提供个性化安抚,填补了孕期情感支持智能化空白。
openclaw skills install smyx-pregnancy-emotion-soothing-analysisThrough fixed cameras (and optional microphones) at the pregnant woman's home or prenatal exam waiting room, the system analyzes facial expressions (sudden crying, frowning, anxiety), prolonged silent sitting (≥ 30 consecutive minutes without social interaction or activity), and tone of conversations with family members (rapid, impatient). When significant emotional fluctuations are detected, soothing actions are automatically triggered: playing pregnancy soothing music or mindfulness guided audio via a smart speaker, or pushing reminders to the husband's mobile APP ('Your wife is experiencing emotional fluctuations, please call to check on her'). This skill aims to provide immediate emotional support to pregnant women and reduce risks of pregnancy anxiety and depression. Application scenarios: pregnant women's homes, prenatal exam waiting rooms, prenatal classes. The system monitors in real time and actively intervenes upon emotional anomalies. Skill features: existing pregnancy health apps (e.g., BabyTree, Meiyou) provide emotion logging and articles but lack active emotion recognition and real-time intervention. Some smart speakers can play music but lack emotion linkage. This skill leverages AI vision and audio analysis to actively identify emotional fluctuations and provide personalized soothing, filling the intelligent pregnancy emotional support gap.
通过孕妇家中或产检候诊室的固定摄像头(及可选麦克风),分析孕妇的面部表情(突然哭泣、皱眉、焦虑)、长时间静坐不语(连续超过30分钟无社交互动或活动)、以及与家人对话的语气(急促、不耐烦)。当检测到显著情绪波动时,自动触发安抚动作:通过智能音箱播放孕期舒缓音乐或正念引导音频,或向丈夫手机APP推送提醒('妻子情绪波动,请打电话关心')。该技能旨在为孕妇提供即时的情绪支持,减少孕期焦虑和抑郁风险。应用场景:孕妇家中、产检候诊室、孕妇学校。系统实时监测,当情绪异常时主动干预。技能特点:目前市面上有孕期健康APP(如宝宝树、美柚)提供情绪记录和文章,但缺乏主动情绪识别和实时干预。部分智能音箱可播放音乐,但无情绪联动。本技能利用AI视觉和音频分析,主动识别孕妇情绪波动并提供个性化安抚,填补了孕期情感支持智能化空白。
假设你是一个专业的孕期心理健康关怀 AI。你的任务是分析孕妇活动区域固定摄像头(及可选麦克风)的音视频,检测情绪波动相关行为:突然哭泣(面部流泪 + 嘴角下拉 + 眼部红肿)、烦躁焦虑(皱眉 + 来回踱步 + 手部紧张动作)、长时间静坐不语(连续静坐 ≥ 30 min 且无手机/阅读等互动、与他人无对话)、与家人对话语气急促或不耐烦。综合评估情绪状态,按 4 级舒缓策略递进:Level 1 智能音箱低音量舒缓音乐 → Level 2 正念引导音频 + 柔和环境光 → Level 3 向丈夫 APP 推送提醒"妻子情绪波动,请打电话关心" → Level 4 紧急联系人 + 建议联系产检医生/心理热线。3 分钟后效果评估,未平复自动升级。不提供任何医疗诊断,仅输出基于视觉和音频的客观行为识别与舒缓动作;舒缓音量 ≤ 40 dB,禁冷白光,严禁 AI 克隆家人声音。
python -m scripts.smyx_pregnancy_emotion_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_pregnancy_emotion_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 | pregnancy_emotion_crying / strong / 舒缓音乐+正念引导+丈夫 APP 推送 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地孕妇活动区域音视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_pregnancy_emotion_soothing_analysis --input /path/to/livingroom.mp4 --open-id your-open-id
# 分析网络孕妇活动区域音视频/实时流(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_pregnancy_emotion_soothing_analysis --url https://example.com/livingroom.mp4 --open-id your-open-id
# 显示历史孕妇情绪舒缓记录清单(自动触发关键词:查看孕妇情绪舒缓历史报告、孕期情绪日志清单等)
python -m scripts.smyx_pregnancy_emotion_soothing_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_pregnancy_emotion_soothing_analysis --input lr.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_pregnancy_emotion_soothing_analysis --input lr.mp4 --open-id your-open-id --output result.json