如何以MP3格式保存麦克风录音 [英] How to save microphone recording in mp3 format

查看:70
本文介绍了如何以MP3格式保存麦克风录音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用麦克风类录制音频,并且可以使用以下代码播放录制的音频流.

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++.

必应搜索:开源mp3编码器

希望这会有所帮助,
标记

Hope this helps,
Mark


这篇关于如何以MP3格式保存麦克风录音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆