问题描述
我也遇到了DirectShow中.NET中的错误,我创建辅助缓冲区8kHz采样率,并且在播放时,声音回放的约。 8.1khz来代替。
这谷歌搜索,我发现,我可能会被迫对自己的上采样音频为8kHz到48kHz或44.1kHz的视在PC声卡。
有任何C#库或一般的算法,我可以用这个?
谢谢!
Roey
字节[] = data48khz AUDIOCOM pressionManager.Convert(format8khz,format48khz,data8khz,FALSE);
I have encountered a bug in DirectShow .NET where I create a secondary buffer with a sample rate of 8khz, and upon playback, the sound plays back at approx. 8.1khz instead.
Googling this, I discovered that I might be forced to upsample the 8khz audio myself to 48khz or 44.1khz depending on the soundcard in the PC.
Is there any C# library or generic algorithm I could use for this?
Thanks!!
Roey
For Alvas.Audio see code below
byte[] data48khz = AudioCompressionManager.Convert(format8khz, format48khz, data8khz, false);
这篇关于C#重采样音频8kHz至44.1 / 48kHz的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!