Updated example notebook
"\n",
"CHANNELS = 1\n",
"RATE = 16000\n",
- "CHUNK_SIZE = int(2*RATE)\n",
+ "DURATION = 2.0\n",
+ "CHUNK_SIZE = int(DURATION*RATE)\n",
"\n",
"p = pa.PyAudio()\n",
"\n",
" signal = np.frombuffer(in_data, dtype=np.int16)\n",
" plot.data_source.data['y'] = signal\n",
" push_notebook()\n",
- " pred = asr.greedy_merge(asr.transcribe(signal))\n",
+ " pred = asr.transcribe(signal)\n",
" if len(pred.strip()):\n",
" print('\"{}\"'.format(pred))\n",
" return (in_data, pa.paContinue)\n",
