Playing voice over modem from a Windows service
问题 I'm developing a VB.NET Windows service which is costantly checking a BMS database for new alarms and making phone calls to warn operators remotely. I'm currently using a .NET TAPI wrapper and the SAPI 5.3 interop assembly, and the steps I'm taking to speak over the phone are: Initialize TAPI interface; Make the call to the operator's number; Take the voice modem waveOut device id Set the voice output to that device id; Let SAPI do the magic. This is all working fine if I compile the code as