Code Monkey home page Code Monkey logo

foreign_speech_recognition's Introduction

Free and Offline Foreign Speech Recognition

Free and offline foreign (non-English) speech recognition with Python, Google API vosk and SpeechRecognition / Pocketsphinx.

For speech recognition with timestamps see timestamps folder.

foreign_speech_recognition_preview.jpg

Setup

Read these instructions to know what library you need to setup and how to do it. They are also available here.

  • Online speech recognition with Google API:
    • pip install SpeechRecognition
  • Offline speech recognition with vosk:
    • pip install vosk
    • download vosk model, unzip it and specify path to the model in program
  • Offline Speech Recognition with SpeechRecognition and Pocketsphinx:
    • pip install SpeechRecognition
    • python -m pip install --upgrade pip setuptools wheel
    • pip install --upgrade pocketsphinx
    • download foreign models for pocketsphinx, unzip and setup it

Overview Jupyter Notebook

See overview jupyter notebook, which contains examples of all methods.

Open it with jupyter or see directly in a browser.

Scripts Practical Use

As any python script any of these tree scripts (.py files) can be run with the following command: python script_name.py parameter1, parameter2 ....

Every script has two parameters:

  • first (required) - name of the .wav file to recognize
  • second (optional) - name of the text file to write recognized text. If not specified, uses first_parameter.txt

Examples:

  • python script_online_sr.py audio.wav (writes text in audio.txt)
  • python script_online_sr.py audio.wav audio_outout.txt
  • python script_vosk.py 'sounds\filename.wav' (recognize current_folder\sounds\filename.wav)
  • python script_offline_sr.py 'D:\sounds\filename.wav'

foreign_speech_recognition's People

Contributors

kmukash avatar

Watchers

 avatar

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.