I am trying to install deepspeech and to use the mic input it depends on pyaudio
which depends on portaudio.h
. But even after installing portaudio
by adding it to the system packages in configuration.nix, I get the error saying:
fatal error: portaudio.h: No such file or directory
How can I install pyaudio and portaudio?
I looked online and I found this but it doesn’t work because nix works differently and the header files are not stored in usr/include
:
pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio
Can someone help me understanding how this can be solved?