bjtommychen / keras_deepspeech2_speechrecognition Goto Github PK
View Code? Open in Web Editor NEWDo SpeechRecognition using DeepSpeech2, backend using Keras.
License: MIT License
Do SpeechRecognition using DeepSpeech2, backend using Keras.
License: MIT License
Hello, When I used your code, I got the trackback info as following? Do you konw how to solve it ?
Thanks in advance.
WARNING: libdeepspeech failed to load, resorting to deprecated code
Refer to README.md for instructions on installing libdeepspeech
------------------------------------------------------------------------
Traceback (most recent call last):
File "Keras_DS2_SpeechRecognition.py", line 330, in <module>
do_train_ds2_CTC()
File "Keras_DS2_SpeechRecognition.py", line 261, in do_train_ds2_CTC
validation_data=gen_ctc_byclass(validGen), validation_steps=validGen.numSteps, verbose=VERBOSE)
File "/root/anaconda3/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/root/anaconda3/lib/python3.6/site-packages/keras/engine/training.py", line 1418, in fit_generator
initial_epoch=initial_epoch)
File "/root/anaconda3/lib/python3.6/site-packages/keras/engine/training_generator.py", line 181, in fit_generator
generator_output = next(output_generator)
File "/root/anaconda3/lib/python3.6/site-packages/keras/utils/data_utils.py", line 709, in get
six.reraise(*sys.exc_info())
File "/root/anaconda3/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/root/anaconda3/lib/python3.6/site-packages/keras/utils/data_utils.py", line 685, in get
inputs = self.queue.get(block=True).get()
File "/root/anaconda3/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
File "/root/anaconda3/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/root/anaconda3/lib/python3.6/site-packages/keras/utils/data_utils.py", line 626, in next_sample
return six.next(_SHARED_SEQUENCES[uid])
File "Keras_DS2_SpeechRecognition.py", line 164, in gen_ctc_byclass
a_mfccs, a_mfcclens, a_label, a_labelen, wavfilenames = dataGen.__next__()
File "Keras_DS2_SpeechRecognition.py", line 134, in __next__
self.data[self.batchPointer: self.batchPointer + thislen])
File "Keras_DS2_SpeechRecognition.py", line 151, in getNextSplitData
a_mfccs, a_mfcclens = _get_files_mfcc(wav_filenames)
File "Keras_DS2_SpeechRecognition.py", line 97, in _get_files_mfcc
this_mfcc = audiofile_to_input_vector(audio_fname, n_input, n_context)
File "/data/code/Keras_DeepSpeech2_SpeechRecognition/util/audio.py", line 68, in audiofile_to_input_vector
return audioToInputVector(audio, fs, numcep, numcontext)
File "/data/code/Keras_DeepSpeech2_SpeechRecognition/util/audio.py", line 35, in audioToInputVector
features = np.concatenate((empty_context, features, empty_context))
ValueError: all the input array dimensions except for the concatenation axis must match exactly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.