File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ### v0.27.1
4
+ * stream from recognizeMicrophone emits an ` end ` event when microphone access is not avaliable
5
+
3
6
### v0.27.0
4
7
* TimingStream rewrite - now emits exact results received from the service, always in the exact order recieved
5
8
* old version created extra interim results and could emit speaker_labels before their matching final result in certain circumstances
Original file line number Diff line number Diff line change @@ -132,6 +132,9 @@ module.exports = function recognizeMicrophone(options) {
132
132
133
133
getMicStream . catch ( function ( err ) {
134
134
stream . emit ( 'error' , err ) ;
135
+ if ( err . name == 'NotSupportedError' ) {
136
+ stream . end ( ) ; // end the stream
137
+ }
135
138
} ) ;
136
139
137
140
getMicStream . then ( function ( micStream ) {
You can’t perform that action at this time.
0 commit comments