icefall/egs/librispeech/ASR/local/download_data.py
2021-07-19 23:35:32 +08:00

22 lines
414 B
Python
Executable File

#!/usr/bin/env python3
"""
This file downloads the librispeech dataset
to the directory data/LibriSpeech.
It's compatible with kaldi's egs/librispeech/s5/local/download_and_untar.sh .
"""
from lhotse.recipes import download_librispeech
def download_data():
target_dir = "data"
download_librispeech(target_dir=target_dir, dataset_parts="librispeech")
if __name__ == "__main__":
download_data()