简体   繁体   English

如何将生成的音调保存到iOS中的音频文件中?

[英]How to save the generated tone to the audio file in iOS?

I have read the tone generator in ios from http://www.eslacker.com/?p=198 . 我已经从http://www.eslacker.com/?p=198阅读了ios中的音频发生器。 After that, I want to improve it to can save the tone generator to the audio file. 在那之后,我想对其进行改进以将音频发生器保存到音频文件中。 So , the tone generator can be ringtone. 因此,音频发生器可以是铃声。 How can I got it? 我该怎么办? Thanks before :D 之前感谢:D

You could possibly have it upload the file as simple PCM to your website for conversion, allow the user to download it to his/her computer, and tell them how to sync it, but there is not a chance in hell apple would make it easy to make ringtones with only an iphone. 您可以将其作为简单的PCM文件上传到您的网站上进行转换,允许用户将其下载到他/她的计算机上,并告诉他们如何进行同步,但是在地狱苹果公司没有机会使它变得容易仅用 iphone制作铃声。 After all, they make money by only letting you easily make ringtones from songs you buy on iTunes, but won't let you use ones ripped from CDs without lots of workarounds. 毕竟,它们只能通过让您轻松地从iTunes上购买的歌曲中制作铃声来赚钱,但不允许您使用CD中翻录的歌曲而没有很多解决方法。 You can do it from a desktop by cropping the sound to 30 seconds, converting it to AAC, and giving it the file extension .m4r , and then importing it into itunes and syncing. 您可以在桌面.m4r声音裁剪为30秒,将其转换为AAC,并将其文件扩展名为.m4r ,然后将其导入到iTunes中并进行同步,以完成此操作。 I have no idea how to do it without a jailbroken iDevice that can access the root filesystem and change the .plist files and database files that control synced media. 我不知道如何在没有越狱设备的情况下执行此操作,该设备可以访问根文件系统并更改.plist文件和控制同步媒体的数据库文件。 You could run ffmpeg on a webserver and use that to make and crop ringtones. 您可以在网络服务器上运行ffmpeg并将其用于制作和裁剪铃声。 Or port and include ffmpeg inside your app and have it convert it and save it in the space that you can share between apps and manage with itunes. 或将ffmpeg移植到您的应用程序中,然后将其转换并保存在您可以在应用程序之间共享并使用iTunes管理的空间中。

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

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