0

I want to record some thing in my app and post it to some API. Please help

2 Answers2

2

You can follow this link for recording and saving audio in local iPhone storage (ex: Document Directory).

Record audio file and save locally on iPhone

Once you saved it you can convert file content as NSData

NSDate *audioData = [NSData dataWithContentsOfFile:audioFilePath];
// audioFilePath is the path of audio either from document 
// directory or any other location.
Mundi
  • 79,884
  • 17
  • 117
  • 140
1

This simple tutorial might help you

https://www.appcoda.com/ios-avfoundation-framework-tutorial/

Once you are done recording then you have to choose do you want

 AFNetworking or NSURLConnection 

to send the audio to the server

gurmandeep
  • 1,227
  • 1
  • 14
  • 30