I added the requirements:
tools/python/3.10
(I think Python 3.10 should be fine)apt/python-pyaudio
(with that included I created the module for this including an switch_os since anything below ubuntu 20 also needs the apt package python-pyaudio
)apt/portaudio19-dev
I also added a reference to the python version used for the package so the local python version won't be used and the module becomes more workspace dependant instead of os