description="Once your best detector has outlined your favorite animal's calls, this script allows you to extract their pitch (using the Praat technology https://parselmouth.readthedocs.io/en/stable/ , based on the Paul Boersma (1993): \"Accurate short-term analysis of the fundamental frequency and the harmonics-to-noise ratio of a sampled sound.\" Proceedings of the Institute of Phonetic Sciences 17: 97–110. University of Amsterdam.) The dictionnary storing the pitch of the given calls will be saved in a .npy in the folder of your choice")
parser.add_argument("file",type=str,help="Folder of .preds (dictionnaries 'filename': model's prediction array)")
parser.add_argument("--extend",type=int,default=0,help="Number of preds to extend the calls on the right side")
parser.add_argument("--pred_threshold",type=float,default=.9,help="Threshold for considering an prediction true (between 0 and 1)")
parser.add_argument("--display",type=bool,default=False,help="Boolean for displaying calls and their pitch")
parser.add_argument("--saveimg",type=str,default=None,help="Path for saving vocalisation images")
parser.add_argument("--specific_time",type=str,default=None,help="Date for running at specific time using pandas date indexing, format : YYYY-MM-DD HH:MM:SS")