0.0.2 • Published 6 years ago

fastrecorder v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

[](#)

Fast Recorder JS

Fast Recorder is a simple, easy to use library built on top of javascript browser api whose purpose is to provide developers with ready to consume functions allowing them to perform recording tasks quickly without the need of the browser api messing up

Features

  • starting/stopping Recording Audio

  • restarting recording if needed

  • pausing/resuming record

  • convert text to woman/man voice

  • detecting silence while recording

  • exporting output to mp3/ogg file

  • resampling the recorded track to fit your software requirement

  • playing record

Installation && Usage

  • Include the pre-compiled javascript production bundle
<script type="text/javascript" src="./dist/fast-recorder.min.js"></script>
  • Next you can instantiate the library constructor this way
 var recorder= new FastRecorder.audioRecoder()   

API

Library methods

  • recorder.startRecording(onStart,onSilence,onHappening)

  • recorder.stopRecording(onStop)

  • recorder.restart(onRestart,onSilence,onHappening)

  • recorder.exportResampledAudio(reSampleRate,onComplete)

  • recorder.exportAsMP3(filename)

  • recorder.pause(onPause)

  • recorder.resume(onResume)

  • recorder.playAudio(url)

  • recorder.speakText(payload,onStart,onFinish)

Tests

  • to run the demo locally, you need first to do
bower install && run the index.html file locally 

License

FastRecorder.js is freely distributable under the terms of the MIT LICENSE