Skip to content

Realtime crashes when Start audio conversion with OBS opened #2865

Description

@brainWave4

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions