0

I am using AVAudioRecorder for recording sound in my ios app. I want that if user moves the UISlider object to 2 seconds and press Record button then after saving the recording file and playing it, user should hear the recording after a pause of 2 seconds. How can I achieve this functionality? Can anyone please help?

Best Regards

Aqueel
  • 1,246
  • 3
  • 23
  • 46

1 Answers1

0

You can add 2 second silence (please consider slider value is 2) to your Audio file starting section

To do this please go through this link

The below links also may help you to achieve the goal.

avaudioplayer-append-recording-to-file

trim-audio-with-ios

Community
  • 1
  • 1
Shamsudheen TK
  • 30,739
  • 9
  • 69
  • 102
  • Thanks Ramshad, but how would I create this silent audio? The link you provided asks to pause the audio, but pausing an audio will not add that gap. It will just stop the recording at that time for the time being. Right? – Aqueel Aug 16 '12 at 07:57