domerin0 / rnn-speech

Character level speech recognizer using ctc loss with deep rnns in TensorFlow.
MIT License
77 stars 31 forks source link

ValueError: string size must be a multiple of element size #52

Open yakotaki opened 6 years ago

yakotaki commented 6 years ago

I tried on 2 diffrent computers with Ubuntu 16.04, same bug appears. command: stt.py --record

/usr/local/lib/python3.5/dist-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave 2018-05-20 00:40:00.622977: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA NOW RECORDING... Traceback (most recent call last): File "/home/yakotaki/Desktop/rnn-speech-master/stt.py", line 408, in main() File "/home/yakotaki/Desktop/rnn-speech-master/stt.py", line 50, in main record_and_write(audio_processor, hyper_params) File "/home/yakotaki/Desktop/rnn-speech-master/stt.py", line 350, in record_and_write data = np.fromstring(data) ValueError: string size must be a multiple of element size