@yoonit/javascript-recorder

0.0.1-alpha.1 • Public • Published

yoonit-recorder

How to run the project

npm install @yoonit/javascript-recorder

How to use it

import YooRecorder from '@yoonit/javascript-recorder'

const recorder = await YooRecorder()

It's important to allow microphone, to audio capture be possible.

Methods

start

  • It starts recording audio.
recorder.start()


pause

  • Pauses current audio record.
recorder.pause()

stop

  • It stops recording and clear it.
recorder.stop()

clear

  • It clears recorded data.
recorder.clear()

getMedia

  • Returns captured media.
const media = await recorder.getMedia()

sendAudio(media.audioBlob)


Returns:
Property Description Type
audio Audio file type wmv
audioBlob Audio blob binary
audioUrl Audio URL string
file Audio file object File
play Function to play recorded audio Function

Readme

Keywords

none

Package Sidebar

Install

npm i @yoonit/javascript-recorder

Weekly Downloads

1

Version

0.0.1-alpha.1

License

none

Unpacked Size

17 kB

Total Files

4

Last publish

Collaborators

  • luiguild
  • sabrinaas
  • inando85
  • ___moraes
  • gabemule
  • gabriel_rizzo
  • ronalson
  • teruyaharoldo
  • 7i4g0
  • goulartvic
  • vitoriacosta