![]() InjectMicOut.PlaybackStopped += new EventHandler(OnPlaybackStopped) īufferedWaveProvider = new BufferedWaveProvider(injectMicIn.WaveFormat) //Prepare the buffer for the microphone audio InjectMicIn.DeviceNumber = SharedVars.micInjectInputDeviceID //Set the users selected input device InjectMicIn.WaveFormat = new WaveFormat(44100, 1) InjectMicIn.DataAvailable += InjectMicOnDataAvailable InjectMicIn.RecordingStopped += new EventHandler(OnRecordingStopped) pitchProvider //# TO DO: Remove this if I don't use it ISampleProvider sampleP //# TO DO: Remove this if I don't use it. Public int virtualAudioCableID //Device ID of selected virtual audio cable Public int micDeviceID //Device ID of selected microphone Private BufferedWaveProvider bufferedWaveProvider //Buffer for mic audio Here's what I've got so far: //Inject Mic Audio I discovered that NAudio has an SmbPitchShiftingSampleProvider and then found this question which helps to work with buffered audio, but I can't figure out how to do it. ![]() So I started looking into modifying the pitch of the audio. I was able to 'inject' the audio from the microphone to the audio cable so I could play sound files and mic audio to Discord by selecting the virtual audio cable as the input device in Discord.įor fun I thought I would see if I could modify the mic audio to make it 'squeaky' or 'deep'. ![]() I decided to have a go at creating a sound board for use with Discord (or similar software) using NAudio and a Virtual Audio Cable.
0 Comments
Leave a Reply. |