How to know if a sound is playing using c#?

audio, c#

Solution

You can do this by using a wrapper around Direct X. There are many examples, just google for it. For example, C# code can be found here or here.

Problem

I have a TTS program (Third Party) and I wrote a c# application that uses that program. (Type into my application and press a button to move the mouse and click on the Third party app). I need to know whether the speech is finished or not. Are there any ideas on how to determine if any sound playing from sound card or not?

Original source

Related problems