+ 1
Help
Let's say I want to be able to say a word and music plays or I want to put in the charger and then a certain app will come on how do I control my phone or computer?
3 Answers
+ 2
If you want to use Python, it'll be far easier to do that in a laptop or desktop than a phone. Python is hard to use for anything in a smart phone app.
If you want to do this with Python, you'd need the Python application running before you speak and obviously you'd need a microphone. The program could then use speech recognition to turn what you say into strings that your Python code uses to play the audio of your music. Maybe you have some mp3 files on your computer.
Here is some discussion of speech recognition packages in Python:
https://www.sololearn.com/Discuss/2518331/how-can-i-get-speech-input-and-use-it-as-strings-in-python
Note that most speech recognition is done remotely and you're limited on how many speech recognition queries each computer can do per day. This means, you wouldn't be able to just continue listening to the microphone all day long.
Regarding the charger connection sound, you're completely out of luck at least for Windows. There is no way to configure the sound according to: https://answers.microsoft.com/en-us/windows/forum/all/plug-in-charger-sound/cf346083-dd82-400f-ba24-0797c0438368 and I can't find a way for a program to listen for when it is connected.
+ 1
Thanks alot
- 2
Say hey google.



