简体   繁体   English

创建带有许多音频片段的新音频文件

[英]Create new audio file with many little audio snippets

I want to put many little audio snippets together to a new one. 我想将许多小的音频片段放到一个新的片段中。 This should happen randomly - therefore this new big audio file will be unique. 这应该是随机发生的-因此,这个新的大型音频文件将是唯一的。

For this reason I need a procedure or a class in the framework which brings me in the ability to perform this task. 因此,我需要框架中的过程或类来使我能够执行此任务。

I found the classes AVAssetTrack, AVCompostionTrack, AVMutableCompostionTrack, ... , in the AVFoundation-Framework . 我在AVFoundation-Framework中找到了类AVAssetTrack,AVCompostionTrack,AVMutableCompostionTrack...。 It seems that the possibilities with this classes would be able to fulfill my requirements. 此类课程的可能性似乎能够满足我的要求。 But they also look pretty complex and I wondered if there is a more simple way to do it. 但是它们看起来也很复杂,我想知道是否有更简单的方法可以做到这一点。 Does someone have a tip for me to bring me in the right direction? 有人给我提示要我朝正确的方向发展吗?

Thank you in advance ! 先感谢您 ! Cheers 干杯

Well, you can complete your task by simply appending new parts to some initial record and updating file's header (if case of pcm format). 好了,您只需将新的部分添加到一些初始记录并更新文件的标题(如果是pcm格式),就可以完成您的任务。 and don't forget to remove headers from records you are appending. 并且不要忘记从要追加的记录中删除标题。

Ok, it seems that the classes of the AVFoundation-Framework are the right ones. 好的,看来AVFoundation-Framework的类是正确的。 After a while of studying them they don't appear that difficult anymore ;-) I will make it with them... 经过一段时间的研究,他们似乎不再那么困难;-)我将与他们一起努力...

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

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