o
    2wi8
                     @   s   d dl Z d dlmZ d dlmZ d dlm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e jdd	dde jdde j
dd	d
dddededededef
ddZdS )    N)prepareprepare_callhome_english)PathlikeT)show_default)context_settingsz	audio-dirF)exists	file_okay)typez
output-dirz
--rttm-dirz--absolute-pathszPWhether to return absolute or relative (to the corpus dir) paths for recordings.)defaulthelpz--transcript-dirzwPath to the LDC97T14 corpus. Please note that providing this path, the ASR corpus will be prepared, not the SRE corpus!)r   r
   r   	audio_dir
output_dirrttm_dirabsolute_pathstranscript_dirc                 C   s   t | ||||d dS )a  
    CallHome American English corpus preparation.

    
    Depending on the value of transcript_dir, will prepare either
        * if transcript_dir = None, the SRE task (expected corpus ``LDC2001S97``).
        The setup will reflect speaker diarization on a portion of CALLHOME used in
        the 2000 NIST speaker recognition evaluation. The 2000 NIST SRE is
        required, and has an LDC catalog number LDC2001S97. The data is not
        available for free, but can be licensed from the LDC (Linguistic Data
        Consortium)
        * otherwise data for ASR task (expected LDC corpora ``LDC97S42`` and
        ``LDC97T14``) will be prepared. The data is not available for free, but can
        be licensed from the LDC (Linguistic Data Consortium)


    The data should be located at AUDIO_DIR.
    Optionally, for the SRE task, RTTM_DIR can be provided that has the contents
    of http://www.openslr.org/resources/10/; otherwise, we will download it.

    To actually read the audio, you will need the SPH2PIPE binary: you can provide
    its path, so that we will add it in the manifests (otherwise you might need to
    modify your PATH environment variable to find sph2pipe).

    Example:

        lhotse prepare  callhome-english /export/corpora5/LDC/LDC97S42 --transcript-dir /export/corpora5/LDC/LDC97T14 ./callhome_asr

      or

        lhotse prepare  callhome-english /export/corpora5/LDC/LDC2001S97 ./callhome_sre
    )r   r   r   r   r   Nr   )r   r   r   r   r    r   f/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/lhotse/bin/modes/recipes/callhome_english.pycallhome_english   s   7
r   )clicklhotse.bin.modesr   lhotse.recipesr   lhotse.utilsr   commanddictargumentPathoptionboolr   r   r   r   r   <module>   s<    