|
@@ -30,7 +30,7 @@
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": 2,
|
|
|
+ "execution_count": 1,
|
|
|
"metadata": {},
|
|
|
"outputs": [
|
|
|
{
|
|
@@ -96,7 +96,10 @@
|
|
|
" # start stream if not active yet\n",
|
|
|
" if not stream.active:\n",
|
|
|
" print(\"Audio input stream started.\")\n",
|
|
|
+ " t0 = time.time()\n",
|
|
|
" stream.start()\n",
|
|
|
+ " with open(cfg['csv_path'], 'a') as f:\n",
|
|
|
+ " f.write(\",\".join([str(x) for x in (t0,)]) + \"\\n\")\n",
|
|
|
"\n",
|
|
|
" f.write(MicrophoneController.queue.get())\n",
|
|
|
"\n",
|