How to simulate Mac devices without speakers

I want to do something when user has no speaker devices in my program, but I found that all Mac devices available recent years have built in speakers, and I can‘t disable it. I have tried many methods like kill audio services and unload kexts but failed. How can I make internal speaker not enumerated in the device list?

How to simulate Mac devices without speakers
 
 
Q