RayanWang / Speech_emotion_recognition_BLSTM

Bidirectional LSTM network for speech emotion recognition.
MIT License
260 stars 78 forks source link

TypeError: slice indices must be integers or None or have an __index__ method #21

Closed xiaoxia7806 closed 4 years ago

xiaoxia7806 commented 4 years ago

Hi! Rayan! I'm sorry to disturb you, I have a issue :

python find_best_model.py -d "berlin" -p E:\TensorFlow\Emo-DB\wav -l -e -c 7 Using TensorFlow backend. Writing berlin data set to file... Traceback (most recent call last): File "find_best_model.py", line 167, in extract_dataset(ds.data, nb_samples=len(ds.targets), dataset=dataset) File "E:\TensorFlow\GitHub\Speech_emotion_recognition_BLSTM-master\utility\audio.py", line 75, in extract_dataset hr_pitch = ShortTermFeatures.speed_feature(x, Fs, globalvars.frame_size Fs, globalvars.step Fs) File "C:\Users\asus\Anaconda3\envs\tensorflow\lib\site-packages\pyAudioAnalysis\ShortTermFeatures.py", line 485, in speed_feature x = signal[cur_p:cur_p + window] TypeError: slice indices must be integers or None or have an index method

please help me about that! Thanks very much!

fathimad11 commented 4 years ago

how you correct this