-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew.html
44 lines (40 loc) · 1.3 KB
/
new.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>BOT</title>
<link rel="stylesheet" type="text/css" href="static/css/new.css">
</head>
<body style="background-color:dark-blue">
<div id="container"></div>
<h1>Hello, type something to begin!</h1>
<div class="second">
<div class="third">
<center><p style ="color:white">
<form method='post'>
<b>ChatBot 1</b>
{% for bot12 in bot1 %}
<p>{{bot12}}</p>
{% endfor %}<br>
</p></center>
<center>
<label for="Human">Human</label>
<input type="text" name="human" id="speechToText" placeholder="Speak or type something" onclick="record()">
<script type="text/javascript">
function record() {
var recognition = new webkitSpeechRecognition();
recognition.lang = "en-GB";
recognition.onresult = function(event) {
// console.log(event);
document.getElementById('speechToText').value = event.results[0][0].transcript;
}
recognition.start();
}
</script></form>
</center>
</div>
</div>
</body>
</html>