开发者

How can i detect audio level of a stream or tcplistener or the audio card using C#

开发者 https://www.devze.com 2022-12-29 15:37 出处:网络
Is this possible using only C#?I want to be able to detect audio from: a 开发者_开发问答stream, microphone or soundcard and begin recording if audio level is above a settable threshold.

Is this possible using only C#? I want to be able to detect audio from: a 开发者_开发问答stream, microphone or soundcard and begin recording if audio level is above a settable threshold.

Thanks :-)


you can do this using NAudio. Have a look at the .NET Voice Recorder application for an example of detecting the input level. To detect audio from a stream, you would need to create a class derived from WaveStream and override its Read method to return the data from your TcpListener

0

精彩评论

暂无评论...
验证码 换一张
取 消