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

Error while executing #1

Closed Arunpoochelvan closed 5 years ago

Arunpoochelvan commented 5 years ago

PraatError Traceback (most recent call last)

in ----> 1 mysp.myspgend(p,c) c:\users\apoochelvan\audio\lib\site-packages\myprosody\__init__.py in myspgend(m, p) 245 sourcerun=p+"/"+"dataset"+"/"+"essen"+"/"+"myspsolution.praat" 246 path=p+"/"+"dataset"+"/"+"audioFiles"+"/" --> 247 objects= run_file(sourcerun, -20, 2, 0.3, "yes",sound,path, 80, 400, 0.01, capture_output=True) 248 print (objects[0]) # This will print the info from the sound object, and objects[0] is a parselmouth.Sound object 249 z1=str( objects[1]) # This will print the info from the textgrid object, and objects[1] is a parselmouth.Data object with a TextGrid inside PraatError: Unknown variable: « (ln(f_one Script line 295 not performed or completed: « lnf0 = (ln(f_one)-5.65)/0.31 » Script not completed.
Shahabks commented 5 years ago

I think you need to train the model on your own machine. I will have uploaded a repository by Feb 9 here, be called " myMLalgo". Please use that algorithm/program and train your machine locally, save the models (i will write about it there)......It will work

Shahabks commented 5 years ago

@Arunpoochelvan I revised the script, please download the new version of myprosody. However, the error you ran into must do with "Voice not recognized" or "the sound of the audio was not clear"

Please try again and let me know your experience