c# - Cut beginning of a sound effect / silence -


I would like to know whether it is possible that there is no other way to cut the beginning of the XNA framework or sound. I record sound via a microphone and I am handling such sound frequency:

The stream is defined as such:

  Private Memory Stream Stream = New Memorystream ();   

Is it possible to modify the stream in any way and cut the beginning of the sound?

  Sound effects sound = new sound effects (stream. Tuare), microphone sample rate, audio channel. Mono); Var voice transfer = Soundtrack ();   

Which bin I set to remove? Or is it possible to find "silence" / "background" and cut automatically before listening to the voice of the real person?

Thank you

You will need to know the exact waveformat of the sounds recorded. If you've got an accurate WaveFormat (eg, 16-bit PCM mono), you can read it again through all the samples, check whether it is within a specific category or not. If all samples are less than 0.1 for example, then it is silent. If not ... run the data.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -