Skip to content

@capgo/capacitor-audio-recorder

Capacitor plugin contract for recording audio.

Capacitor plugin contract for recording audio.

  • 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.