Shahabks / myprosody

A Python library for measuring the acoustic features of speech (simultaneous speech, high entropy) compared to ones of native speech.
https://shahabks.github.io/myprosody/
MIT License
232 stars 63 forks source link

Question on run_file parameters #24

Open ichenjia opened 2 years ago

ichenjia commented 2 years ago

from parselmouth.praat import call, run_file

Not sure what's going on. I tried to look up run_file from parselmouth and couldn't get much out of their documentation.

This line is used by almost every function:

run_file(sourcerun, -20, 2, 0.3, "yes",sound,path, 80, 400, 0.01, capture_output=True)

Can someone explanation to me what each of these parameters are?

Thank you!

hebo1982 commented 2 years ago

You can read this link: https://parselmouth.readthedocs.io/en/stable/api_reference.html#parselmouth.praat.run_file

these parameters can find at the script file "MLTRNL.praat"

form Counting Syllables in Sound Utterances
   real Silence_threshold_(dB) 
   real Minimum_dip_between_peaks_(dB) 
   real Minimum_pause_duration_(s) 
   boolean Keep_Soundfiles_and_Textgrids 
   sentence soundin  
   sentence directory 
   positive Minimum_pitch_(Hz) 
   positive Maximum_pitch_(Hz) 
   positive Time_step_(s) 
endform