Skip to content

Commit 81d7976

Browse files
committed
notes
1 parent ff5ed6e commit 81d7976

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

speech-to-text/media-element-audio-stream.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ var util = require('util');
1111
* @param {Object} [opts] options
1212
* @param {Number|null} [opts.bufferSize=null] https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor
1313
* @param {Boolean} [opts.muteSource=false] - If true, the audio will not be sent back to the source
14+
*
15+
* // todo: add option for whether to keep or destroy the context
16+
*
1417
* @constructor
1518
*/
1619
function MediaElementAudioStream(source, opts) {
@@ -39,7 +42,7 @@ function MediaElementAudioStream(source, opts) {
3942
var self = this;
4043
var recording = true;
4144

42-
// I can't seem to find any documentation for this on <audio> elements, but it seems to be required for cross-domain usage (in addition to CORS headers)
45+
// I can't find much documentation for this for <audio> elements, but it seems to be required for cross-domain usage (in addition to CORS headers)
4346
source.crossOrigin = opts.crossOrigin;
4447

4548
/**

0 commit comments

Comments
 (0)