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

whenever i run mysp.myprosody(p,c) it says: Try again the sound of the audio was not clear #32

Open
amandeepbaberwal opened this issue Jan 22, 2023 · 9 comments

Comments

@amandeepbaberwal
Copy link

amandeepbaberwal commented Jan 22, 2023

whenever i run mysp.myprosody(p,c) it says: Try again the sound of the audio was not clear, i have tried with different recordings.

Expected behavior
i am trying to get TOEFL Score based on this. Could you please also explain how i can get Fluency of my speech with this? i mean what is the formula i can use to get Fluency
Thanks

@brittmorin
Copy link

I'm experiencing the same error using mysptotal. Any suggestions would be helpful

@amandeepbaberwal
Copy link
Author

and how about Pronunciation_posteriori_probability_score_percentage= :95.12, what is the meaning of that? thanks

@amandeepbaberwal
Copy link
Author

@brittmorin hi did you find any solution for it?

@fifoh
Copy link

fifoh commented Feb 11, 2023

Hi, I had the same error "sound of the audio was not clear", it was not a problem with the audio but with where I had put the folder - working now. Here is what I did:
(1) download folder "myprosody/dataset"
(2) extract
(3) copy folder named "myprosody" from inside "myprosody-master" and put somewhere eg on the desktop
(4) on desktop navigate to myprosody / dataset / audiofiles and put the audio file you want to analyse inside the "audiofiles" folder

Code for 'mysp.myspsr(p,c)':
import myprosody as mysp
p="NAME_OF_YOUR_AUDIO_FILE"
c=r"C:\Users\YOUR_USERNAME\Desktop\myprosody"

and that worked for me

I also had a problem with pickle, solved with pip install pickle-mixin, then import pickle at the start of the code
https://stackoverflow.com/questions/48477949/not-able-to-pip-install-pickle-in-python-3-6

@amandeepbaberwal
Copy link
Author

amandeepbaberwal commented Feb 12, 2023

@fifoh all of my functions are are working except mysp.mysplev and myprosody. Can you confirm if either of them are working for you?

@Delara-Forghani
Copy link

I have the same issue!

@brittmorin
Copy link

The error message 'Try again the sound of the audio was not clear' is a catch-all error message and does not necessarily mean the issue is the audio. What worked for me was instead of installing the python library version was downloading the entire repo to my machine and then altering the code where the functions are written. I did try and except with exception as:

except Exception as e:
print(f'Error encountered: {e}')

This gives me the actual python error. A lot of the time my issue was that I wasn't giving the correct paths to my files.

So first, I removed the p variable and just gave m when calling the function and sound variable was always equal to m. This made it so I could just give the entire path at once and didn't have to split it up.

Variable sourcerun should always be leading directly to the myspolution.praat file in your directory. Give it the entire path.

Finally, I changed my path from the audio file folder provided and changed it to where I was already keeping my wav files.

@maddy-nit
Copy link

@amandeepbaberwal did you manage to solve this issue. All of my functions are are working except mysp.mysplev and myprosody.
On debugging the issue, MLTRNL.praat is giving the following error:

error :  Stray text after 'else'.
Script line 324 not performed or completed:
« else vsa=vsa+0  »
Script not completed.

which was resulting "Try again the sound of the audio was not clear"

@eunjiwang2728
Copy link

Same issue! When using mysp.myprosody(), I had error 'parselmouth.PraatError'.

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

6 participants