How to trim audio file in iPhone?

2019-03-01 05:18发布

I have sound files in my document directory folder and i want to trim that sound file.
How to do that?

2条回答
萌系小妹纸
2楼-- · 2019-03-01 05:36

you can use Extended Audio File Services. have a look at the reference for ExtAudioFileRead & ExtAudioFileWrite (they have sample code) then you can open one audio file read it, trim it and then write the new one.go here http://developer.apple.com/library/ios/#documentation/MusicAudio/Reference/ExtendedAudioFileServicesReference/Reference/reference.html

查看更多
神经病院院长
3楼-- · 2019-03-01 05:38

What do you mean by trim ? You want to get chunk for aduio of specific duration from with in main Audio file ?

might be this post could help Serialize Audi File Objective C

查看更多
登录 后发表回答