Search code examples
pythonaudiomodulemicrophone

how to recieve Audio inputs in python and converts it to text string


I think that my question clear from the title

Is there a python module or function that allows me to receive Audio inputs and return a text value?

For example if i used the microphone and said Hellow the python program returns "hellow" as text value.


Solution

  • Use PyAudio: https://people.csail.mit.edu/hubert/pyaudio/ to capture audio from your speaker, then the speech recognition API: https://pypi.python.org/pypi/SpeechRecognition/ to convert audio to text.