Code Monkey home page Code Monkey logo

wav2vec2-live-japanese-translator's Introduction

wav2vec2-live-japanese-translator

Real time speech recognition translator using wav2vec2 and google translate
uses finetuned facebook/wav2vec2-large-xlsr-53 and facebook/wav2vec2-large-960h-lv60-self
it detect speaker (WASAPI for output loopback) and microphone (MME)

download latest from Downloads

Result

result
result

Finetuned model detail

Test WER on Common Voice Japanese test data: 21.48%
Test CER on Common Voice Japanese test data: 9.82%

Fine-tuned facebook/wav2vec2-large-xlsr-53 on Japanese hiragana using

Required environment to run

conda create -n torch python=3.6   
conda activate torch    
conda install pytorch==1.9.1 torchvision torchaudio==0.9.0 cudatoolkit=11.1 -c pytorch -c nvidia -c conda-forge
pip install datasets==1.11.0  
pip install transformers==4.11.2  
pip install ipywidgets  
pip install jiwer  
pip install pykakasi  
pip install mecab-python3  
pip install unidic-lite

#gui
conda install pytorch==1.9.0 torchaudio==0.9.0 cudatoolkit=10.2 -c pytorch
pip install transformers==4.11.2  
pip install PySoundFile
pip install PyAudio-0.2.11-cp36-cp36m-win_amd64.whl
pip install webrtcvad
pip install googletrans==4.0.0rc1
pip install PyQt5
pip install scipy
pip install pyinstaller

Model finetune code

jp_train.ipynb

Run gui using python

python gui_handler.py

pyinstaller

pyinstaller gui_handler.py -y -n wav2vec2_live_japanese_translator --hidden-import=pytorch --collect-data torch --copy-metadata torch --copy-metadata tqdm --copy-metadata regex --copy-metadata sacremoses --copy-metadata requests --copy-metadata packaging --copy-metadata filelock --copy-metadata numpy --copy-metadata tokenizers --copy-metadata importlib_metadata  --copy-metadata dataclasses

Acknowledgement and References

wav2vec2-live-japanese-translator's People

Contributors

ttop32 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.