We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb033a7 commit c4292e9Copy full SHA for c4292e9
pages/index.js
@@ -50,8 +50,9 @@ const Home = () => {
50
recognizerRef.current.interimResults = true;
51
recognizerRef.current.continuous = true;
52
recognizerRef.current.onend = () => {
53
+ recognizerRef.current.start();
54
if (detecting) {
- recognizerRef.current.start();
55
+ recognizerRef.current.stop();
56
};
57
58
recognizerRef.current.onresult = event => {
0 commit comments