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 11# Changelog
22
3+ ### v0.27.1
4+ * stream from recognizeMicrophone emits an ` end ` event when microphone access is not avaliable
5+
36### v0.27.0
47* TimingStream rewrite - now emits exact results received from the service, always in the exact order recieved
58 * 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) {
132132
133133 getMicStream . catch ( function ( err ) {
134134 stream . emit ( 'error' , err ) ;
135+ if ( err . name == 'NotSupportedError' ) {
136+ stream . end ( ) ; // end the stream
137+ }
135138 } ) ;
136139
137140 getMicStream . then ( function ( micStream ) {
You can’t perform that action at this time.
0 commit comments