Audio level while recording in silverlight 5

Hi I am recording PCM audio in a web application using silverlight 5 and I wanted to know is there any way that we can show the audio level like how we do on NAUDIO.

I am not able to use Naudio with silverlight. This is so that the user knows that his voice is actually being captured by the system.

Answers


You would use the same technique. Assuming you are recording in 16 bit, every 2 bytes should be converted to a short (you can use the BitConverter.ToInt16 class) and then look for the maximum sample value over a short period (say 100ms), and use that to set the value on your volume meter control. For the volume meter, a styled progress bar is often a good approach. See my blog post here for an example.


Need Your Help

How to create Lists dynamically in sencha and add them to navigation view?

web-services sencha-touch extjs sencha-touch-2

How to create Lists dynamically in sencha and add them to navigation view? I am making a webservice call to get the list of folders. When i click on any folder it should show the subfolders present...

What is the difference between getAllFailureExceptions() and getFailureExceptions() methods of Spring Batch JobExecution class?

java spring-batch

What is the difference between getAllFailureExceptions() and getFailureExceptions() methods of Spring Batch JobExecution class? What is the right one to use for a generic JobExecutionListener that...