fix: always use 1 audio channel
Before, I chose the number of audio channels that the microphone supports. Should be 1. ref: N25B-119
This commit is contained in:
@@ -58,7 +58,7 @@ class AudioStreaming:
|
|||||||
|
|
||||||
stream = self.audio.open(
|
stream = self.audio.open(
|
||||||
format=pyaudio.paFloat32,
|
format=pyaudio.paFloat32,
|
||||||
channels=self.microphone["maxInputChannels"],
|
channels=1,
|
||||||
rate=16000,
|
rate=16000,
|
||||||
input=True,
|
input=True,
|
||||||
input_device_index=self.microphone["index"],
|
input_device_index=self.microphone["index"],
|
||||||
|
|||||||
Reference in New Issue
Block a user