EN10 / Speech-to-Text-WaveNet

Speech to Text
5 stars 1 forks source link

Error while running recognize.py #2

Closed atanumandal0491 closed 5 years ago

atanumandal0491 commented 5 years ago

health@health-desktop:~/Desktop/lang_detec/Speech-to-Text-WaveNet-master$ python recognize.py --file test.wav /usr/local/lib/python2.7/dist-packages/numba/errors.py:104: UserWarning: Insufficiently recent colorama version found. Numba requires colorama >= 0.3.9 warnings.warn(msg) INFO:tensorflow:0121:18:16:26.521:data.py:41] VCTK vocabulary loaded. Traceback (most recent call last): File "recognize.py", line 92, in mfcc = np.transpose(np.expand_dims(librosa.feature.mfcc(wav, sr), axis=0), [0, 2, 1]) File "/usr/local/lib/python2.7/dist-packages/librosa/feature/spectral.py", line 1279, in mfcc S = power_to_db(melspectrogram(y=y, sr=sr, kwargs)) File "/usr/local/lib/python2.7/dist-packages/librosa/feature/spectral.py", line 1371, in melspectrogram mel_basis = filters.mel(sr, n_fft, kwargs) File "/usr/local/lib/python2.7/dist-packages/librosa/filters.py", line 238, in mel lower = -ramps[i] / fdiff[i] ValueError: operands could not be broadcast together with shapes (1,1025) (0,)

atanumandal0491 commented 5 years ago

just upgraded the librosa and it is working. Thanks