parser=argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,description='Extract spectrogram for each .wav file')
parser.add_argument('-f','--file',type=str,help='Name of the file that contains the recording to print')
parser.add_argument('path_to_data',type=arg_directory,help='Path of the folder that contains the recordings',required=True)
parser.add_argument('-p','--path_to_data',type=arg_directory,help='Path of the folder that contains the recordings',required=True)
parser.add_argument('directory',type=arg_directory,help='Directory to which spectrograms will be stored',required=True)
parser.add_argument('-d','--directory',type=arg_directory,help='Directory to which spectrograms will be stored',required=True)
parser.add_argument('-m','--mode',type=str,choices=['unique','multiple'],help='Direction of the saved spectrogram',default='multiple')
parser.add_argument('-m','--mode',type=str,choices=['unique','multiple'],help='Direction of the saved spectrogram')
parser.add_argument('-n','--columns_name',type=str,help='Name of the columns that contain the path of the .wav',default='Path')
parser.add_argument('-n','--columns_name',type=str,help='Name of the columns that contain the path of the .wav')
parser.add_argument('-i','--input',type=str,choices=['file','folder'],help='Choose "file" if you have a .csv file or "folder" to export '
parser.add_argument('-i','--input',type=str,choices=['file','folder'],help='Choose "file" if you have a .csv file or "folder" to export spectrogram from all the .wav of a folder')
'spectrogram from all the .wav of a folder',default='folder')
parser.add_argument('-f','--file',type=str,help='Name of the file that contains the recording to print',default=None)
parser.add_argument('--frames',type=int,help='Number of spectrogram per file',default=30)
parser.add_argument('--duration',type=int,help='Duration for each spectrogram',default=8)
parser.add_argument('--overlap',type=int,help='Overlap between 2 spectrograms',default=2)
parser.add_argument('--sr',type=int,help='Sampling rate for the spectrogram. If no argument, '
'SR will be original SR of the recording',default=None)
parser.add_argument('--window',type=int,help='Window size for the Fourier Transform',default=1024)
parser.add_argument('--hop',type=int,help='Hop lenght for the Fourier Transform',default=512)
parser.add_argument('--cpu',type=int,help='To speed up the process, write 2 or more',default=1)