Open kylefoley76 opened 4 years ago
The same issue on my side error which I am getting is Try again the sound of the audio was not clear. The quality of the audio is very good we recorded it very clearly.
File : https://drive.google.com/file/d/134YCya5vq79P0bMP2kiF0kJhiw-EZUXw/view?usp=sharing
try this instead
mysp=import("my-voice-analysis") p="help" # Audio File title c = r"/users/kylefoley/codes/pcode/speech_recognition/" mysp.myspsyl(p,c)
As @matthewlkey mentioned the path should be initiated with "r". @kylefoley76 Also, please note that the length of your audio should not be shorten as 10 secs.
I face the same problem My audio is more than 10 secs and its quality is very good and i follow the rules related to path but i stuck at the same problem
please note that 1- Both My-Voice-Analysis and Myprosody work on Python 3.7 2- If you install My-Voice-Analysis through PyPi, please use: mysp=import("my-voice-analysis") instead of import myspsolution as mysp 3- It it better to keep the folder names as single entities for instance "Name_Folder" or "NameFolder" without space in the dirctoy path And these repos were tested on Windows
I have found out a solution which worked for me
import librosa
import soundfile as sf
y, s = librosa.load('YOUR_AUDIO_FILE_NAME.wav', sr=44100)
sf.write('NEW_AUDIO_FILE.wav',y,s)
mysp=import("my-voice-analysis")? Can import be used as an expression in python? Sorry, I'm a new hand
I tried to get the software to calculate the number of syllables in an audio which simply said 'help me' and I got back 'Try again the sound of the audio was not clear'. here is the audio file
https://drive.google.com/file/d/15eI21DDtWC8waJfjuHrUdhKmzwGV1zkq/view?usp=sharing
and here is the code I used: mysp=import("my-voice-analysis") p="help.wav" # Audio File title c = '/users/kylefoley/codes/pcode/speech_recognition/' mysp.myspsyl(p,c)