I wanted to record the audio in the background on the watchOS app and at the same time the user can perform some activity on the same watchOS app

Goal: When user (patient) starts performing any test cycle on watchOS app (test can be anything user can interact with watchOS app). At the same time (Simultaneously) I wanted to record the audio in the background on the watchOS app. As soon as the test cycle is completed. I want to stop the audio recording & then sync the audio data with the backend.

I know we can do the audio recording on watchOS app using presentAudioRecorderController (using Voice memo) but it is not allowed to perform the test cycle at the same time.

Any help can be appreciated. Thanks in advance

Answered by Frameworks Engineer in 703753022

You will need to implement audio recording in your app using AvFoundation (see https://developer.apple.com/documentation/avfaudio/avaudiorecorder). As you’ve noticed, presentAudioRecorderController presents modally, and this is not what you want.

Accepted Answer

You will need to implement audio recording in your app using AvFoundation (see https://developer.apple.com/documentation/avfaudio/avaudiorecorder). As you’ve noticed, presentAudioRecorderController presents modally, and this is not what you want.

I wanted to record the audio in the background on the watchOS app and at the same time the user can perform some activity on the same watchOS app
 
 
Q