Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +2 -2
templates/index.html
CHANGED
|
@@ -240,7 +240,7 @@
|
|
| 240 |
|
| 241 |
function confirmName() {
|
| 242 |
let name = document.getElementById('name').value;
|
| 243 |
-
speak(You said ${name}. Is it correct
|
| 244 |
recognition.start();
|
| 245 |
recognition.onresult = function(event) {
|
| 246 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
|
@@ -331,4 +331,4 @@
|
|
| 331 |
};
|
| 332 |
</script>
|
| 333 |
</body>
|
| 334 |
-
</html>
|
|
|
|
| 240 |
|
| 241 |
function confirmName() {
|
| 242 |
let name = document.getElementById('name').value;
|
| 243 |
+
speak(`You said ${name}. Is it correct?`, function() {
|
| 244 |
recognition.start();
|
| 245 |
recognition.onresult = function(event) {
|
| 246 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
|
|
|
| 331 |
};
|
| 332 |
</script>
|
| 333 |
</body>
|
| 334 |
+
</html>
|