Skip to content

@capgo/capacitor-audio-recorder

Record voice clips on iOS, Android, and web with pause, level meters, and native file output.

Use @capgo/capacitor-audio-recorder when your Capacitor app needs microphone capture without bolting on a separate native module per platform. Start and stop clips, pause mid take, poll input level for waveforms, and listen for recording errors while users move between foreground and background (with the right native entitlements).

Typical fits: voice memos, in app audio messages, field notes, lightweight podcast capture, and speech first features that must work in the mobile WebView and in mobile browsers.

PlatformSupportNotes
iOSYesAVFoundation capture, optional resetToPlaybackOnStop to avoid quiet playback after recording
AndroidYesMediaRecorder, pause or resume on API 24+
WebYesBrowser MediaRecorder, stopRecording returns a Blob instead of a file URI
  • startRecording - Start recording audio using the device microphone.
  • pauseRecording - Pause the ongoing recording. Only available on Android (API 24+), iOS, and Web.
  • resumeRecording - Resume a previously paused recording.
  • stopRecording - Stop the current recording and persist the recorded audio.
MethodDescription
startRecordingStart recording audio using the device microphone.
pauseRecordingPause the ongoing recording. Only available on Android (API 24+), iOS, and Web.
resumeRecordingResume a previously paused recording.
stopRecordingStop the current recording and persist the recorded audio.
cancelRecordingCancel the current recording and discard any captured audio.
getRecordingStatusRetrieve the current recording status.
getCurrentAmplitudeRetrieve the current input amplitude (microphone level) as a normalized number in the [0, 1] range.
checkPermissionsReturn the current permission state for accessing the microphone.
requestPermissionsRequest permission to access the microphone.
addListenerListen for recording errors.
addListenerListen for pause events emitted when a recording is paused.
addListenerListen for recording completion events.
removeAllListenersRemove all registered listeners.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-audio-recorder.

Keep going from @capgo/capacitor-audio-recorder

Section titled “Keep going from @capgo/capacitor-audio-recorder”

If you are using @capgo/capacitor-audio-recorder to plan native media and interface behavior, connect it with Using @capgo/capacitor-audio-recorder for the native capability in Using @capgo/capacitor-audio-recorder, Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities, Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player, and @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player.