Skip to content

filipecmedeiros/SpeechRecognitionParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpeechRecognition

  • Hello world examples using speech recognition library with python
  • How to easly handle audio messages from facebook messenger and whatsapp without having to create additional files on the server

How to install:

  1. Create a virtualenv
    1. $ virtualenv venv -p python3
    2. $ source venv/bin/activate
  2. Install Speech Recognition and PyAudio
    1. $ pip install SpeechRecognition
    2. $ sudo apt install portaudio19-dev python-all-dev
    3. $ pip install pyaudio
  3. Run file
    1. $ python speech.py

Code example:

from Speech import Speech
url = "https://cdn.fbsbx.com/v/t59.3654-21/82553223_796445640872741_8263787187997245440_n.mp4/audioclip-1580956656-5155.mp4?_nc_cat=108&_nc_ohc=3JEUqiAi2-4AX_GpxB2&_nc_ht=cdn.fbsbx.com&oh=0934fe24d7e106658ddebbe1066fb001&oe=5E3D856A"
speech = Speech('messenger')
print(speech.process(url))

About

Speech recognition library with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages