Controlling TV Home Theatre and Chromecast with Alexa on Raspberry Pi
This is a mini project that I did to fully control TV and Home Theatre with Alexa Voice Service on Raspberry Pi. I can also cast YouTube videos on my chromecast using my voice. This is a basic version that I will build on as and when I get time. First thing I have done is that build a custom alexa app. When a user speaks, Amazon AVS processed the sound and converts it into intents that are handled by an AWS lambda function. In that function, apart from handling the responses from Alexa, I also publish MQTT messages to an IoT server (iot.eclipsed org in this case). On my raspberry pi, I have built a Paho MQTT client that subscribes to the various messages and eventually, the communication between raspberry pi and chromecast happens through an awesome library called pychromecast (just Google it and you'll find the git link). Communication between pi and TV/Home Theatre happens via a IR.
This is a mini project that I did to fully control TV and Home Theatre with Alexa Voice Service on Raspberry Pi. I can also cast YouTube videos on my chromecast using my voice. This is a basic version that I will build on as and when I get time. First thing I have done is that build a custom alexa app. When a user speaks, Amazon AVS processed the sound and converts it into intents that are handled by an AWS lambda function. In that function, apart from handling the responses from Alexa, I also publish MQTT messages to an IoT server (iot.eclipsed org in this case). On my raspberry pi, I have built a Paho MQTT client that subscribes to the various messages and eventually, the communication between raspberry pi and chromecast happens through an awesome library called pychromecast (just Google it and you'll find the git link). Communication between pi and TV/Home Theatre happens via a IR.