()
| 39 | document.querySelector('#start').addEventListener('click',start); |
| 40 | document.querySelector('#stop').addEventListener('click',stop); |
| 41 | function start(){ |
| 42 | recognition.start(); |
| 43 | console.log('Speech recognition has started.'); |
| 44 | |
| 45 | } |
| 46 | function stop(){ |
| 47 | recognition.stop(); |
| 48 | console.log('Speech recognition has stopped.'); |