CoolFace
Modelpublic

espnet/yoshiki_chime4_whisper_medium_finetuning

sourceHugging Facecc-by-4.0updated 6d agoView on Hugging Face
0likes5downloads
Model Card

Usage

python
import librosa
from espnet2.bin.asr_inference import Speech2Text

speech2text = Speech2Text.from_pretrained(model_tag="espnet/yoshiki_chime4_whisper_medium_finetuning")
# librosa resamples and mixes to one channel, so any file works; 16000 is
# what nearly every espnet recogniser is trained on - check this model's
# config if its audio is not 16 kHz
speech, rate = librosa.load("audio.wav", sr=16000, mono=True)
text, *_ = speech2text(speech)[0]
print(text)

ESPnet2 ASR model

espnet/yoshiki_chime4_whisper_medium_finetuning

This model was trained by Yoshiki using chime4 recipe in espnet.

Demo: How to use in ESPnet2

Follow the ESPnet installation instructions if you haven't done that already.

bash
cd espnet
git checkout fe00740b80cd26fad7c550cd9e975609deb664db
pip install -e .
cd egs2/chime4/asr1
./run.sh --skip_data_prep false --skip_train true --download_model espnet/yoshiki_chime4_whisper_medium_finetuning

<!-- Generated by scripts/utils/showasrresult.sh -->

RESULTS

Environments

  • —date: Fri Jul 21 19:08:31 JST 2023
  • —python version: 3.10.10 (main, Mar 21 2023, 18:45:11) [GCC 11.2.0]
  • —espnet version: espnet 202304
  • —pytorch version: pytorch 1.13.1
  • —Git hash: d7172fcb7181ffdcca9c0061400254b63e37bf21
  • —Commit date: Sat Jul 15 15:01:30 2023 +0900

/scratch/espnet-hackathon/egs2/chime4/asr1/exp4/asrtrainasrwhisperfullwarmup1500rawenwhisper_multilingual

WER

datasetSntWrdCorrSubDelInsErrS.Err
decodeasrwhispernoctcgreedyasrmodelvalid.acc.ave/dt05realisolated1ch_track16402479197.71.90.50.73.025.7
decodeasrwhispernoctcgreedyasrmodelvalid.acc.ave/dt05simuisolated1ch_track16402479295.93.30.80.84.937.0
decodeasrwhispernoctcgreedyasrmodelvalid.acc.ave/et05realisolated1ch_track13201934196.33.20.50.84.533.6
decodeasrwhispernoctcgreedyasrmodelvalid.acc.ave/et05simuisolated1ch_track13201934493.15.81.11.28.143.3

CER

datasetSntWrdCorrSubDelInsErrS.Err
decodeasrwhispernoctcgreedyasrmodelvalid.acc.ave/dt05realisolated1ch_track164014188999.20.40.40.71.525.7
decodeasrwhispernoctcgreedyasrmodelvalid.acc.ave/dt05simuisolated1ch_track164014190098.20.90.90.82.637.0
decodeasrwhispernoctcgreedyasrmodelvalid.acc.ave/et05realisolated1ch_track132011055898.60.80.60.72.133.6
decodeasrwhispernoctcgreedyasrmodelvalid.acc.ave/et05simuisolated1ch_track132011057296.51.91.51.24.743.3

Citing ESPnet

BibTex
@inproceedings{watanabe2018espnet,
  author={Shinji Watanabe and Takaaki Hori and Shigeki Karita and Tomoki Hayashi and Jiro Nishitoba and Yuya Unno and Nelson Yalta and Jahn Heymann and Matthew Wiesner and Nanxin Chen and Adithya Renduchintala and Tsubasa Ochiai},
  title={{ESPnet}: End-to-End Speech Processing Toolkit},
  year={2018},
  booktitle={Proceedings of Interspeech},
  pages={2207--2211},
  doi={10.21437/Interspeech.2018-1456},
  url={http://dx.doi.org/10.21437/Interspeech.2018-1456}
}

or arXiv:

bibtex
@misc{watanabe2018espnet,
  title={ESPnet: End-to-End Speech Processing Toolkit},
  author={Shinji Watanabe and Takaaki Hori and Shigeki Karita and Tomoki Hayashi and Jiro Nishitoba and Yuya Unno and Nelson Yalta and Jahn Heymann and Matthew Wiesner and Nanxin Chen and Adithya Renduchintala and Tsubasa Ochiai},
  year={2018},
  eprint={1804.00015},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}