import speech recognition as sr code example Example: speech recognition pip install SpeechRecognition