Raspberry Pi4 Buster precise-listen - choose a different device index input
After hours i managed to install all the requirements on my raspberry pi 4 buster..and get some things running.. although i managed to change the device_index=
XX------------------------------------------------------------------------------
You can hardcode input_device_index=MY_INDEX in right here. Alternatively, if you'd like to submit a pull request, you'd want to pass a custom stream=stream into here where the custom stream is:
stream = PyAudio().open(
16000, 1, paInt16, True, frames_per_buffer=self.chunk_size,
input_device_index=args.input_device_index
)
with a new :-idi --input-device-index - field in the usage string.
You can hardcode
input_device_index=MY_INDEXin right here. Alternatively, if you'd like to submit a pull request, you'd want to pass a customstream=streaminto here where the custom stream is:stream = PyAudio().open( 16000, 1, paInt16, True, frames_per_buffer=self.chunk_size, input_device_index=args.input_device_index )with a new
:-idi --input-device-index -field in the usage string.
thankx Matthew that works :D