如何知道一个声音是使用C#玩? [英] How to know if a sound is playing using c#?

查看:110
本文介绍了如何知道一个声音是使用C#玩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TTS程序(第三方)和我写了使用该程序中的C#应用​​程序。 (型号入我的应用程序和preSS一个按钮来移动鼠标并点击第三方应用程序)。

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?

推荐答案

您可以通过使用包装器直接X.有许多例子做到这一点,只是谷歌它。例如,C#code可以发现的这里这里

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.

这篇关于如何知道一个声音是使用C#玩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆