@mozartec/capacitor-audio-recorder

Record Device Audio

Usage no npm install needed!

<script type="module">
  import mozartecCapacitorAudioRecorder from 'https://cdn.skypack.dev/@mozartec/capacitor-audio-recorder';
</script>

README

@mozartec/capacitor-audio-recorder

Record Device Audio

Install

npm install @mozartec/capacitor-audio-recorder
npx cap sync

API

checkPermissions()

checkPermissions() => any

Returns: any


requestPermissions()

requestPermissions() => any

Returns: any


startRecording()

startRecording() => any

Returns: any


stopRecording()

stopRecording() => any

Returns: any


Interfaces

PermissionStatus

Prop Type
audioRecorder "prompt" | "prompt-with-rationale" | "granted" | "denied" | "limited"

AudioRecording

Prop Type
base64String string
duration number