#2725 OSError: PortAudio library not found

14.145* Posted at: 3 hours ago 👁6

Traceback (most recent call last):
File "/home/data/software/whisperx/pyvideotrans/videotrans/mainwin/_main_win.py", line 583, in

self.action_realtime_stt.triggered.connect(lambda: self._open_winform('realtime_stt'))

File "/home/data/software/whisperx/pyvideotrans/videotrans/mainwin/_main_win.py", line 668, in _open_winform

from videotrans.component.realtime_stt import RealTimeWindow

File "/home/data/software/whisperx/pyvideotrans/videotrans/component/realtime_stt.py", line 18, in

import sounddevice as sd

File "/home/data/software/whisperx/pyvideotrans/.venv/lib/python3.10/site-packages/sounddevice.py", line 71, in

raise OSError('PortAudio library not found')

OSError: PortAudio library not found


=
system:Linux-6.18.2-x86_64-AMD_Ryzen_AI_9_365_w-_Radeon_880M-with-glibc2.42(Slackware Current)
version:v3.91
frozen:False
language:en
root_dir:/home/data/software/whisperx/pyvideotrans
Python: 3.10.19 (main, Jan 14 2026, 19:36:24) [Clang 21.1.4 ]

1 Replies

This error indicates that the sounddevice Python library cannot find the required PortAudio system library, which is necessary for the real-time speech-to-text feature. Since you are using Linux, you need to install the PortAudio development package.

To resolve this, please install portaudio using your system's package manager. The exact command depends on your distribution:

  • For Debian/Ubuntu-based systems:

    sudo apt update && sudo apt install portaudio19-dev
  • For Fedora/RHEL-based systems:

    sudo dnf install portaudio-devel
  • For Arch Linux:

    sudo pacman -S portaudio
  • For Slackware (your system):
    You may need to find and install the PortAudio package from your distribution's repositories or compile it from source. A common source is http://www.portaudio.com/download.html.

After installing the system library, restart the pyVideoTrans application. The real-time speech-to-text feature should then work.

If the issue persists after installation, ensure your Python virtual environment is reactivated.

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions