@eatsjobs/recorder-audio

1.0.2 • Public • Published

Simple RecorderAudio

yarn add recorder-audio

or

npm i recorder-audio

Example

<script type='module'>
    import RecorderAudio from './dist/recorder.mjs';
    const delay = (time) => new Promise((resolve) => { setTimeout(resolve, time) });
    ;(async function init() {
        const recorder = new RecorderAudio();
        await recorder.init();
        recorder.start();
        await delay(4000)
        const { audio, audioBlob, audioUrl } = await recorder.stop();
        audio.play();
    })()
</script>

Readme

Keywords

Package Sidebar

Install

npm i @eatsjobs/recorder-audio

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

16.9 kB

Total Files

8

Last publish

Collaborators

  • eatsjobs