We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e011c90 commit 714c0a4Copy full SHA for 714c0a4
1 file changed
views/demo.jsx
@@ -93,9 +93,6 @@ export default React.createClass({
93
return this.stopTranscription();
94
}
95
this.reset();
96
- if (this.isNarrowBand()) {
97
- return this.handleError(ERR_MIC_NARROWBAND);
98
- }
99
this.setState({audioSource: 'mic'});
100
101
// The recognizeMicrophone() method is a helper method provided by the watson-speach package
@@ -336,7 +333,7 @@ export default React.createClass({
336
333
if (this.state.audioSource === 'mic') {
337
334
micButtonClass += ' mic-active';
338
335
micIconFill = '#FFFFFF';
339
- } else if (buttonsEnabled && this.isNarrowBand() || !recognizeMicrophone.isSupported) {
+ } else if (!recognizeMicrophone.isSupported) {
340
micButtonClass += ' base--button_black';
341
342
0 commit comments