We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed340f2 commit d2a2183Copy full SHA for d2a2183
speech-to-text/recognize-blob.js
@@ -53,6 +53,11 @@ module.exports = function recognizeBlob(options) {
53
54
var realtime = options.realtime || typeof options.realtime === 'undefined' && options.play;
55
56
+ // the timing stream requires timestamps to work, so enable them automatically
57
+ if (realtime) {
58
+ options.timestamps = true
59
+ }
60
+
61
// we don't want the readable stream to have objectMode on the input even if we're setting it for the output
62
// unless were in realtime mode - in which case the timing stream requires objectMode input.
63
var rsOpts = assign({}, options);
0 commit comments