-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use sounddevice with virtual audio device and minimize latency #520
Comments
I don't know what could cause the ASIO error, could you please provide fully reproducible (but ideally minimal) code and the full error output? If ASIO doesn't work for you, you could also try WASAPI. You should get good latency with the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, not sure if this is the right place to ask (and sorry if it's not), but has anyone used sounddevice with a virtual audio device on a Windows machine to play audio files, and has experience with minimizing latency? In particular using sounddevice with ASIO.
I'm using sounddevice on a Windows machine to build a system, in which an audio file in WAV format is played (silently) using
sd.play(...)
through the microphone using VB-Audio Cable and sent over the Internet, and a voice signal is later received from the Internet by the virtual output device.My goal is to minimize latency. One thing I'm now trying is to use ASIO with the virtual audio devices, since I know ASIO is preferred for low-latency audio on Windows, but I'm having some trouble getting that to work. I have installed ASIO4ALL and VB-Audio ASIO Bridge. However, when I run
sd.query_devices()
, unlike with MME, WASAPI etc. where it shows two virtual audio devices (one for input and one for output), for ASIO there is only one device (#16 below):I wonder if it's possible for sounddevice to have two separate ASIO devices such as the following?
Following is my current code to play audio using ASIO:
and with the above I'm getting an error:
('Error opening OutputStream: Unanticipated host error', -9999, (2, 0, 'Failed to load ASIO driver'))
Any help is appreciated. I'm looking for help to use ASIO with sounddevice, but other ways to optimize latency are welcome as well. Thanks in advance.
The text was updated successfully, but these errors were encountered: