0

如何以良好的质量从我的电脑录制声音?(Microsoft Wav 文件 16 位 44 khz 或实时编码 mp3)。

如果我可以使用免费的文档库来录制音频,这对我来说不是问题,但我找不到任何内容。

我在 Google 上找到了mciSendString,但这就像从 90 年代的手机录制音频质量......:

mciSendString("open new Type waveaudio Alias recsound", "", 0, 0)
mciSendString("record recsound", "", 0, 0)
4

1 回答 1

1

I've used http://www.portaudio.com/ and been happy with it. Plus, it's cross-platform and you can specify bit-depth, sample-rate, etc. when opening devices for recording. For exporting audio data to files, I like to use http://www.mega-nerd.com/libsndfile/.

If you're strictly using Windows, however, you might just use the waveIn* functions (see here to get started: http://msdn.microsoft.com/en-us/library/windows/desktop/dd743847(v=vs.85).aspx)

Note that theses solutions are not necessarily .NET specific, but utilize native code.

于 2013-04-23T15:20:10.807 回答