Have a RaspberryPI linking my LightwaveRF to SmartThings so decided to connect it to my amplifier so that I could get voice notifications over my speakers when events happen in my house. The node server uses the amazon Ivona service, which is really good (probably the best TTS service at the moment) and free on beta!
Re-Coded the Sonos weather SmartApp to send to the node server, allowing you to set and play whatever custom messages you want based on system events.
Here is the GIT repo,
Here is a quick demo video (it’s 1 in the morning!)
Trying to get this setup now, but I’m immediately running into issues.
When I try to install forever via npm, I get the following error:
System Linux 3.18.11+
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “forever”
npm ERR! cwd /home/pi
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: forever
Any ideas why this would be? I’m reading around that the pi might have issues connecting to the npm registry via https? However, even if I try changing the npm registry to http (not recommended), it still tried to access the registry via https.
This was great, all seems to install, but no sound is coming out. Also watching the logs on smartthings nothing seems to be sending any requests to the PI. How do test it?
replace 192.168.0.11 with the ip address or your RPI, the first xxx after access key with the access key and the second xxx after secretkey with the secretkey.
Ended up going tts and running node server.js
but it complained about missing module for ivona
I installed that from npm
Then it complained about missing lame
Installed that from npm
Now the node server is running, your like did return request received
The console is returning Speak request received
But no sound from audio jack, i have tried changing this via rasp-config to audio jack but it seems to always go back.
I have just finished developing a voice notification system using Ivona_node. It runs on an RPi 3 With Raspbian Jessie.
Occasionally I get a slight bit of truncation of the last part of the speech. I use the NodeJS file system to make a file for the speech from Ivona using a createStream command and then use a writeStream command in the call to the Ivona cloud. I use the on finish call back from the file system writeStream before I play the speech which is an MP3 file.
Has anybody got the same issue or something similar?