We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59d4726 commit 30e91c1Copy full SHA for 30e91c1
2 files changed
CHANGELOG.md
@@ -1,5 +1,8 @@
1
# Changelog
2
3
+### v0.27.1
4
+* stream from recognizeMicrophone emits an `end` event when microphone access is not avaliable
5
+
6
### v0.27.0
7
* TimingStream rewrite - now emits exact results received from the service, always in the exact order recieved
8
* old version created extra interim results and could emit speaker_labels before their matching final result in certain circumstances
speech-to-text/recognize-microphone.js
@@ -132,6 +132,9 @@ module.exports = function recognizeMicrophone(options) {
132
133
getMicStream.catch(function(err) {
134
stream.emit('error', err);
135
+ if (err.name == 'NotSupportedError') {
136
+ stream.end(); // end the stream
137
+ }
138
});
139
140
getMicStream.then(function(micStream) {
0 commit comments