简体   繁体   English

选择要在Android和IOS之间使用的音频文件格式?

[英]Choose which audio file format to use between Android and IOS?

In my app,I want to make sure user can record his sound and sent to other user to listen to it. 在我的应用中,我想确保用户可以录制他的声音并发送给其他用户听。 In android platform I choose .amr ,it's not too big and easy to record. 在android平台中,我选择.amr,它不太大,很容易记录。

Then I realized I should make sure my ios user can chat with my android user,but .amr seems not support in ios(after v4.3). 然后我意识到我应该确保我的ios用户可以与我的android用户聊天,但是.amr似乎不支持ios(在v4.3之后)。

So is there a certain audio file format that can use between android and ios platform ? 那么在android和ios平台之间是否可以使用某种音频文件格式 Or I have to let my Server to do the Transcoding job? 还是我必须让服务器执行转码工作?

Both android and iOS should be able to handle mp3 files. android和iOS都应该能够处理mp3文件。

You can encode to mp3 on the device using various open source projects (could be a combination of steps). 您可以使用各种开放源代码项目(可以是步骤的组合)在设备上编码为mp3。

I would personally go for a server-side encoding/conversion, because too many things can go wrong (especially on all the various Android versions and devices) 我个人会去服务器端编码/转换,因为太多的事情可能会出错(尤其是在所有各种Android版本和设备上)

At last we use amr. 最后,我们使用amr。 Ios client do the decode job. iOS客户端执行解码工作。

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

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