Shahabks / my-voice-analysis

My-Voice Analysis is a Python library for the analysis of voice (simultaneous speech, high entropy) without the need of a transcription. It breaks utterances and detects syllable boundaries, fundamental frequency contours, and formants.
https://shahabks.github.io/my-voice-analysis/
MIT License
296 stars 91 forks source link

does not work #11

Open kylefoley76 opened 4 years ago

kylefoley76 commented 4 years ago

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)

durgadp commented 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

matthewlkey commented 4 years ago

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)

Shahabks commented 3 years ago

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.

mennatallah644 commented 3 years ago

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

Shahabks commented 3 years ago

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

Jaynil1611 commented 3 years ago

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)
ZHUBAJIEJIU commented 2 years ago

mysp=import("my-voice-analysis")? Can import be used as an expression in python? Sorry, I'm a new hand