Building Magic Mirror with Raspberry Pi

Getting Raspberry Pi to do speech synthesis

sudo pip install gTTS

and python example:

from gtts import gTTS
import os
tts=gTTS(test='Testing 1 2 3', lang='en')
tts.save("test.mp3")
os.system("omxplayer test.mp3")

Getting Raspberry Pi to do speech recognition

wget --no-check-certificate "http://goo.gl/KrwrBA" -O PiAUISuite.tar.gz
tax -xvzf PiAUISuite.tar.gz
cd PiAUISuite/Install/
sudo ./InstallAUISuite.sh


Reference: