Can't get the ReSpeaker 2 mics to work on my Rpi 3B+

I was using speech_recognition library to record from a USB microphone. Now I want to use the microphones on the ReSpeaker instead. I’ve installed all of the libraries and followed the set up instructions. I was able to get it to record using arecord -f cd -Dhw:2 test.wav, but it didn’t work in python when using the speech_recognition library. I did a full OS upgrade and now arecord isn’t working. I set The ReSpeaker as the default input in Pulse Audio, I also tried passing the microphone’s index number:

r = sr.Recognizer()
with sr.Microphone(device_index=2) as source:
audio = r.listen(source,phrase_time_limit=4)

The output jack is working.

I’m thinking of wiping out the SD card and starting from scratch. Any ideas before I do that?

I’m giving up on this device after two full days of trying to get it to work. It seemed simple enough - use the built-in mics with speech_recognition, and use the output jack with omxplayer. What a waste of time and money.

I found the problem but don’t yet have a workaround. I’m using GPIO-18 to power an LED. That line of code causes the Respeaker not to work.