mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
22 lines
414 B
Python
Executable File
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()
|