Skip to content

Commit 714c0a4

Browse files
committed
enabling mic input on narrowband
1 parent e011c90 commit 714c0a4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

views/demo.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ export default React.createClass({
9393
return this.stopTranscription();
9494
}
9595
this.reset();
96-
if (this.isNarrowBand()) {
97-
return this.handleError(ERR_MIC_NARROWBAND);
98-
}
9996
this.setState({audioSource: 'mic'});
10097

10198
// The recognizeMicrophone() method is a helper method provided by the watson-speach package
@@ -336,7 +333,7 @@ export default React.createClass({
336333
if (this.state.audioSource === 'mic') {
337334
micButtonClass += ' mic-active';
338335
micIconFill = '#FFFFFF';
339-
} else if (buttonsEnabled && this.isNarrowBand() || !recognizeMicrophone.isSupported) {
336+
} else if (!recognizeMicrophone.isSupported) {
340337
micButtonClass += ' base--button_black';
341338
}
342339

0 commit comments

Comments
 (0)