python-sounddevice: WDM-KS is broken on Windows 10 via VMware

I tried pip install sounddevice then importing it, on 64 bit windows with 64 bit python - and it wasn’t happy…

C:\Users\stu\Desktop\planar>python
Python 2.7.10rc1 (default, May 10 2015, 18:50:04) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice
Assertion failed!

Program: C:\Python27\python.exe
File: src/hostapi/wdmks/pa_win_wdmks.c, Line 1035

Expression: FALSE

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Reactions: 1
  • Comments: 41 (20 by maintainers)

Most upvoted comments

OK, copying and renaming portaudio_x86.dll in ReleaseMinDependency first and it seemed to work:

C:\Users\stu\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\_sounddevice_data>python 
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32 bit (Intel)] on win32    
Type "help", "copyright", "credits" or "license" for more information.                            
>>> import sounddevice                                                                            
before paHostApiInitializers[0].                                                                  
after paHostApiInitializers[0].                                                                   
before paHostApiInitializers[1].                                                                  
PA - PlatformId = 0x2                                                                             
PA - MajorVersion = 0xa                                                                           
PA - MinorVersion = 0x0                                                                           
PA - PlatformId = 0x2                                                                             
PA - MajorVersion = 0xa                                                                           
PA - MinorVersion = 0x0                                                                           
PA - PlatformId = 0x2                                                                             
PA - MajorVersion = 0xa                                                                           
PA - MinorVersion = 0x0                                                                           
PA - PlatformId = 0x2                                                                             
PA - MajorVersion = 0xa                                                                           
PA - MinorVersion = 0x0                                                                           
PA - PlatformId = 0x2                                                                             
PA - MajorVersion = 0xa                                                                           
PA - MinorVersion = 0x0                                                                           
PA - PlatformId = 0x2                                                                             
PA - MajorVersion = 0xa                                                                           
PA - MinorVersion = 0x0                                                                           
after paHostApiInitializers[1].                                                                   
before paHostApiInitializers[2].                                                                  
after paHostApiInitializers[2].                                                                   
before paHostApiInitializers[3].                                                                  
WASAPI: device idx: 00                                                                            
WASAPI: ---------------                                                                           
WASAPI:0| name[Speakers (VMware VMaudio (VMAUDIO) (WDM))]                                         
WASAPI:0| form-factor[1]                                                                          
WASAPI:0| def.SR[44100] max.CH[2] latency{hi[0.010000] lo[0.010000]}                              
WASAPI: device idx: 01                                                                            
WASAPI: ---------------                                                                           
WASAPI:1| name[Phone Line (VMware VMaudio (VMAUDIO) (WDM))]                                       
WASAPI:1| form-factor[6]                                                                          
WASAPI:1| def.SR[44100] max.CH[1] latency{hi[0.010000] lo[0.010000]}                              
WASAPI: device idx: 02                                                                            
WASAPI: ---------------                                                                           
WASAPI:2| name[Line In (VMware VMaudio (VMAUDIO) (WDM))]                                          
WASAPI:2| form-factor[2]                                                                          
WASAPI:2| def.SR[44100] max.CH[2] latency{hi[0.010000] lo[0.010000]}                              
WASAPI: device idx: 03                                                                            
WASAPI: ---------------                                                                           
WASAPI:3| name[Microphone (VMware VMaudio (VMAUDIO) (WDM))]                                       
WASAPI:3| form-factor[4]                                                                          
WASAPI:3| def.SR[44100] max.CH[1] latency{hi[0.010000] lo[0.010000]}                              
WASAPI: initialized ok                                                                            
after paHostApiInitializers[3].                                                                   
before paHostApiInitializers[4].                                                                  
Setup called                                                                                      
Enum called                                                                                       
noError = 0                                                                                       
Enum called                                                                                       
noError = 1                                                                                       
Device 1 has render alias                                                                         
Device 1 has capture alias                                                                        
Enum called                                                                                       
Interfaces found: 1                                                                               
Device 1 has render alias                                                                         
Device 1 has capture alias                                                                        
Interface 1, Name: V                                                                              
FilterNew: Creating filter 'VMware VMaudio'                                                       
FilterNew: Opening filter...                                                                      
DumpConnectionsAndNodes: connections=6, nodes=3                                                   
  Connection: 0 - FromNode=4294967295,FromPin=0 -> ToNode=0,ToPin=1                               
  Connection: 1 - FromNode=0,FromPin=0 -> ToNode=4294967295,ToPin=1                               
  Connection: 2 - FromNode=4294967295,FromPin=3 -> ToNode=1,ToPin=1                               
  Connection: 3 - FromNode=1,FromPin=0 -> ToNode=4294967295,ToPin=2                               
  Connection: 4 - FromNode=4294967295,FromPin=5 -> ToNode=2,ToPin=1                               
  Connection: 5 - FromNode=2,FromPin=0 -> ToNode=4294967295,ToPin=4                               
  Node: 0 - {507AE360-C554-11D0-8A2B-00A0C9255AC1}                                                
  Node: 1 - {4D837FE0-C555-11D0-8A2B-00A0C9255AC1}                                                
  Node: 2 - {4D837FE0-C555-11D0-8A2B-00A0C9255AC1}                                                
PinNew: Creating pin 0:                                                                           
PinNew: Checking 7 no of dataranges...                                                            
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: Default sample rate = 44100 Hz                                                            
PinNew: Finding topology pin...                                                                   
FindStartConnectionTo: Checking 6 connections...GetConnectedPin: count=3, forward=1, muxPosition=-
GetConnectionTo: Checking 6 connections... (pFrom = 00F09B58)GetConnectionTo: Returning 00F09B68  
PinNew: Getting physical connection...                                                            
PinNew: Physical connection found!                                                                
PinNew: Creating topology filter '\\?\PCI#VEN_1274&DEV_1371&SUBSYS_13711274&REV_02#4&bbf9765&0&208
FilterNew: Creating filter ''                                                                     
FilterNew: Opening filter...                                                                      
DumpConnectionsAndNodes: connections=37, nodes=24                                                 
  Connection: 0 - FromNode=4294967295,FromPin=0 -> ToNode=0,ToPin=1                               
  Connection: 1 - FromNode=0,FromPin=0 -> ToNode=1,ToPin=1                                        
  Connection: 2 - FromNode=1,FromPin=0 -> ToNode=23,ToPin=1                                       
  Connection: 3 - FromNode=4294967295,FromPin=1 -> ToNode=2,ToPin=1                               
  Connection: 4 - FromNode=2,FromPin=0 -> ToNode=3,ToPin=1                                        
  Connection: 5 - FromNode=3,FromPin=0 -> ToNode=23,ToPin=7                                       
  Connection: 6 - FromNode=4294967295,FromPin=1 -> ToNode=22,ToPin=1                              
  Connection: 7 - FromNode=22,FromPin=0 -> ToNode=16,ToPin=6                                      
  Connection: 8 - FromNode=4294967295,FromPin=2 -> ToNode=4,ToPin=1                               
  Connection: 9 - FromNode=4,FromPin=0 -> ToNode=5,ToPin=1                                        
  Connection: 10 - FromNode=5,FromPin=0 -> ToNode=23,ToPin=2                                      
  Connection: 11 - FromNode=4294967295,FromPin=2 -> ToNode=17,ToPin=1                             
  Connection: 12 - FromNode=17,FromPin=0 -> ToNode=16,ToPin=1                                     
  Connection: 13 - FromNode=4294967295,FromPin=3 -> ToNode=6,ToPin=1                              
  Connection: 14 - FromNode=6,FromPin=0 -> ToNode=7,ToPin=1                                       
  Connection: 15 - FromNode=7,FromPin=0 -> ToNode=23,ToPin=3                                      
  Connection: 16 - FromNode=4294967295,FromPin=3 -> ToNode=21,ToPin=1                             
  Connection: 17 - FromNode=21,FromPin=0 -> ToNode=16,ToPin=5                                     
  Connection: 18 - FromNode=4294967295,FromPin=4 -> ToNode=8,ToPin=1                              
  Connection: 19 - FromNode=8,FromPin=0 -> ToNode=9,ToPin=1                                       
  Connection: 20 - FromNode=9,FromPin=0 -> ToNode=23,ToPin=4                                      
  Connection: 21 - FromNode=4294967295,FromPin=4 -> ToNode=18,ToPin=1                             
  Connection: 22 - FromNode=18,FromPin=0 -> ToNode=16,ToPin=2                                     
  Connection: 23 - FromNode=4294967295,FromPin=5 -> ToNode=10,ToPin=1                             
  Connection: 24 - FromNode=10,FromPin=0 -> ToNode=11,ToPin=1                                     
  Connection: 25 - FromNode=11,FromPin=0 -> ToNode=23,ToPin=5                                     
  Connection: 26 - FromNode=4294967295,FromPin=5 -> ToNode=19,ToPin=1                             
  Connection: 27 - FromNode=19,FromPin=0 -> ToNode=16,ToPin=3                                     
  Connection: 28 - FromNode=4294967295,FromPin=6 -> ToNode=12,ToPin=1                             
  Connection: 29 - FromNode=12,FromPin=0 -> ToNode=13,ToPin=1                                     
  Connection: 30 - FromNode=13,FromPin=0 -> ToNode=23,ToPin=6                                     
  Connection: 31 - FromNode=4294967295,FromPin=6 -> ToNode=20,ToPin=1                             
  Connection: 32 - FromNode=20,FromPin=0 -> ToNode=16,ToPin=4                                     
  Connection: 33 - FromNode=23,FromPin=0 -> ToNode=14,ToPin=1                                     
  Connection: 34 - FromNode=14,FromPin=0 -> ToNode=15,ToPin=1                                     
  Connection: 35 - FromNode=15,FromPin=0 -> ToNode=4294967295,ToPin=7                             
  Connection: 36 - FromNode=16,FromPin=0 -> ToNode=4294967295,ToPin=9                             
  Node: 0 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 1 - {02B223C0-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 2 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 3 - {02B223C0-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 4 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 5 - {02B223C0-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 6 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 7 - {02B223C0-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 8 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 9 - {02B223C0-C557-11D0-8A2B-00A0C9255AC1}                                                
  Node: 10 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 11 - {02B223C0-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 12 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 13 - {02B223C0-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 14 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 15 - {02B223C0-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 16 - {2CEAF780-C556-11D0-8A2B-00A0C9255AC1}                                               
  Node: 17 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 18 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 19 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 20 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 21 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 22 - {3A5ACC00-C557-11D0-8A2B-00A0C9255AC1}                                               
  Node: 23 - {DA441A60-C556-11D0-8A2B-00A0C9255AC1}                                               
PinNew: Opening topology filter...PinNew: Checking for output endpoint pin id...                  
FindStartConnectionTo: Checking 37 connections...GetConnectedPin: count=24, forward=1, muxPosition
GetConnectionTo: Checking 37 connections... (pFrom = 03989FB8)GetConnectionTo: Returning 03989FC8 
GetConnectedPin: count=24, forward=1, muxPosition=-1                                              
GetConnectionTo: Checking 37 connections... (pFrom = 03989FC8)GetConnectionTo: Returning 03989FD8 
GetConnectedPin: count=24, forward=1, muxPosition=-1                                              
GetConnectionTo: Checking 37 connections... (pFrom = 03989FD8)GetConnectionTo: Returning 0398A1C8 
GetConnectedPin: count=24, forward=1, muxPosition=-1                                              
GetConnectionTo: Checking 37 connections... (pFrom = 0398A1C8)GetConnectionTo: Returning 0398A1D8 
GetConnectedPin: count=24, forward=1, muxPosition=-1                                              
GetConnectionTo: Checking 37 connections... (pFrom = 0398A1D8)GetConnectionTo: Returning 0398A1E8 
PinNew: Found endpoint pin id 7                                                                   
GetNameFromCategory: USB GUID 0301 -> 'Speakers'                                                  
PinNew: Pin name 'Speakers'                                                                       
PinNew: Releasing topology filter...                                                              
Pin created successfully                                                                          
PinNew: Creating pin 1:                                                                           
PinNew: Not source/sink                                                                           
PinNew: Error -9996                                                                               
PinNew: Creating pin 2:                                                                           
PinNew: Checking 7 no of dataranges...                                                            
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 2                                                                             
PinNew: Format PCM 8 bit supported                                                                
PinNew: Format PCM 16 bit supported                                                               
PinNew: Default sample rate = 44100 Hz                                                            
PinNew: Finding topology pin...                                                                   
FindStartConnectionFrom: Checking 6 connections...GetConnectedPin: count=3, forward=0, muxPosition
GetConnectionFrom: Checking 6 connections... (pTo = 00F09B88)                                     
GetConnectionFrom: Returning 00F09B78                                                             
PinNew: Getting physical connection...                                                            
PinNew: Physical connection found!                                                                
PinNew: Opening topology filter...PinNew: Checking for input endpoint pin id (0)...               
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A028                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A028)                                    
GetConnectionFrom: Returning 0398A018                                                             
PinNew: Found endpoint pin id 1                                                                   
PinNew: Checking for input endpoint pin id (1)...                                                 
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A078                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A078)                                    
GetConnectionFrom: Returning 0398A068                                                             
PinNew: Found endpoint pin id 2                                                                   
GetNameFromCategory: USB GUID 0201 -> 'Microphone'                                                
PinNew: Checking for input endpoint pin id (2)...                                                 
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A0C8                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A0C8)                                    
GetConnectionFrom: Returning 0398A0B8                                                             
PinNew: Found endpoint pin id 3                                                                   
GetNameFromCategory: USB GUID 0603 -> 'Line'                                                      
PinNew: Checking for input endpoint pin id (3)...                                                 
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A118                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A118)                                    
GetConnectionFrom: Returning 0398A108                                                             
PinNew: Found endpoint pin id 4                                                                   
PinNew: Checking for input endpoint pin id (4)...                                                 
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A168                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A168)                                    
GetConnectionFrom: Returning 0398A158                                                             
PinNew: Found endpoint pin id 5                                                                   
GetNameFromCategory: USB GUID 0601 -> 'Analog'                                                    
PinNew: Checking for input endpoint pin id (5)...                                                 
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A1B8                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A1B8)                                    
GetConnectionFrom: Returning 0398A1A8                                                             
PinNew: Found endpoint pin id 6                                                                   
GetNameFromCategory: USB GUID 0601 -> 'Analog'                                                    
PinNew: Checking for input endpoint pin id (6)...                                                 
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 00000000                                                             
PinNew: Done with inputs.                                                                         
PinNew: Setting up 4 inputs                                                                       
PinNew: Setting up input 0...                                                                     
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A028                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A028)                                    
GetConnectionFrom: Returning 0398A018                                                             
PinNew: Input (0) friendly name 'Phone Line'                                                      
PinNew: Setting up input 1...                                                                     
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A078                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A078)                                    
GetConnectionFrom: Returning 0398A068                                                             
PinNew: Input (1) friendly name 'Microphone'                                                      
PinNew: Setting up input 2...                                                                     
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A0C8                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A0C8)                                    
GetConnectionFrom: Returning 0398A0B8                                                             
PinNew: Input (2) friendly name 'Line In'                                                         
PinNew: Setting up input 3...                                                                     
FindStartConnectionFrom: Checking 37 connections...GetConnectedPin: count=24, forward=0, muxPositi
GetNumberOfConnectionsTo: Checking 37 connections...GetConnectionFrom: Checking 37 connections... 
GetConnectionFrom: Returning 0398A118                                                             
GetConnectionFrom: Checking 37 connections... (pTo = 0398A118)                                    
GetConnectionFrom: Returning 0398A108                                                             
PinNew: Input (3) friendly name 'CD Audio'                                                        
PinNew: Releasing topology filter...                                                              
Pin created successfully                                                                          
PinNew: Creating pin 3:                                                                           
PinNew: Not source/sink                                                                           
PinNew: Error -9996                                                                               
PinNew: Creating pin 4:                                                                           
PinNew: Checking 4 no of dataranges...                                                            
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 1                                                                             
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 1                                                                             
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 1                                                                             
PinNew: Format PCM 16 bit supported                                                               
PinNew: DR major format 73647561                                                                  
PinNew: MaxChannel: 1                                                                             
PinNew: Format PCM 16 bit supported                                                               
PinNew: Default sample rate = 48000 Hz                                                            
PinNew: Finding topology pin...                                                                   
FindStartConnectionFrom: Checking 6 connections...GetConnectedPin: count=3, forward=0, muxPosition
GetConnectionFrom: Checking 6 connections... (pTo = 00F09BA8)                                     
GetConnectionFrom: Returning 00F09B98                                                             
PinNew: Getting physical connection...                                                            
PinNew: Physical connection found!                                                                
PinNew: Opening topology filter...PinNew: Checking for input endpoint pin id (0)...               
FindStartConnectionFrom: Checking 37 connections...PinNew: Done with inputs.                      
PinNew: Input friendly name 'Input'                                                               
PinNew: Releasing topology filter...                                                              
Pin created successfully                                                                          
PinNew: Creating pin 5:                                                                           
PinNew: Not source/sink                                                                           
PinNew: Error -9996                                                                               
Filter (WaveCyclic) created with 3 valid pins (total I/Os: 6)                                     
after paHostApiInitializers[4].                                                                   
>>>                                                                                               

Those don’t seem to support WDM-KS, and your error was there …

Could you please try those: https://github.com/adfernandes/precompiled-portaudio-windows?

I don’t want to disable WDM-KS in the pre-packaged DLLs, because on some (most?) systems it works fine and as I understand it’s one of the more professional (i.e. low latency) backends.

@Maneesh3 Please note that the link you are recommending points to an older PortAudio version.

It would probably better to recommend Christoph Gohlke’s DLLs instead: http://www.lfd.uci.edu/~gohlke/pythonlibs/#sounddevice

Those are also easier to install by simply using pip. The previous installation can be uninstalled with pip uninstall sounddevice.