I want to change audio source on my home cinema when Alexa is speaking so I need to be notified when it starts and stops.
-
2What sort of notification are you expecting, exactly? – Aurora0001♦ Jan 3 '17 at 17:15
-
1Anything that would allow me to call my code so I can switch the input source on my audio station. Probably HTTP request? – sorin Jan 3 '17 at 17:21
-
If you could intercept the SpeechStarted/SpeechFinished event, this wouldn't be too difficult. How you do that is a different question entirely - the link only applies if you are implementing Alexa for your own device. – Aurora0001♦ Jan 3 '17 at 17:41
-
@Aurora0001 I don't think so, that's if you use the AVS on a device you implement yourself – Helmar♦ Jan 3 '17 at 17:44
-
@Helmar I'm aware of that, which is why I'm not sure whether it's possible to do it with the Echo itself, but I'd guess that the Echo just uses Amazon's API internally. It's worth investigating anyway (perhaps intercept router traffic to see if you can find anything?) – Aurora0001♦ Jan 3 '17 at 17:51
No. Currently there doesn't seem to be a way to do that with the Amazon Echo itself—not software based at least. Of course you could open it up and hook a sensor to the speaker but that seems to be not a good way to do what you're asking. Although it would be really IoT to supervise your IoT equipment with more IoT equipment.
However, if you are not opposed to building your own hardware and run Alexa Voice Services from there you could use the events provided by AVS1. That however wouldn't be notifications about the Amazon Echo but only about a device that can act like an Echo.
1: Link dug up by Aurora