GithubHelp home page GithubHelp logo

nishant-pall / asr Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 94.36 MB

Shell 3.97% Python 10.90% Makefile 0.47% Ruby 0.02% Batchfile 0.02% C++ 66.00% C 5.89% SWIG 0.23% C# 1.36% Java 0.65% CMake 1.07% JavaScript 0.12% TypeScript 0.28% Swift 0.86% Objective-C 0.01% Awk 0.06% Jupyter Notebook 3.02% Roff 4.58% Cython 0.49%

asr's Introduction

Automatic Speech Recognition

Objective

To use the Deepspeech model from Mozilla, and use it extensively for identifying the software engineering jargon to assist developers in sorting issues and debug their code.

Contents

Resources

Formatting

  • Back-End Web development text scripts.

  • Object Oriented Design text scripts.

  • Notebooks for appropriate formatting and work up to make scripts suitable for training a scorer have been named according to their function.

Building Scorer

  • Scorers were built here.

  • Follow the External Scorer Scripts documentation for building and training your own scorers according to the dataset.

  • STEPS TO BUILD A SCORER

      gzip OO.txt
    
    • Build the KenLM Library.

    • Use the following command to build the lm.binary and vocab.txt, as done in createVocab.sh.

     python3 generate_lm.py 
     --input_txt oo.txt.gz 
     --output_dir . \
     --top_k 500000 
     --kenlm_bins ../../kenlm/build/bin/ \
     --arpa_order 5 
     --max_arpa_memory "85%" 
     --arpa_prune "0|0|1" \
     --binary_a_bits 255 
     --binary_q_bits 8 
     --binary_type trie
    
    • To build the scorer, run the following command, as done in build.sh
    • Fine tune values of parameters default_alpha and default_beta for obtaining signals appropriately.
     ./generate_scorer_package
     --alphabet ../alphabet.txt
     --lm lm.binary 
     --vocab vocab-500000.txt \ 
     --package kenlm.scorer
     --default_alpha 0.93
     --default_beta 1.18 
     --force_bytes_output_mode True
    

Testing

  • Audio file obtained from Object-oriented Programming in 7 minutes | Mosh.

  • Used convert.ipynb for extracting the audio from the video and converting it into .wav format.

  • To obtain the result script and store it into result.txt run the following command in terminal.

    deepspeech --model deepspeech-0.9.3-models.pbmm --scorer kenlm.scorer --audio OO.wav > result.txt
    
    

asr's People

Contributors

dependabot[bot] avatar nishant-pall avatar trellixvulnteam avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

trellixvulnteam

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.