A demo implementation of voice recognition written in python(2.7) to send commands through adb in android.
The program main lib is SpeechRecognition 3.1.3 which uses Google Speech Recognition service as Speech Recognizer. The command detection is done manually using regular expressions over the text output from the Speech Recognizer.
The program works as follows:
Voice > Speech Recognition > Command Detection > Action through adb
- Send messages
- Calls
python ex.py
Here we show some examples in english and spanish voice commands.
- [Command synonimous or conjugations] [(Regular Expression)]
- "Llamar", "Llamando", "Llama".. ( [Ll]amar* )
- "Mensaje"... ( [Mm]ensaje)
- "Escribe", "Escriba", "Escribale" ... ( [Ee]scrib* )
- "Call", "Calling"... ([Cc]all*)
- "Message" ... ([Mm]essag*)
- "Write" ... ([Ww]rit*)
- "Tell"... ([Tt]ell*)
- Say: "Please call X (number)" or "Send x(number) message saying I love you "
- Diga: "LLama a X(numero)" o "Envia mensaje al numero x(numero) escribe "Te amo" "
- Internet (for the speech recognition service)
- Must have adb installed on system
- For python libs check [Requirements.txt] (https://github.com/aqt01/speech_recognition/blob/master/requirements.txt)
- Send messages via whatsapp
- Send GeoLocation o say geolocation
- Use wit.ai as voice interface
- Apply software principles to the project
- ...