I resolved this issue with the following: sudo apt install portaudio19-dev The WSL2 Ubuntu-22.04 did not have portaudio installed. The portaudio.h file is provided by portaudio19-dev package. The file list of that package can be found here https://packages.ubuntu.com/jammy/amd64/portaudio19-dev/filelist.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)