node-red - 我无法使用 node-red 中的“exec”节点播放任何声音
问题描述
我无法使用 node-red 的“exec”节点播放任何声音,尽管通过 raspberry pi 命令行它可以使用相同的命令:
aplay -D default /home/pi/.node-red/public/Cuckoo-sound-effect.wav
甚至节点红色的输出也是一样的:
播放 WAVE '/home/pi/.node-red/public/Cuckoo-sound-effect.wav' :有符号 16 位 Little Endian,速率 44100 Hz,立体声
这是实现的流程:
[{"id":"ef757da2.68916","type":"exec","z":"83beb11f.6c8ed","command":"aplay","addpay":true,"append":"-D default","useSpawn":"","timer":"","oldrc":false,"name":"aplay","x":290,"y":2520,"wires":[["bfe7b588.f58108"],["2632e1b.090841e"],[]]},{"id":"bfe7b588.f58108","type":"debug","z":"83beb11f.6c8ed","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":510,"y":2480,"wires":[]},{"id":"d3481977.0432e8","type":"inject","z":"83beb11f.6c8ed","name":"","topic":"","payload":"/home/pi/.node-red/public/Cuckoo-sound-effect.wav","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":110,"y":2520,"wires":[["ef757da2.68916"]]},{"id":"2632e1b.090841e","type":"debug","z":"83beb11f.6c8ed","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":510,"y":2520,"wires":[]}]
谁能指出我做错了什么?非常感谢 !!
解决方案
推荐阅读
- typescript - Typescript 类属性初始化顺序
- search - 无法使用带有通配符的 solr 查询搜索电子邮件 ID 字段
- python-3.x - 如何使用 python 中的日志记录模块制作两个日志文件?
- xml - 无法使用 XSL 在 XML 中打印特殊(非英语)字符(拉丁语、德语等)
- firebase - 如何从 Firebase 存储控制台下载多个文件?
- php - 转置 mysql 表中的数据
- linux - 如何使用 bash 命令将文件中的多列合并为单列?
- python - 不同行和列数据框python中的总和值
- php - 身份验证::id(); 返回 'null' 或 auth::check(); 返回“假”
- scala - Spark:并行的多个独立动作