-
Notifications
You must be signed in to change notification settings - Fork 1
/
textspeechconverter.html
62 lines (59 loc) · 1.68 KB
/
textspeechconverter.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<link href="https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap" rel="stylesheet">
<?!= includeExternalFile('textspeechconverter_css'); ?>
</head>
<body>
<div id='first_screen'>
<div class='title'>
<h1>Speech to Text Converter</h1>
</div>
<div class='grid-container'>
<div>
<input id='audioFile' type='file'>
</div>
<div>
<button id='speechToTextBtn'>Convert Speech to Text</button>
<div id='preloader2' style='display: none;'>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
<div>
<textarea id='speechToTextTextArea'></textarea>
</div>
</div>
</div>
<div id='second_screen'>
<div class='title'>
<h1>Text to Speech Converter</h1>
</div>
<div class='grid-container'>
<div>
<textarea id='textToSpeechTextArea' placeholder="Paste or type the text you'd like spoken here."></textarea>
</div>
<div>
<button id='textToSpeechBtn'>Convert Text To Speech</button>
<div id='preloader1' style='display: none;'>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
<div>
<audio controls="controls" id="audio">
<source id="source" src="" type="audio/wav" />
</audio>
</div>
</div>
</div>
<?!= includeExternalFile('textspeechconverter_js'); ?>
</body>
</html>