You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
threshold = 80
i = 0
MIC_PITCH = []
for filename in os.listdir (os.path.join ('/ DATASET / MIC /')):
if filename! = '.DS_Store':
snd = parselmouth.Sound ('/ DATASET / MIC /' + str (i) + '. wav')
pitch = snd.to_pitch ()
pitch_values = pitch.selected_array ['frequency']
MIC_PITCH.append (np.mean (pitch_values [pitch_values> threshold]))
i = i + 1
It works fine as long as the .wav files contain voices with frequencies below 500 Hz but if I pass a frequency of 800 hz it gives me 400 hz as MIC_PITCH, you can understand why
Thank you
Mimmo
The text was updated successfully, but these errors were encountered:
Hi,
I have implemented this cordice of yours
threshold = 80
i = 0
MIC_PITCH = []
for filename in os.listdir (os.path.join ('/ DATASET / MIC /')):
if filename! = '.DS_Store':
snd = parselmouth.Sound ('/ DATASET / MIC /' + str (i) + '. wav')
pitch = snd.to_pitch ()
pitch_values = pitch.selected_array ['frequency']
MIC_PITCH.append (np.mean (pitch_values [pitch_values> threshold]))
i = i + 1
It works fine as long as the .wav files contain voices with frequencies below 500 Hz but if I pass a frequency of 800 hz it gives me 400 hz as MIC_PITCH, you can understand why
Thank you
Mimmo
The text was updated successfully, but these errors were encountered: