Spaces:
Runtime error
Runtime error
Update templates/index.html
Browse files- templates/index.html +17 -1
templates/index.html
CHANGED
@@ -66,5 +66,21 @@
|
|
66 |
<p class="status" id="status">Initializing...</p>
|
67 |
</div>
|
68 |
</body>
|
69 |
-
<script
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
</html>
|
|
|
66 |
<p class="status" id="status">Initializing...</p>
|
67 |
</div>
|
68 |
</body>
|
69 |
+
<script>
|
70 |
+
function speak(text, callback) {
|
71 |
+
const speech = new SpeechSynthesisUtterance(text);
|
72 |
+
speech.onend = callback;
|
73 |
+
window.speechSynthesis.speak(speech);
|
74 |
+
}
|
75 |
+
|
76 |
+
function startProcess() {
|
77 |
+
speak("Welcome to Biryani Hub", function() {
|
78 |
+
speak("Please tell me your name");
|
79 |
+
});
|
80 |
+
}
|
81 |
+
|
82 |
+
window.onload = function () {
|
83 |
+
setTimeout(startProcess, 2000);
|
84 |
+
};
|
85 |
+
</script>
|
86 |
</html>
|