Downloads · 30 days
0
GCFzz/lighting-asr-en
lighting-asr-en is a machine learning model from GCFzz. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-sa-4.0.
参考https:https://github.com/gaochangfeng/lighting-asr.git
Downloads · 30 days
0
Access
Public
Updated May 16, 2023
Repo size
364 MB
Likes
0
Public
Click a slice to open those files.
.ckpt364 MB · 100%
From the Hugging Face model README
- Python3.7+
- PyTorch 1.8.1+
- torchaudio
- soundfile
- librosa
export PYTHONPATH=/path/to/lasrfolder/:$PYTHONPATH
git clone https://github.com/gaochangfeng/lighting-asr.git
cd lighting-asr
python setup.py install
pip install git+https://github.com/gaochangfeng/lighting-asr.git
from lasr.process.asrprocess import ASRProcess
train_config="hparams.yaml"
decode_config="decode.yaml"
model_path="model.ckpt"
asrpipeline = ASRProcess(
train_config=train_config,
decode_config=decode_config,
model_path=model_path
)
token, text = asrpipeline("test.wav")
print(token)
print(text)