I am making a Hosted Web Application for Samsung Smart TVs. I want to listen to OS-level voice assistant to open my application with specified content, for example, If I am on the home screen, If I press & hold the mic button and say, play Transformers movie in Amazon Prime, it opens Amazon Prime with the transformers movie meta page.
Here definitely, amazon/YouTube must have had listener functions inside their applications ready to extract movie names from voice event data and open the specific movie.
How can I replicate such a scenario in my application?