OldyCoder 0 Posted July 29, 2020 I'm using following code snippet to record audio on IOS 13.5.1 and getting access violation exception. My Delphi version is 10.3 Update 3. It works fine on Android. Mic := TCaptureDeviceManager.Current.DefaultAudioCaptureDevice; if (Mic <> nil) then begin Mic.FileName := 'record.mp3'; try Mic.StartCapture; except on E: Exception do lblError.Text:=E.message; end; end; Is there any workaround? Share this post Link to post
Dave Nottage 557 Posted July 29, 2020 Is there a value for NSMicrophoneUsageDescription in the Project Options, like this? If not, you'll need to add it, by right-clicking on the grid, click Add Key, enter NSMicrophoneUsageDescription as the name, click OK, then provide a value for it. 2 Share this post Link to post
OldyCoder 0 Posted July 30, 2020 Thank you Dave. The problem was caused by audio format that I used. IOS does not support mp3 audio format. IOS supports only caf format. Yes my new problem is: How can I convert caf to mp3 on IOS 😊 Share this post Link to post
Antonello 1 Posted August 27, 2021 On 7/30/2020 at 9:00 AM, OldyCoder said: Thank you Dave. The problem was caused by audio format that I used. IOS does not support mp3 audio format. IOS supports only caf format. Yes my new problem is: How can I convert caf to mp3 on IOS 😊 Hello Have you resolve this problem of convertion? I have same problem 😅 Thanks Share this post Link to post