Code Monkey home page Code Monkey logo

transcript-generator-using-mozilla-deepspeech-models's Introduction

This is a Transcript Generator using Mozilla DeepSpeech pre-trained Models. The Deepspeech version is 0.9.1. The Docs for it can be found here : https://deepspeech.readthedocs.io/

Many Thanks to abhirooptalasila for AutoSub : https://github.com/abhirooptalasila/AutoSub/tree/master/autosub

The pre-trained models can be found and be downloaded here : https://deepspeech.readthedocs.io/en/v0.9.1/USING.html#getting-the-pre-trained-model OR, https://github.com/mozilla/DeepSpeech/releases

Both .pbmm Model and .scorer language Model are needed to run for this Package. The Folder for the models to be placed is models/ (Download both .pbmm and .scorer and place it under models folder)

The Audio to be transcriped are to be placed under "audio" folder. All the audio files under the "audio" folder are transcribed and their relative output transcriptions will be generated on "outputTranscripts" with the same name as the audio file.

The original (truth/real) transcriptions are to be placed under "transcripts" folder while Evaluating and Generating WER/MER/WIL. The Results/Scores will be generated by name RESULTS.txt.

WER = Word Error Rate MER = Match Error Rate WIL = Word Information Lost

Install the all the dependencies on the requirements.txt file. It can be done by : pip install -r requirements.txt

NOTE : For the Package "jiwer" from requirements.txt, Microsoft Visual C++ 14.0 or greater is required.Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Apart from dependencies from requirements.txt, you need to install SoX (Sound eXchange) if your Audio file is not in the recommended 16 KHz Sample Rate for the deepspeech model (to convert your audio to 16KHz Sample Rate which is done automatically by a function if SoX is installed). To Install SoX :
Download Sox from : https://sourceforge.net/projects/sox/ And Add Sox your Environment Path Variable.

Finally the working of this Package =>

*Run main.py to transcribe audio files in "audio" folder. The inferred transcript will be generated in "outputTranscripts" folder.

*Run wordErrorRate.py to get WER,MER,WIL for inferred transcripts from "outputTranscripts" & original(real/true) transcripts from "transcripts" folders.

The results/scores will be stored in RESULTS.txt.

NOTE : the original transcripts will have to have the same name as the inferred transcripts.

transcript-generator-using-mozilla-deepspeech-models's People

Contributors

nabinadhikari674 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.