Video instructions - https://www.youtube.com/watch?v=o5H1mfNK6eM
-
Sign up for developer account at https://www.ivona.com/ and get access key and secret key
-
Login to linux machine
-
Install node, git and NPM
sudo apt-get install nodejs nodejs-legacy npm git
- Install libasound2-dev
sudo apt-get install libasound2-dev
- Install forever (globally)
sudo npm install -g forever
- Install forver service (globally)
sudo npm install -g forever-service
- Type ifcongig and get IP address of machine, ouput should appear as below. IP address is 192.168.0.11 for me.
eth0 Link encap:Ethernet HWaddr b8:27:eb:a9:70:ec
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fd00::1:d5df:e26b:a5b4:d5a5/64 Scope:Global
inet6 addr: fe80::55f7:5c2:e930:ad31/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:103487 errors:0 dropped:145 overruns:0 frame:0
TX packets:28238 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15050279 (14.3 MiB) TX bytes:2921658 (2.7 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- Make a folder to put the git repository in, if it dosen't exist
mkdir /var/www
- Clone the git repoitory into the folder
git clone https://github.com/adamclark-dev/smartthings-text-to-speach.git tts
- Enter the folder you just created
cd /var/www/tts
- Install NPM packages
sudo npm install
- Turn the application into a service to run constantly on your linux installation
sudo forever-service install tts --script server.js
- Start the text-to-speach service on your server
sudo service tts start
- If using a RaspberryPI then you might want to change the volume to 100% so that you can control the volume on your speakers or amplifier
sudo amixer sset PCM,0 100%
- Now install the smartapp on the smartthigns cloud.