如何以MP3格式保存麦克风录音 [英] How to save microphone recording in mp3 format
问题描述
我正在使用麦克风类录制音频,并且可以使用以下代码播放录制的音频流.
I am using microphone class to record audio and I can play recorded audio stream using the below code.
&SoundEffect声音=新的SoundEffect(stream.ToArray(),麦克风,SampleRate,AudioChannels.Mono);
soundInstance = sound.CreateInstance();
soundIsPlaying = true;
soundInstance.Play();
SoundEffect sound = new SoundEffect(stream.ToArray(), microphone.SampleRate, AudioChannels.Mono);
soundInstance = sound.CreateInstance();
soundIsPlaying = true;
soundInstance.Play();
我需要将此录音保存为.mp3格式.我怎样才能做到这一点?请帮忙.
I need to save this recording in .mp3 format. How can I do this? Please help.
Tekriti软件
推荐答案
存在用于编码MP3的开源代码.对于WP7,它必须是C#,对于WP8,它可以是C#或C ++.
Open source exists for encoding MP3. For WP7 it must be C#, for WP8 it can be C# or C++.
希望这会有所帮助,
标记
Hope this helps,
Mark
这篇关于如何以MP3格式保存麦克风录音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!