Hi,
Context:
I have prepared an SD card boot setup for the i.MX8M Plus platform. My goal is to install PyAudio and run a real-time speech-to-text application using OpenAI's services.
While doing this
when i try to record or play an audio using the commands
arecord -D sysdefault:CARD=wm8960audio -f cd -t wav -d 5 MJ_recorded.wav
aplay -D sysdefault:CARD=wm8960audio MJ_recorded.wav
is working well
Below is the screenshot for sound devices listed using aplay

while,
trying to get the sound devices list using pyaudio i got nothing
(Installation done by usng pip install pyaudio)
code i have used :
import pyaudio
p = pyaudio.PyAudio()
print("Available Audio Devices:")
for i in range(p.get_device_count()):
info = p.get_device_info_by_index(i)
print(f"Device {i}: {info['name']}")
the above code doesnt list anything...
Kindly give me some suggestions...
TIA