@algoz098/audio-recorder

0.1.1 • Public • Published

audio-recorder

A Lightweight Vue Component for Audio recording

Install

npm i --save @algoz098/audio-recorder

import AudioRecorder from '@algoz098/audio-recorder'

Vue.use(AudioRecorder)

Basic syntax

Use v-modelto control to start and stop the recording


<audio-recorder
	v-model="play"
></audio-recorder>

API

Slots:

Default: replaces all content for a custom one

Events:

@input: true/false @seconds: number, how many seconds has been recorded @time-passed: string, how many seconds has been recorded formated as mm:ss @audio-blob: blog, emitted when recorded stoped, emit the audio blob recorded @audio-url: string, emitted when recorded stoped, emit the url for the audio recorded

Package Sidebar

Install

npm i @algoz098/audio-recorder

Weekly Downloads

5

Version

0.1.1

License

ISC

Unpacked Size

3.87 MB

Total Files

65

Last publish

Collaborators

  • algoz098