transcord
Version:
A simple recording and transcription module.
17 lines (16 loc) • 468 B
JavaScript
function Transcord(element, options) {
this.$element = $(element);
this.options = $.extend({}, Transcord.DEFAULTS, $.isPlainObject(options) && options);
this.recognizing = false;
this.stream = null;
this.speechRecognitionIsSupported = false;
this.context = null;
this.recordingLength = 0;
this.leftchannel = [];
this.rightchannel = [];
this.sampleRate = 2048;
this.transcriptBuffer = '';
this.blobsURL = [];
this.blobs = [];
this.init();
}