简体   繁体   English

Android和iPhone录音

[英]Android & iPhone Sound Recording

I am going to record the sound threw Android and iPhone. 我将记录Android和iPhone发出的声音。 I know that iPhone Support aif and caf format to record the Sound while Android Support 3GP and amr formate to record sound. 我知道iPhone支持aif和caf格式来记录声音,而Android支持3GP和amr formate来记录声音。

now, i want to know that which format is best to record sound in both environment ? 现在,我想知道哪种格式最适合在两种环境下录制声音? I mean i am going to store that sound format to server and then will use it later. 我的意思是我要将该声音格式存储到服务器,然后稍后再使用。 Now it is necessary that both the sound have same format thats why i want the information regarding the fomat supported in both environment to record and play sound. 现在,两种声音都必须具有相同的格式,这就是为什么我想要有关在两种环境中都支持的格式的信息来记录和播放声音的原因。

So let me know if anyone have good experiance to record sound and play it in both the environment. 因此,请让我知道是否有人在两种环境下都能录制和播放声音。

Thanks in advance. 提前致谢。

I suggest MP3 . 我建议使用MP3 We can play in Android and iPhone.We are doing so to play Audio file. 我们可以在Android和iPhone上播放。我们正在播放音频文件。 One more Suggestion for Recording Audio file , always use Media Recorder for capturing audio since it consume less size. 关于录制音频文件的另一建议,因为它占用的空间较小,请始终使用Media Recorder捕获音频。

But using Media Recorder you can set only following formats : 但是使用Media Recorder只能设置以下格式:

  1. MPEG_4 MPEG_4
  2. RAW_AMR RAW_AMR
  3. THREE_GPP THREE_GPP

So do some stuffs to convert it to MP3 所以做一些东西将其转换为MP3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM