From 701448c9c2f4814b5b0658077994ef2b790b9482 Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 27 Apr 2023 12:00:06 -0700 Subject: [PATCH] adding in print statement for disecting what's happening --- mic_hat_examples/recording_examples/record.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mic_hat_examples/recording_examples/record.py b/mic_hat_examples/recording_examples/record.py index 549f793..5482948 100644 --- a/mic_hat_examples/recording_examples/record.py +++ b/mic_hat_examples/recording_examples/record.py @@ -2,7 +2,7 @@ import pyaudio import wave RESPEAKER_RATE = 16000 -RESPEAKER_CHANNELS = 2 +RESPEAKER_CHANNELS = 2 RESPEAKER_WIDTH = 2 # run getDeviceInfo.py to get index RESPEAKER_INDEX = 1 # refer to input device id @@ -25,6 +25,7 @@ frames = [] for i in range(0, int(RESPEAKER_RATE / CHUNK * RECORD_SECONDS)): data = stream.read(CHUNK) + print("read a chunk") frames.append(data) print("* done recording")