I am trying in get pyaudio working on my Mac mini M1
pi@pi-mini ~ % python3 Python 3.9.5 (default, May 3 2021, 19:12:05) [Clang 12.0.5 (clang-1205.0.22.9)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import pyaudio Could not import the PyAudio C module '_portaudio'. Traceback (most recent call last): File "", line 1, in File "/opt/homebrew/lib/python3.9/site-packages/pyaudio.py", line 116, in import _portaudio as pa ImportError: dlopen(/opt/homebrew/lib/python3.9/site-packages/_portaudio.cpython-39-darwin.so, 2): no suitable image found. Did find: /opt/homebrew/lib/python3.9/site-packages/_portaudio.cpython-39-darwin.so: mach-o, but wrong architecture /opt/homebrew/lib/python3.9/site-packages/_portaudio.cpython-39-darwin.so: mach-o, but wrong architecture
any idea what I need to do to fix this?