Search code examples
iosiphoneapple-watchwatchos

Audio recording capabilites on Apple watch


We are working out the details on porting our iOS app to Apple Watch. One of the features on the Mobile version is ability to record the voice and store it on device and upload it to the server later. Is it possible to record the voice on Apple Watch? I looked at the Apple Watch SDK but couldn't find any thing related to Audio. Is the Audio API from iOS SDK compatible with Apple Watch ?


Solution

  • Watch OS 2 update:

    There is a new API method, which displays a standard interface for recording audio from the user’s Apple Watch.

    -presentAudioRecorderControllerWithOutputURL:preset:options:completion:

    Apple published sample, which demonstrates how to use WKInterfaceController to perform an audio recording. Refer to this sample if you want to learn how to present an AudioRecordingViewController to record and save audio. This project also demonstrates how to playback an audio file that has been produced.