O-Hahn / node-red-contrib-speakerpi

Speaker Node for Raspi
2 stars 4 forks source link

speakerpi throws an error and I can't find any solution online #9

Closed kyteinsky closed 4 years ago

kyteinsky commented 4 years ago

I am using Raspberry Pi 4B 1GB RAM

I tried to play wav file, mp3 file and also raw audio buffer using Node RED but of no use, there is no sound.

I have tested the speakers and audio file using OMXplayer, that works, but speakerpi doesn't.

Here is the error -----------------------------------

Error: Package subpath './v4' is not defined by "exports" in /home/pi/.node-red/node_modules/uuid/package.json

This is my simple flow ----------------------------------

[{"id":"c0bf711f.1c725","type":"speakerpi-output","z":"1b409f87.00788","choose":"givenfile","filename":"/home/pi/music.wav","channels":"1","bitdepth":"16","samplerate":"22050","name":"","x":1610,"y":300,"wires":[[]]},{"id":"fcf87097.2f62","type":"inject","z":"1b409f87.00788","name":"","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1330,"y":300,"wires":[["c0bf711f.1c725"]]}]

Please help me out

O-Hahn commented 4 years ago

i try to fix the problem today - it is because of the new uuid package ..

kyteinsky commented 4 years ago

@O-Hahn Thanks sir Very good work. Keep it up.

I made it work with old Node js (10) installation with the new node red, edited the install script of node red not to uninstall the previous version. It works like charm. Thanks for the node.

O-Hahn commented 4 years ago

i have found how to solve with the new version ... - i am setting up my raspi to the most current verision - so that i can test the uuid problem. think that today i will have the fix.

O-Hahn commented 4 years ago

should be solved