Install
openclaw skills install smyx-infant-cry-cause-classification-analysisUsing the built-in microphone of a baby monitor or smart camera to capture infant cry audio, AI acoustic analysis extracts cry features such as frequency, pitch, rhythm, and duration, and classifies the possible causes behind the cry (hunger, sleepiness, pain/discomfort, boredom/need for comfort, fear, etc.), outputting the most likely cause and its confidence. The skill helps new parents quickly understand what their baby needs, reducing anxiety and improving parenting efficiency. Application scenarios: nurseries, neonatal monitoring rooms, daycare institutions, smart baby monitors. The system monitors crying in real time and, when a cry is detected, automatically analyzes it and pushes the result to the parents' mobile app (e.g., 'baby may be hungry, try feeding'). Skill features: new parents often feel anxious because they cannot distinguish the cause of crying. AI-assisted analysis provides objective reference, helps parents meet the baby's needs in time, reduces crying duration, and improves the parenting experience. A core selling point of smart maternal-and-child products. | 通过婴儿监护器或智能摄像头的内置麦克风采集婴儿哭声音频,利用AI声学分析技术提取哭声的频率、音调、节奏、持续时间等特征,分类识别婴儿哭声背后的可能原因(饥饿、困倦、疼痛/不适、无聊/需要安抚、恐惧等),输出最可能的原因类别及置信度。该技能有助于新手父母快速理解婴儿需求,减少焦虑,提高育儿效率。应用场景:婴儿房、新生儿监护室、托育机构、智能婴儿监护器。系统实时监测哭声,当检测到哭声时自动分析并在父母手机APP上推送结果(如'宝宝可能是饿了,建议喂奶')。技能特点:新手父母常因无法分辨婴儿哭声原因而焦虑。通过AI辅助分析,可提供客观参考,帮助父母及时满足婴儿需求,减少哭闹时长,提升育儿幸福感。该技能是智能母婴产品的核心卖点之一。
openclaw skills install smyx-infant-cry-cause-classification-analysisUsing the built-in microphone of a baby monitor or smart camera to capture infant cry audio, AI acoustic analysis extracts cry features such as frequency, pitch, rhythm, and duration, and classifies the possible causes behind the cry (hunger, sleepiness, pain/discomfort, boredom/need for comfort, fear, etc.), outputting the most likely cause and its confidence. The skill helps new parents quickly understand what their baby needs, reducing anxiety and improving parenting efficiency. Application scenarios: nurseries, neonatal monitoring rooms, daycare institutions, smart baby monitors. The system monitors crying in real time and, when a cry is detected, automatically analyzes it and pushes the result to the parents' mobile app (e.g., 'baby may be hungry, try feeding'). Skill features: new parents often feel anxious because they cannot distinguish the cause of crying. AI-assisted analysis provides objective reference, helps parents meet the baby's needs in time, reduces crying duration, and improves the parenting experience. A core selling point of smart maternal-and-child products.
通过婴儿监护器或智能摄像头的内置麦克风采集婴儿哭声音频,利用AI声学分析技术提取哭声的频率、音调、节奏、持续时间等特征,分类识别婴儿哭声背后的可能原因(饥饿、困倦、疼痛/不适、无聊/需要安抚、恐惧等),输出最可能的原因类别及置信度。该技能有助于新手父母快速理解婴儿需求,减少焦虑,提高育儿效率。应用场景:婴儿房、新生儿监护室、托育机构、智能婴儿监护器。系统实时监测哭声,当检测到哭声时自动分析并在父母手机APP上推送结果(如'宝宝可能是饿了,建议喂奶')。技能特点:新手父母常因无法分辨婴儿哭声原因而焦虑。通过AI辅助分析,可提供客观参考,帮助父母及时满足婴儿需求,减少哭闹时长,提升育儿幸福感。该技能是智能母婴产品的核心卖点之一。
假设你是一个专业的婴儿哭声分析 AI。你的任务是分析婴儿哭声音频片段,提取声学特征(基频、共振峰、能量包络、持续时间、间隔模式等),并分类输出最可能的原因。不要提供医疗诊断或临床建议,仅输出基于声学的分类结果与方向性安抚提示。
python -m scripts.smyx_infant_cry_cause_classification_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_infant_cry_cause_classification_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 | 饥饿(hunger) | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地婴儿哭声音频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_infant_cry_cause_classification_analysis --input /path/to/baby_cry.wav --open-id your-open-id
# 分析网络婴儿哭声音频/音视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_infant_cry_cause_classification_analysis --url https://example.com/baby_cry.mp4 --open-id your-open-id
# 显示历史婴儿哭声原因分类报告(自动触发关键词:查看婴儿哭声历史报告、哭声原因分类报告清单等)
python -m scripts.smyx_infant_cry_cause_classification_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_infant_cry_cause_classification_analysis --input cry.wav --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_infant_cry_cause_classification_analysis --input cry.wav --open-id your-open-id --output result.json