Code Monkey home page Code Monkey logo

kalebu / python-speech-recognition- Goto Github PK

View Code? Open in Web Editor NEW
53.0 3.0 30.0 308 KB

This consist of basic examples of performing Speech Recognition in Python using Google Speech Recognition Engine

Home Page: https://kalebujordan.com/python-speech-recognition/

Python 100.00%
python python-project python-project-beginner python-speechrecognition python-speech-to-text python-speech python-nlp machine-learning natural-language-processing artificial-intelligence

python-speech-recognition-'s Introduction

Speech Recognition in Python

Python-Speech-Recognition

This repository of basic examples on performing Speech Recognitionin Python using Google Speech Recognition Engine.

The original article

To see full article with explanation on source code from this repository Click here

Getting started ๐Ÿ”ง

Firstly before we begin exploring the source code, you might wanna clone or download the repository just as shown below;

# Clone this repository
$ git clone https://github.com/Kalebu/Python-Speech-Recognition-

# Go into the repository
$ cd Python-Speech-Recognition-

Dependancies

Now you would need to Install all the Dependecies to begin running playing the Examples

Linux users

 
$ pip3 install pydub
$ pip3 install PyAudio
$ pip3 install SpeechRecognition

Window users

$ pip install pydub
$ pip install PyAudio
$ pip install SpeechRecognition

Once everything is cleary installed , you're now ready to run the above examples

Recognition From Microphone

The first Example app.py consist of python code to perform speech recognition on sound that is directly fed from Microphone

To run the Example do the following

$ python app.py 
    Adjusting noise 
    Recording for 4 seconds
    Done recording
    Recognizing the text
    Decoded Text : Python is awesome

Recognition From Audio File

The second Example app_audio.py consist of a python code to perform speech recognition from sound loaded from local audio file

To run the Example do the following

$ python3 app_audio.py 
    Done recording
    Recognizing the text
    Decoded Text : python programming is the best of all by Jordan

Recognizing From Long Audio File

Incase you have a long audio File, loading plus processing it, It takes a quite a while therefore the best way is to break the long audio source from file into small chunks and then performing speech Recognition on those chunks

The script long_audio.py consist of Python demo code just to that

To run the example do the Following

$ python3 app_audio.py 
    Done recording
    Recognizing the text
    Decoded Text : python programming is the best of all by Jordan

Explore and build your own thing

Well Hope you had amazing time practicing Some Speech Recognition Now It's your turn to create something useful out of what you just learned.

Give it a star

Did you find this information useful, then give it a star

Credits

All the credits to kalebu

The Only limits are the one you have set upon yourself @unkown

python-speech-recognition-'s People

Contributors

kalebu avatar kalebujordan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

python-speech-recognition-'s Issues

Cannot run long_audio.py

I can run the other examples. But running the script long_audio.py as in:

runfile('/Users/Dev/GitHub/Python-Speech-Recognition-/long_audio.py', wdir='/Users/Dev/GitHub/Python-Speech-Recognition-')

generates the following error (I am not showing a lot of lines):

FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'

I am running Python on Mac OS 12.1 in Spyder.

Would appreciate your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.