o
    2wi                     @   s\  d dl mZ d dlZd dlmZmZ d dlmZmZ d dl	m
Z
 dgZejeddd	ejd
ejddddejde dejdejddddddejddedgdddejddedddejdejddgdddddd d
e
de
d!e
d"ee d#ed$efd%dZejeddd	ejd&e dejd'dd(d)d&e
d*efd+dZdS ),    )SequenceN)downloadprepare)download_librispeechprepare_librispeech)PathlikelibrispeechT)show_default)context_settings
corpus_dir)existsdir_okay)type
output_dirz--alignments-dirz5Path to the directory with the alignments (optional).)r   defaulthelpz-pz--dataset-partsautoz{List of dataset parts to prepare. To prepare multiple parts, pass each with `-p` Example: `-p train-clean-360 -p dev-other`)r   r   multipler   z-jz
--num-jobs   zBHow many threads to use (can give good speed-ups with slow disks).z--normalize-textnonelowerF)case_sensitivezCConversion of transcripts to lower-case (originally in upper-case).)r   r   r   r	   alignments_dirdataset_partsnormalize_textnum_jobsc                 C   s,   t |dkr
|d }t| |||||d dS )z((Mini) Librispeech ASR data preparation.r   r   )r   r   r   r   r   N)lenr   )r   r   r   r   r   r    r   a/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/lhotse/bin/modes/recipes/librispeech.pyr      s   )

target_dirz--full/--miniz3Download Librispeech [default] or mini Librispeech.)r   r   fullc                 C   s   t | |rdndd dS )z(Mini) Librispeech download.r   mini_librispeech)r   N)r   )r   r    r   r   r   r   A   s   	
)typingr   clicklhotse.bin.modesr   r   lhotse.recipes.librispeechr   r   lhotse.utilsr   __all__commanddictargumentPathoptionstrintChoicer   boolr   r   r   r   <module>   st    	