Skip to content

adamclark-dev/smartthings-text-to-speech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voice notification server and smartapp for SmartThings

Video instructions - https://www.youtube.com/watch?v=o5H1mfNK6eM

Installation Instructions

  1. Sign up for developer account at https://www.ivona.com/ and get access key and secret key

  2. Login to linux machine

  3. Install node, git and NPM

sudo apt-get install nodejs nodejs-legacy npm git
  1. Install libasound2-dev
sudo apt-get install libasound2-dev
  1. Install forever (globally)
sudo npm install -g forever
  1. Install forver service (globally)
sudo npm install -g forever-service
  1. 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)
  1. Make a folder to put the git repository in, if it dosen't exist
mkdir /var/www
  1. Clone the git repoitory into the folder
git clone https://github.com/adamclark-dev/smartthings-text-to-speach.git tts
  1. Enter the folder you just created
cd /var/www/tts
  1. Install NPM packages
sudo npm install
  1. Turn the application into a service to run constantly on your linux installation
sudo forever-service install tts --script server.js
  1. Start the text-to-speach service on your server
sudo service tts start
  1. 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%
  1. Now install the smartapp on the smartthigns cloud.

About

SmartThings text to speech server in NodeJS

Resources

Stars

Watchers

Forks

Packages

No packages published