Giter VIP home page Giter VIP logo

ankushmalaker / easy-stt Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 41 KB

Easy way to use one of transformer models to do inference locally. Can be done live through mic, or on local files. The first run needs to be online to download necessary models.

License: GNU General Public License v3.0

Python 100.00%
hacktoberfest stt huggingface speech-recognition transformers ai pytorch machinelearning

easy-stt's Introduction

Using this repo is simple:

  1. Clone repo: git clone https://github.com/AnkushMalaker/easy-stt.git
  2. Create conda environment:
conda create -n easy_stt python=3.8
cd easy-stt
pip install -r requirements.txt
  1. Run inference script and select the model python3 src/scripts/infer_live.py -c to run live inference through a connected microphone or python3 src/scripts/infer.py ./input_file.wav ./output.csv -c to run inference on input_file.wav and save result in output.csv. You can even provide a directory instead of a file in the above command and it'll run inference on all files and save results in the csv.

Note: For infer_live.py, the user needs to find which audio device is suitable. Maybe we could build an interface to prompt the user to select the audio device. For now it's manual.

Results

Audio 1: clip1

Transcription: WEREBASICALLY TRYING TO RETAIN THE FINAL LAYER OF THE MODEL SO THAT IT CAN RECOGNIZE MY VOICE AND ACCENT AND ME BETTER

Audio 2: clip2

Transcription THESE MODELS ARE TRAINED ON LARGE CORPORA THAT DOES N'T ALWAYS TRANSLATE TO GREAT PERFORMANCE IN SPECIFIC CASES

easy-stt's People

Contributors

ankushmalaker avatar

Watchers

 avatar  avatar

easy-stt's Issues

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.