简体   繁体   中英

Create 2 second audio files while recording with AVAudioRecorder

i am using AVAudioRecorder to record the iphone input. i need to create a file from the recored every 2 seconds (while recording) without damaging the main file i am recording.

Example:

lets say i am recording a 10 secondes file

------------------
    10 Seconds

during the recording i need to create 2 seconds "chunks" ready to be sent over POST request.

--  --  --  --  --
 2   2   2   2   2

any head start?

to manage this i found out that i must use apple's Audio Queue Services which is ac based API. here is a link

this stuff is really cool!

Do you really need to break the audio file into 2-second chunks for sending over a POST request? Can't you send out the data using multipart form data?

Try using an API like ASIHTTPRequest to send out the audio file over the request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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