Well to get started, you can use WasapiCapture to record the audio. You'd need to turn the bytes into samples by using BitConverter.ToFloat (since they will be 32 bit floating point samples). That should get you started on detecting volume. Detecting pitch is a harder problem, and there are various different approaches
↧