Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with your project #1

Open
MimmoGhi opened this issue Oct 24, 2022 · 0 comments
Open

Problem with your project #1

MimmoGhi opened this issue Oct 24, 2022 · 0 comments

Comments

@MimmoGhi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant