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 459a2b5 commit 59947feCopy full SHA for 59947fe
CHANGELOG.md
@@ -1,6 +1,6 @@
1
# Changelog
2
3
-### v0.27.1
+### v0.27.2
4
* stream from recognizeMicrophone emits an `end` event when microphone access is not avaliable
5
6
### v0.27.0
speech-to-text/recognize-microphone.js
@@ -132,7 +132,7 @@ module.exports = function recognizeMicrophone(options) {
132
133
getMicStream.catch(function(err) {
134
stream.emit('error', err);
135
- if (err.name == 'NotSupportedError') {
+ if (err.name === 'NotSupportedError') {
136
stream.end(); // end the stream
137
}
138
});
0 commit comments