Riccardo Cestari
Riccardo Cestari

Reputation: 113

Failed to initialize AVAudioRecorder: (null)

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!

Upvotes: 5

Views: 894

Answers (1)

Diego Rodriguez
Diego Rodriguez

Reputation: 21

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.

Upvotes: 2

Related Questions