ember-cli-opus-recorder
Simple Wrapper around Opus Recorder.
This provides a service that can be used to record, play, and export audio as a wav file, blob, or bas64 string.
Installation
ember install ember-cli-opus-recorder
Usage
- After running
recorder.start()<Promise>
you can then runrecorder.getAudio()
to get the wav file created
Options
- recordingTime: (Default: 5000)
- Set how long recording should be before automatically stopping
- Note: If set to a falsey value you will need to call
recorder.stop()
manually recorder.set('recordingTime', <time in milliseconds>)
; ; ;
<div> Recording {{#if recorder.isRecording}} Started!! {{else}} Stopped {{/if}}</div><br /> <button {{action 'record'}}>Record</button><button {{action 'play'}}>Play</button><button {{action 'stop'}}>Stop</button>
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.