<jupyter_start><jupyter_text>Download and Unzip Speech This data is more specific to the data used in the paper :<jupyter_code>!wget https://fcbhabdm.s3.amazonaws.com/mp3audiobibles2/ENGESVN1DA/ENGESVN1DA.zip
!wget https://fcbhabdm.s3.amazonaws.com/mp3audiobibles2/ENGESVO1DA/ENGESVO1DA.zip
    
!unzip ENGESVN1DA.zip
!rm ENGESVN1DA.zip

!unzip ENGESVO1DA.zip
!rm ENGESVO1DA.zip

!mkdir ../dataset/english/wav
!mv English_English_Standard_Version____OT_Non-drama/* ../dataset/english/wav/
!mv English_English_Standard_Version____NT_Non-drama/* ../dataset/english/wav/

!rm -r English_English_Standard_Version____OT_Non-drama/
!rm -r English_English_Standard_Version____NT_Non-drama/<jupyter_output><empty_output><jupyter_text>Rename name on wav_speech<jupyter_code># Rename the downloaded Audio to a standard B<number>-<verse>
# There is an issue with the formating of the book of the audio of the book of psalms in the OT and this can be fixed manually
# Pythono3 code to rename multiple 
# files in a directory or folder 

# importing os module 
import os 
import ipdb

# Function to rename multiple files 
def folder(repository, splitter="___"):

    for count, filename in enumerate(os.listdir(repository)): 
        
        # Zfill to write al number as 001, 002 for standardization reason
        book, verse = filename.split(splitter)[0], filename.split(splitter)[1].split("_")[0].zfill(3)

        ext = '.'+filename.split('.')[-1]

        
        src = repository+"/"+filename 
        dst = repository+"/"+book+"_"+verse+ext


        ## rename() function will 
        ## rename all the files 
        os.rename(src, dst) 
  
            

# Driver Code 
# Run this bloc once 
if __name__ == '__main__': 
    # Calling main() function 
    # main()     
    folder(repository="../dataset/english/wav/", splitter="___")
    folder(repository="../dataset/english/wav/", splitter="___")
!mv ../dataset/english/wav/*_000.mp3 ../dataset/english/rename/ 
# This must be run after insecting the renamed file and copy all the missed renamed file into the temp repository (A19)
folder(repository="../dataset/english/rename/", splitter="__")
!mv ../dataset/english/rename/* ../dataset/english/wav/<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1183325862841775, 'fraction_numerical': 0.014343343792021516, 'mean_word_length': 3.810344827586207, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '666041', 'license': 'MIT', 'n_tokens_mistral': 783, 'n_tokens_neox': 739, 'n_words': 187, 'path': 'notebooks/01-Audio_download_Rename.ipynb', 'repo_name': 'Kabongosalomon/LiSTra', 'size': '2231'}