Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to initialize AVAudioRecorder: (null)

Tags:

ios

cordova

I'm working on iOS with cordova framework and I've implemented AudioRecorder functionality as described in cordova articles. When I try to Record an Audio file a message saying "Failed to initialize AVAudioRecorder: (null)" appears. How can I fix it? Thanks!

like image 839
Riccardo Cestari Avatar asked Nov 04 '22 16:11

Riccardo Cestari


1 Answers

The PhoneGap Media api allows record in .wav format (and other types), but not in mp3. Choosing the mp3 format is a common mistake.

You should save the file as .wav.

like image 131
Diego Rodriguez Avatar answered Nov 13 '22 20:11

Diego Rodriguez