Skip to content

Files

Latest commit

20e8753 · Oct 15, 2019

History

History
This branch is 450 commits behind x4nth055/pythoncode-tutorials:master.

speech-recognition

To run this:

  • pip3 install -r requirements.txt
  • To recognize the text of an audio file named 16-122828-0002.wav:
    python recognizer.py 16-122828-0002.wav
    
    Output:
    I believe you're just talking nonsense
    
  • To recognize the text from your microphone after talking 5 seconds:
    python live_recognizer.py 5
    
    This will record your talking in 5 seconds and then uploads the audio data to Google to get the desired output.