When I was young I thought that the things that I watched in the movies were not real, and I was not going to be able to create such things, like controlling doors with voice commands, etc. But right now with a help of the technology that we have, we can do everything, without spending a lot of money, because this hobby is not expensive, and is easy, if you know just a little bit about electronics, everything is achievable. I'm not talking about advanced and optimized electronics, I'm talking about a lot of things that we can do as a hobby, including this in my opinion interesting project :D
One advantage of this method for controlling electrical components is that we can control a lot of things, for example, control a lot of parts on one big machine, without having a lot of buttons, we can do it with voice commands.
Resources:
Plugin for accessing android and ios native functions with unity, thanks to j1mmyto9 for sharing such a great plugin, and also thanks to the other contributors, link: https://github.com/j1mmyto9/Speech-An...
My app and the C++ code that I used to program the microcontroller (Wemos D1 mini), link: https://github.com/Zdravevski/start-a...
Wish you happy experimenting and messing up with electronics and programming :D