You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
1 Hi-Fi Cable Output (VB-Audio Hi, MME (2 in, 0 out)
2 立体声混音 (Realtek(R) Audio), MME (2 in, 0 out)
3 CABLE Output (VB-Audio Virtual , MME (2 in, 0 out)
4 麦克风阵列 (Realtek(R) Audio), MME (2 in, 0 out)
5 Microsoft 声音映射器 - Output, MME (0 in, 2 out)
6 Hi-Fi Cable Input (VB-Audio Hi-, MME (0 in, 2 out)
7 CABLE Input (VB-Audio Virtual C, MME (0 in, 2 out)
8 主声音捕获驱动程序, Windows DirectSound (2 in, 0 out)
9 Hi-Fi Cable Output (VB-Audio Hi-Fi Cable), Windows DirectSound (2 in, 0 out)
10 立体声混音 (Realtek(R) Audio), Windows DirectSound (2 in, 0 out)
11 CABLE Output (VB-Audio Virtual Cable), Windows DirectSound (2 in, 0 out)
12 麦克风阵列 (Realtek(R) Audio), Windows DirectSound (2 in, 0 out)
13 主声音驱动程序, Windows DirectSound (0 in, 2 out)
14 Hi-Fi Cable Input (VB-Audio Hi-Fi Cable), Windows DirectSound (0 in, 2 out)
15 CABLE Input (VB-Audio Virtual Cable), Windows DirectSound (0 in, 2 out)
16 ASIO4ALL v2, ASIO (2 in, 2 out)
17 CABLE Input (VB-Audio Virtual Cable), Windows WASAPI (0 in, 2 out)
18 Hi-Fi Cable Input (VB-Audio Hi-Fi Cable), Windows WASAPI (0 in, 2 out)
19 立体声混音 (Realtek(R) Audio), Windows WASAPI (2 in, 0 out)
20 CABLE Output (VB-Audio Virtual Cable), Windows WASAPI (2 in, 0 out)
21 Hi-Fi Cable Output (VB-Audio Hi-Fi Cable), Windows WASAPI (2 in, 0 out)
22 麦克风阵列 (Realtek(R) Audio), Windows WASAPI (2 in, 0 out)
23 Speakers (Realtek HD Audio output), Windows WDM-KS (0 in, 2 out)
24 麦克风阵列 (Realtek HD Audio Mic input), Windows WDM-KS (2 in, 0 out)
25 立体声混音 (Realtek HD Audio Stereo input), Windows WDM-KS (2 in, 0 out)
26 Hi-Fi Cable Output (VB-Audio Hi-Fi Cable), Windows WDM-KS (8 in, 0 out)
27 Speakers (VB-Audio Hi-Fi Cable), Windows WDM-KS (0 in, 8 out)
28 CABLE Output (VB-Audio Point), Windows WDM-KS (8 in, 0 out)
29 Speakers (VB-Audio Point), Windows WDM-KS (0 in, 8 out)
I wonder if it's possible for sounddevice to have two separate ASIO devices such as the following?
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: