Delete the stray ~ folder in site-packages, run pip cache purge, then install the correct PyAudio wheel for Python 3.11 from Gohlke’s site using python -m pip install <whl> instead of pip install pyaudio
~
site-packages
pip cache purge
python -m pip install <whl>
pip install pyaudio