nipunmanral / Spoken-Language-Identification

Implement a GRU/LSTM model using Keras, and train it to classify the languages using MFCC features
27 stars 16 forks source link

Update language_identification.py #2

Open deibraz-free opened 4 years ago

deibraz-free commented 4 years ago

Added functionality to extrect MFCCs automatically from all available .wav files. Added option to toggle out feature extraction

saitarunmandiga commented 3 years ago

but i am still getting error

saitarunmandiga commented 3 years ago

ValueError Traceback (most recent call last)

in () 93 del list_mandarin_mfcc 94 ---> 95 X_train, X_val, Y_train, Y_val = train_test_split(X_train, Y_train, test_size=0.2) 96 97 with h5py.File("mfcc_dataset.hdf5", 'w') as hf: 2 frames /usr/local/lib/python3.7/dist-packages/sklearn/utils/validation.py in check_consistent_length(*arrays) 210 if len(uniques) > 1: 211 raise ValueError("Found input variables with inconsistent numbers of" --> 212 " samples: %r" % [int(l) for l in lengths]) 213 214
qnihat commented 3 years ago

ValueError Traceback (most recent call last) in () 93 del list_mandarin_mfcc 94 ---> 95 X_train, X_val, Y_train, Y_val = train_test_split(X_train, Y_train, test_size=0.2) 96 97 with h5py.File("mfcc_dataset.hdf5", 'w') as hf:

2 frames /usr/local/lib/python3.7/dist-packages/sklearn/utils/validation.py in check_consistent_length(*arrays) 210 if len(uniques) > 1: 211 raise ValueError("Found input variables with inconsistent numbers of" --> 212 " samples: %r" % [int(l) for l in lengths]) 213 214

Hi, did anyone solved this problem?

saitarunmandiga commented 3 years ago

ValueError Traceback (most recent call last) in () 93 del list_mandarin_mfcc 94 ---> 95 X_train, X_val, Y_train, Y_val = train_test_split(X_train, Y_train, test_size=0.2) 96 97 with h5py.File("mfcc_dataset.hdf5", 'w') as hf: 2 frames /usr/local/lib/python3.7/dist-packages/sklearn/utils/validation.py in check_consistent_length(*arrays) 210 if len(uniques) > 1: 211 raise ValueError("Found input variables with inconsistent numbers of" --> 212 " samples: %r" % [int(l) for l in lengths]) 213 214

Hi, did anyone solved this problem?

no did you

TECKZITE commented 2 years ago

ValueError Traceback (most recent call last) in () 93 del list_mandarin_mfcc 94 ---> 95 X_train, X_val, Y_train, Y_val = train_test_split(X_train, Y_train, test_size=0.2) 96 97 with h5py.File("mfcc_dataset.hdf5", 'w') as hf: 2 frames /usr/local/lib/python3.7/dist-packages/sklearn/utils/validation.py in check_consistent_length(*arrays) 210 if len(uniques) > 1: 211 raise ValueError("Found input variables with inconsistent numbers of" --> 212 " samples: %r" % [int(l) for l in lengths]) 213 214

Hi, did anyone solved this problem?

no did you

I am also getting same error,could anyone resolve it