我无法用“执行”音乐播放任何声音。来自node-red的节点,虽然通过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":[]}]
任何人都可以表明我做错了吗?非常感谢!!