From 73cc85fdebba585c7380afcf2aa507243c813df8 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 29 Apr 2023 16:08:18 -0700 Subject: [PATCH] fixing bugs and changing device --- audio/audio.py | 2 +- mic_hat_examples/recording_examples/record.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/audio/audio.py b/audio/audio.py index c51c743..8335a42 100644 --- a/audio/audio.py +++ b/audio/audio.py @@ -8,7 +8,7 @@ RESPEAKER_RATE = 16000 RESPEAKER_CHANNELS = 2 RESPEAKER_WIDTH = 2 # run getDeviceInfo.py to get index -RESPEAKER_INDEX = 1 # refer to input device id +RESPEAKER_INDEX = 0 # refer to input device id CHUNK = 1024 WAVE_OUTPUT_FILENAME = "output.wav" diff --git a/mic_hat_examples/recording_examples/record.py b/mic_hat_examples/recording_examples/record.py index 3867aad..5482948 100644 --- a/mic_hat_examples/recording_examples/record.py +++ b/mic_hat_examples/recording_examples/record.py @@ -26,7 +26,6 @@ frames = [] for i in range(0, int(RESPEAKER_RATE / CHUNK * RECORD_SECONDS)): data = stream.read(CHUNK) print("read a chunk") - print(data.length) frames.append(data) print("* done recording")