ReSpeaker 4-mic conflit with Adafruit Audio Bonnet

Raspberry: Zero w2
OS: Bullseye 32 lite

1- installed VOSK STT
2- installed the ReSpeaker
2- tested with VOSK example and my application, all OK
3- installed the Adafruit Bonnet
a- the audio output using aplay works well
b- the VOSK application get “audio device unavailable”
5- I am a newbie in the area of linux and I don’t know where to
put my hands, please help me.


the error:

PortAudioError: Error querying device -1

is arised by the following lines of VOSK example

if args.samplerate is None:
device_info = sd.query_devices(args.device, ‘input’)
# soundfile expects an int, sounddevice provides a float:
args.samplerate = int(device_info[‘default_samplerate’])

arecord -l
before install Adafruit, reports

**** List of CAPTURE Hardware Devices ****
card 1: seeed4micvoicec [seeed-4mic-voicecard], device 0: bcm2835-i2s-ac10x-codec0 ac10x-codec0-0 [bcm2835-i2s-ac10x-codec0 ac10x-codec0-0]
Subdevices: 1/1
Subdevice #0: subdevice #0

… and after install Adafruit