Giter Site home page Giter Site logo

fangd123 / funasr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from modelscope/funasr

0.0 0.0 0.0 4.16 MB

A Fundamental End-to-End Speech Recognition Toolkit

Home Page: https://www.modelscope.cn/models/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/summary

License: MIT License

Shell 3.89% Python 94.77% Perl 1.34%

funasr's Introduction

FunASR: A Fundamental End-to-End Speech Recognition Toolkit

FunASR hopes to build a bridge between academic research and industrial applications on speech recognition. By supporting the training & finetuning of the industrial-grade speech recognition model released on ModelScope, researchers and developers can conduct research and production of speech recognition models more conveniently, and promote the development of speech recognition ecology. ASR for Fun!Model Zoo

Release Notes:

2023.1.16, funasr-0.1.6

  • We release a new version model Paraformer-large-long, which integrate the VAD model, ASR, Punctuation model and timestamp together. The model could take in several hours long inputs.
  • We release a new type model, VAD, which could predict the duration of none-silence speech. It could be freely integrated with any ASR models in Model Zoo.
  • We release a new type model, Punctuation, which could predict the punctuation of ASR models's results. It could be freely integrated with any ASR models in Model Zoo.
  • We release a new model, Data2vec, an unsupervised pretraining model which could be finetuned on ASR and other downstream tasks.
  • We release a new model, Paraformer-Tiny, a lightweight Paraformer model which supports Mandarin command words recognition.
  • We release a new type model, SV, which could extract speaker embeddings and further perform speaker verification on paired utterances. It will be supported for speaker diarization in the future version.
  • We improve the pipeline of modelscope to speedup the inference, by integrating the process of build model into build pipeline.
  • Various new types of audio input types are now supported by modelscope inference pipeline, including wav.scp, wav format, audio bytes, wave samples...

Key Features

  • Many types of typical models are supported, e.g., Tranformer, Conformer, Paraformer.
  • We have released large number of academic and industrial pretrained models on ModelScope
  • The pretrained model Paraformer-large obtains the best performance on many tasks in SpeechIO leaderboard
  • FunASR supplies a easy-to-use pipeline to finetune pretrained models from ModelScope
  • Compared to Espnet framework, the training speed of large-scale datasets in FunASR is much faster owning to the optimized dataloader.

Installation(Training and Developing)

  • Install Conda:
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
conda create -n funasr python=3.7
conda activate funasr
  • Install Pytorch (version >= 1.7.0):
pip3 install torch torchvision torchaudio

For more versions, please see https://pytorch.org/get-started/locally

If you are in the area of China, you could set the source to speed the downloading.

pip config set global.index-url https://mirror.sjtu.edu.cn/pypi/web/simple
  • Install ModelScope:
pip install "modelscope[audio]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

For more details about modelscope, please see modelscope installation

  • Install FunASR and other packages:
git clone https://github.com/alibaba/FunASR.git && cd FunASR
pip install --editable ./

Pretrained Model Zoo

We have trained many academic and industrial models, model hub

Contact

If you have any questions about FunASR, please contact us by

Acknowledge

  1. We borrowed a lot of code from Kaldi for data preparation.
  2. We borrowed a lot of code from ESPnet. FunASR follows up the training and finetuning pipelines of ESPnet.
  3. We referred Wenet for building dataloader for large scale data training.

License

This project is licensed under the The MIT License. FunASR also contains various third-party components and some code modified from other repos under other open source licenses.

Citations

@inproceedings{gao2020universal,
  title={Universal ASR: Unifying Streaming and Non-Streaming ASR Using a Single Encoder-Decoder Model},
  author={Gao, Zhifu and Zhang, Shiliang and Lei, Ming and McLoughlin, Ian},
  booktitle={arXiv preprint arXiv:2010.14099},
  year={2020}
}

@inproceedings{gao2022paraformer,
  title={Paraformer: Fast and Accurate Parallel Transformer for Non-autoregressive End-to-End Speech Recognition},
  author={Gao, Zhifu and Zhang, Shiliang and McLoughlin, Ian and Yan, Zhijie},
  booktitle={INTERSPEECH},
  year={2022}
}

funasr's People

Contributors

lauragpt avatar jmwang66 avatar onlybetheone avatar lizerui9926 avatar hnluo avatar lyblsgo avatar alibaba-oss avatar teapoly avatar lingyunfly avatar nichongjia-2007 avatar zjc6666 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.