New Post: Audio Recording
WASAPI will only record at the format the soundcard is using. If it is not the sample rate you want then you have to resample manually.
View ArticleNew Post: how to amplify grabbed recorded voice bytes from microphone?
I'd probably use this ReplayGain 1.0 specification
View ArticleNew Post: how to amplify grabbed recorded voice bytes from microphone?
markheath wrote: you would normally scale it to [-1.0f. 1.0f]. You can do this by just dividing by 32768f, then constrain to the range, then multiply back up before casting to a short. ah, right ^^
View ArticleNew Post: how to amplify grabbed recorded voice bytes from microphone?
hmmm, wait a min, isn't it slightly inaccurate to simply divide it by 32768f? if it is signed 16 bits, the negative [-32768, 0) range scales into [-1.0f, 0) range, and the positive (0, +32767] range...
View ArticleNew Post: Audio Recording
sorry, how can i Resample manually ...? i tryed like this.... outputfile is the name of audio recorded using WasApi loopback method. WaveFileReader Reader = new WaveFileReader(outputfile);...
View ArticleNew Post: how to amplify grabbed recorded voice bytes from microphone?
yes, it is a bit ugly. But I always think of 0 in signed audio as being silence, so there is fractionally more negative range than positive. I multiply up by 32767 when I am done. This is to avoid...
View ArticleNew Post: how to clean background noise using naudio?
hi, is there methods or algorithms that can remove noise from recording samples, ?
View ArticleNew Post: Audio Recording
Reader.WaveFormat. AverageBytesPerSecond :352800 BitsPerSample:32 BlockAlign:8 Chanels:2 ExtraSize:22 SAmpleRate:44100 Encoding:Extensible
View ArticleNew Post: how to clean background noise using naudio?
*shakes head* this is a good start: "open source" audio noise filtering I love it when NAudio forum gets bombed by Windows hacking or DSP questions, even though these are not advertised in NAudio...
View ArticleNew Post: Audio Recording
the ACM codec that does the format conversion doesn't like extensible, so the reader format passed in should be a regular WaveFormat(44100,16,2). You could create a very simple IWaveProvider...
View ArticleNew Post: MmException issue
As a part of a bigger program I am including a wave player. I have used Naudio for this. Where I define a WaveFileReader and a WaveOut object. I use a simple button that toggles between pause and...
View ArticleNew Post: MmException issue
I've addressed this problem in the latest version of the code. Now you get an exception in the PlaybackStopped event that tells you that playback stopped because of a problem. You can either download...
View ArticleUpdated Wiki: Home
NAudio Overview NAudio is an open source .NET audio and MIDI library, containing dozens of useful audio related classes intended to speed development of audio related utilities in .NET. It has been in...
View ArticleNew Post: MmException issue
I tried downloading the latest sourcecode. After a bit of experimenting with the new playbackStopped event i got it working.Thank you so much for your quick response and the amazing tool that is...
View ArticleCommented Issue: Need to record all sounds from sound card. [16353]
Need to record all sounds from sound card. So that mic+output was written to file. Is it possible? Cant find any examples, found just ones that allow to write mic. Comments: Check out this thread for a...
View ArticleNew Post: Repeated Start/StopRecording does not work
I have tested on a (Parallels) Windows 7 virtual machine on a MacBook Pro. I have not observed any other audio issues with this setup until now. In the meantime I have worked around this issue by...
View ArticleNew Post: BadDeviceId calling waveInOpen when running NAudioTutorial5
My platform is Windows 7 Professional 64-bit I got the following errors when running NAudioTutorial5: NAudio.MmException was unhandled Message=BadDeviceId calling waveInOpen Source=NAudio...
View Article