directory = '/dialogue/conversations/media.talkbank.org/ca/CallHome/eng/0wav/'

files_all = ['0638', '4065', '4074', '4077', '4092', '4093', '4104', '4112', '4145', '4156', 
            '4157', '4170', '4183', '4184', '4234', '4245', '4247', '4248','4289', '4290', 
            '4310', '4315', '4316', '4325', '4335', '4365', '4371', '4390', '4404', '4415', 
            '4431', '4432', '4459', '4484', '4485', '4490', '4507', '4520', '4521', '4522', 
            '4537', '4543', '4544', '4547', '4556', '4560', '4564', '4569', '4571', '4574', 
            '4576', '4577', '4580', '4595', '4601', '4610', '4612', '4616', '4622', '4623', 
            '4624', '4628', '4629', '4660', '4665', '4666', '4673', '4677', '4683', '4686', 
            '4689', '4694', '4702', '4705', '4721', '4726', '4753', '4776', '4790', '4792', 
            '4801', '4802', '4807', '4808', '4822', '4824', '4829', '4838', '4844', '4852', 
            '4854', '4861', '4875', '4886', '4887', '4902', '4908', '4913', '4926', '4927', 
            '4938', '4941', '4966', '4967', '4968', '5011', '5017', '5020', '5023', '5046', 
            '5166', '5208', '5242', '5254', '5273', '5278', '5352', '5373', '5388', '5495', 
            '5532', '5551', '5573', '5648', '5700', '5712', '5713', '5736', '5777', '5788', 
            '5866', '5872', '5888', '5907', '5931', '6033', '6045', '6047', '6067', '6071', 
            '6079', '6100', '6107', '6130', '6161', '6165', '6179', '6183', '6189', '6217', 
            '6252', '6265', '6267', '6274', '6282', '6298', '6313', '6314', '6348', '6408', 
            '6447', '6456', '6467', '6474', '6479', '6489', '6521', '6625', '6658', '6785', 
            '6825', '6861', '6880', '6912'] # ch_eng_all single array minus dud files (4604 & 4910)'

frequency = '8000'


'''All individual ch_eng_x lists '''
    #ch_eng_1 = ['0638', '4065', '4074', '4077', '4092', '4093', '4104', '4112', '4145', '4156', '4157', '4170', '4183', '4184', '4234', '4245', '4247', '4248','4289']
    #ch_eng_2 = ['4290', '4310', '4315', '4316', '4325', '4335', '4365', '4371', '4390', '4404', '4415', '4431', '4432', '4459', '4484', '4485', '4490', '4507', '4520', '4521']
    #ch_eng_3 = ['4522', '4537', '4543', '4544', '4547', '4556', '4560', '4564', '4569', '4571', '4574', '4576', '4577', '4580', '4595', '4601', '4610', '4612', '4616'] 
    #ch_eng_3_rest = ['4604'] this didnt work (no pauses produced)
    #ch_eng_4 = ['4622', '4623', '4624', '4628', '4629', '4660', '4665', '4666', '4673', '4677', '4683', '4686', '4689', '4694', '4702', '4705', '4721', '4726', '4753', '4776', '4790']
    #ch_eng_5 = ['4792', '4801', '4802', '4807', '4808', '4822', '4824', '4829', '4838', '4844', '4852', '4854', '4861', '4875', '4886', '4887', '4902', '4908', '4913']
    #ch_eng_5_rest = ['4910'] this didnt work (no pauses produced)
    #ch_eng_6 = ['4926', '4927', '4938', '4941', '4966', '4967', '4968', '5011', '5017', '5020', '5023', '5046', '5166', '5208', '5242', '5254', '5273', '5278', '5352', '5373', '5388']
    #ch_eng_7 = ['5495', '5532', '5551', '5573', '5648', '5700', '5712', '5713', '5736', '5777', '5788', '5866', '5872', '5888', '5907', '5931', '6033', '6045', '6047', '6067']
    #ch_eng_8 = ['6071', '6079', '6100', '6107', '6130', '6161', '6165', '6179', '6183', '6189', '6217', '6252', '6265', '6267', '6274', '6282', '6298', '6313', '6314', '6348']
    #ch_eng_9 = ['6408', '6447', '6456', '6467', '6474', '6479', '6489', '6521', '6625', '6658', '6785', '6825', '6861', '6880', '6912']


#--------------------------------------#--------------------------------------#--------------------------------------#--------------------------------------
#--------------------------------------#--------------------------------------#--------------------------------------#--------------------------------------
#--------------------------------------#--------------------------------------#--------------------------------------#--------------------------------------

#average number of pauses all
#pauses = np.array([27.177496038034864, 26.035087719298247, 34.31818181818182, 186.51315789473685, 143.86290322580646, 41.860240963855425, 24.72222222222222, 18.480898876404495, 1284.2857142857142, 630.64, 241.85135135135135, 27.042857142857144, 42.47560975609756, 28.40567612687813, 154.96521739130435, 344.63461538461536, 55.4765625, 91.93264248704664, 748.5416666666666, 55.411949685534594, 62.80714285714286, 175.1764705882353, 84.80327868852459, 52.58383233532934, 215.63855421686748, 54.30246913580247, 492.3636363636364, 155.3846153846154, 641.75, 86.32682926829268, 351.7647058823529])

#number of pauses
# pauses = np.array([631, 171, 506, 76, 124, 415, 576, 890, 14, 25, 74, 630, 410, 599, 115, 52, 256, 193, 24, 318, 280, 102, 61, 334, 83, 324, 22, 39, 28, 205, 51])

directory = '/dialogue/conversations/media.talkbank.org/ca/CallHome/eng/0wav/'

files_all = ['0638', '4065', '4074', '4077', '4092', '4093', '4104', '4112', '4145', '4156', 
            '4157', '4170', '4183', '4184', '4234', '4245', '4247', '4248','4289', '4290', 
            '4310', '4315', '4316', '4325', '4335', '4365', '4371', '4390', '4404', '4415', 
            '4431', '4432', '4459', '4484', '4485', '4490', '4507', '4520', '4521', '4522', 
            '4537', '4543', '4544', '4547', '4556', '4560', '4564', '4569', '4571', '4574', 
            '4576', '4577', '4580', '4595', '4601', '4610', '4612', '4616', '4622', '4623', 
            '4624', '4628', '4629', '4660', '4665', '4666', '4673', '4677', '4683', '4686', 
            '4689', '4694', '4702', '4705', '4721', '4726', '4753', '4776', '4790', '4792', 
            '4801', '4802', '4807', '4808', '4822', '4824', '4829', '4838', '4844', '4852', 
            '4854', '4861', '4875', '4886', '4887', '4902', '4908', '4913', '4926', '4927', 
            '4938', '4941', '4966', '4967', '4968', '5011', '5017', '5020', '5023', '5046', 
            '5166', '5208', '5242', '5254', '5273', '5278', '5352', '5373', '5388', '5495', 
            '5532', '5551', '5573', '5648', '5700', '5712', '5713', '5736', '5777', '5788', 
            '5866', '5872', '5888', '5907', '5931', '6033', '6045', '6047', '6067', '6071', 
            '6079', '6100', '6107', '6130', '6161', '6165', '6179', '6183', '6189', '6217', 
            '6252', '6265', '6267', '6274', '6282', '6298', '6313', '6314', '6348', '6408', 
            '6447', '6456', '6467', '6474', '6479', '6489', '6521', '6625', '6658', '6785', 
            '6825', '6861', '6880', '6912'] # ch_eng_all single array minus dud files (4604 & 4910)'

frequency = '8000'


'''All individual ch_eng_x lists '''
    #ch_eng_1 = ['0638', '4065', '4074', '4077', '4092', '4093', '4104', '4112', '4145', '4156', '4157', '4170', '4183', '4184', '4234', '4245', '4247', '4248','4289']
    #ch_eng_2 = ['4290', '4310', '4315', '4316', '4325', '4335', '4365', '4371', '4390', '4404', '4415', '4431', '4432', '4459', '4484', '4485', '4490', '4507', '4520', '4521']
    #ch_eng_3 = ['4522', '4537', '4543', '4544', '4547', '4556', '4560', '4564', '4569', '4571', '4574', '4576', '4577', '4580', '4595', '4601', '4610', '4612', '4616'] 
    #ch_eng_3_rest = ['4604'] this didnt work (no pauses produced)
    #ch_eng_4 = ['4622', '4623', '4624', '4628', '4629', '4660', '4665', '4666', '4673', '4677', '4683', '4686', '4689', '4694', '4702', '4705', '4721', '4726', '4753', '4776', '4790']
    #ch_eng_5 = ['4792', '4801', '4802', '4807', '4808', '4822', '4824', '4829', '4838', '4844', '4852', '4854', '4861', '4875', '4886', '4887', '4902', '4908', '4913']
    #ch_eng_5_rest = ['4910'] this didnt work (no pauses produced)
    #ch_eng_6 = ['4926', '4927', '4938', '4941', '4966', '4967', '4968', '5011', '5017', '5020', '5023', '5046', '5166', '5208', '5242', '5254', '5273', '5278', '5352', '5373', '5388']
    #ch_eng_7 = ['5495', '5532', '5551', '5573', '5648', '5700', '5712', '5713', '5736', '5777', '5788', '5866', '5872', '5888', '5907', '5931', '6033', '6045', '6047', '6067']
    #ch_eng_8 = ['6071', '6079', '6100', '6107', '6130', '6161', '6165', '6179', '6183', '6189', '6217', '6252', '6265', '6267', '6274', '6282', '6298', '6313', '6314', '6348']
    #ch_eng_9 = ['6408', '6447', '6456', '6467', '6474', '6479', '6489', '6521', '6625', '6658', '6785', '6825', '6861', '6880', '6912']


#--------------------------------------#--------------------------------------#--------------------------------------#--------------------------------------
#--------------------------------------#--------------------------------------#--------------------------------------#--------------------------------------
#--------------------------------------#--------------------------------------#--------------------------------------#--------------------------------------

#average number of pauses all
#pauses = np.array([27.177496038034864, 26.035087719298247, 34.31818181818182, 186.51315789473685, 143.86290322580646, 41.860240963855425, 24.72222222222222, 18.480898876404495, 1284.2857142857142, 630.64, 241.85135135135135, 27.042857142857144, 42.47560975609756, 28.40567612687813, 154.96521739130435, 344.63461538461536, 55.4765625, 91.93264248704664, 748.5416666666666, 55.411949685534594, 62.80714285714286, 175.1764705882353, 84.80327868852459, 52.58383233532934, 215.63855421686748, 54.30246913580247, 492.3636363636364, 155.3846153846154, 641.75, 86.32682926829268, 351.7647058823529])

#number of pauses
# pauses = np.array([631, 171, 506, 76, 124, 415, 576, 890, 14, 25, 74, 630, 410, 599, 115, 52, 256, 193, 24, 318, 280, 102, 61, 334, 83, 324, 22, 39, 28, 205, 51])

# ch_eng_all single array minus dud files (4604 & 4910)' All individual ch_eng_x lists #ch_eng_1 = ['0638', '4065', '4074', '4077', '4092', '4093', '4104', '4112', '4145', '4156', '4157', '4170', '4183', '4184', '4234', '4245', '4247', '4248','4289'] #ch_eng_2 = ['4290', '4310', '4315', '4316', '4325', '4335', '4365', '4371', '4390', '4404', '4415', '4431', '4432', '4459', '4484', '4485', '4490', '4507', '4520', '4521'] #ch_eng_3 = ['4522', '4537', '4543', '4544', '4547', '4556', '4560', '4564', '4569', '4571', '4574', '4576', '4577', '4580', '4595', '4601', '4610', '4612', '4616'] #ch_eng_3_rest = ['4604'] this didnt work (no pauses produced) #ch_eng_4 = ['4622', '4623', '4624', '4628', '4629', '4660', '4665', '4666', '4673', '4677', '4683', '4686', '4689', '4694', '4702', '4705', '4721', '4726', '4753', '4776', '4790'] #ch_eng_5 = ['4792', '4801', '4802', '4807', '4808', '4822', '4824', '4829', '4838', '4844', '4852', '4854', '4861', '4875', '4886', '4887', '4902', '4908', '4913'] #ch_eng_5_rest = ['4910'] this didnt work (no pauses produced) #ch_eng_6 = ['4926', '4927', '4938', '4941', '4966', '4967', '4968', '5011', '5017', '5020', '5023', '5046', '5166', '5208', '5242', '5254', '5273', '5278', '5352', '5373', '5388'] #ch_eng_7 = ['5495', '5532', '5551', '5573', '5648', '5700', '5712', '5713', '5736', '5777', '5788', '5866', '5872', '5888', '5907', '5931', '6033', '6045', '6047', '6067'] #ch_eng_8 = ['6071', '6079', '6100', '6107', '6130', '6161', '6165', '6179', '6183', '6189', '6217', '6252', '6265', '6267', '6274', '6282', '6298', '6313', '6314', '6348'] #ch_eng_9 = ['6408', '6447', '6456', '6467', '6474', '6479', '6489', '6521', '6625', '6658', '6785', '6825', '6861', '6880', '6912'] #--------------------------------------#--------------------------------------#--------------------------------------#-------------------------------------- #--------------------------------------#--------------------------------------#--------------------------------------#-------------------------------------- #--------------------------------------#--------------------------------------#--------------------------------------#-------------------------------------- #average number of pauses all #pauses = np.array([27.177496038034864, 26.035087719298247, 34.31818181818182, 186.51315789473685, 143.86290322580646, 41.860240963855425, 24.72222222222222, 18.480898876404495, 1284.2857142857142, 630.64, 241.85135135135135, 27.042857142857144, 42.47560975609756, 28.40567612687813, 154.96521739130435, 344.63461538461536, 55.4765625, 91.93264248704664, 748.5416666666666, 55.411949685534594, 62.80714285714286, 175.1764705882353, 84.80327868852459, 52.58383233532934, 215.63855421686748, 54.30246913580247, 492.3636363636364, 155.3846153846154, 641.75, 86.32682926829268, 351.7647058823529]) #number of pauses # pauses = np.array([631, 171, 506, 76, 124, 415, 576, 890, 14, 25, 74, 630, 410, 599, 115, 52, 256, 193, 24, 318, 280, 102, 61, 334, 83, 324, 22, 39, 28, 205, 51])