[GH-ISSUE #2865] Realtime crashes when Start audio conversion with OBS opened #2066

Open
opened 2026-10-20 10:14:15 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @brainWave4 on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2865

I'm testing whether realtime works when I open my obs since I can hear my mic there, but when I clicked Start audio conversion, it crashes I got an error on my terminal:

Traceback (most recent call last):
  File "/.../RVC/realtime_gui.py", line 1021, in <module>
    gui = GUI()
          ^^^^^
  File "/.../RVC/realtime_gui.py", line 81, in __init__
    self.launcher()
  File "/.../RVC/realtime_gui.py", line 414, in launcher
    self.event_handler()
  File "/.../RVC/realtime_gui.py", line 448, in event_handler
    self.start_vc()
  File "/.../RVC/realtime_gui.py", line 682, in start_vc
    self.start_stream()
  File "/.../RVC/realtime_gui.py", line 767, in start_stream
    self.stream = sd.Stream(
                  ^^^^^^^^^^
  File "/.../RVC/.venv/lib/python3.12/site-packages/sounddevice.py", line 1843, in __init__
    _StreamBase.__init__(self, kind='duplex', wrap_callback='array',
  File "/.../RVC/.venv/lib/python3.12/site-packages/sounddevice.py", line 915, in __init__
    _check(_lib.Pa_OpenStream(self._ptr, iparameters, oparameters,
  File "/.../RVC/.venv/lib/python3.12/site-packages/sounddevice.py", line 2839, in _check
    raise PortAudioError(errormsg, err)
sounddevice.PortAudioError: Error opening Stream: Device unavailable [PaErrorCode -9985]

This happens when I set my input to "USB 2.0..." because that's what my mic is connected to. It also happens when I set my output to headphones.

Originally created by @brainWave4 on GitHub (Sep 30, 2026). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2865 I'm testing whether realtime works when I open my obs since I can hear my mic there, but when I clicked Start audio conversion, it crashes I got an error on my terminal: ``` Traceback (most recent call last): File "/.../RVC/realtime_gui.py", line 1021, in <module> gui = GUI() ^^^^^ File "/.../RVC/realtime_gui.py", line 81, in __init__ self.launcher() File "/.../RVC/realtime_gui.py", line 414, in launcher self.event_handler() File "/.../RVC/realtime_gui.py", line 448, in event_handler self.start_vc() File "/.../RVC/realtime_gui.py", line 682, in start_vc self.start_stream() File "/.../RVC/realtime_gui.py", line 767, in start_stream self.stream = sd.Stream( ^^^^^^^^^^ File "/.../RVC/.venv/lib/python3.12/site-packages/sounddevice.py", line 1843, in __init__ _StreamBase.__init__(self, kind='duplex', wrap_callback='array', File "/.../RVC/.venv/lib/python3.12/site-packages/sounddevice.py", line 915, in __init__ _check(_lib.Pa_OpenStream(self._ptr, iparameters, oparameters, File "/.../RVC/.venv/lib/python3.12/site-packages/sounddevice.py", line 2839, in _check raise PortAudioError(errormsg, err) sounddevice.PortAudioError: Error opening Stream: Device unavailable [PaErrorCode -9985] ``` This happens when I set my input to "USB 2.0..." because that's what my mic is connected to. It also happens when I set my output to headphones.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#2066
No description provided.