Open bruadam opened 3 months ago
Seems like you have a m1/m2 mac, and your port audio is intel x86
did you install portaudio with homebrew?
Download the brew package manager by following the instructions at https://brew.sh/.
brew install portaudio
This is what I got when I tried to change the hotkeys. I guess an issue with the macOS architecture 🤷🏻♂️
(venv) (base) ➜ faster-whisper-dictation git:(main) ✗ python3 dictation.py -m small --key-combo="<ctrl>+<alt>+y" Could not import the PyAudio C module 'pyaudio._portaudio'. Traceback (most recent call last): File "/Users/brunoadam/faster-whisper-dictation/dictation.py", line 6, in <module> import pyaudio File "/Users/brunoadam/faster-whisper-dictation/venv/lib/python3.11/site-packages/pyaudio/__init__.py", line 111, in <module> import pyaudio._portaudio as pa ImportError: dlopen(/Users/brunoadam/faster-whisper-dictation/venv/lib/python3.11/site-packages/pyaudio/_portaudio.cpython-311-darwin.so, 0x0002): tried: '/Users/brunoadam/faster-whisper-dictation/venv/lib/python3.11/site-packages/pyaudio/_portaudio.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/brunoadam/faster-whisper-dictation/venv/lib/python3.11/site-packages/pyaudio/_portaudio.cpython-311-darwin.so' (no such file), '/Users/brunoadam/faster-whisper-dictation/venv/lib/python3.11/site-packages/pyaudio/_portaudio.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))