File size: 922 Bytes
04f98c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Voice Translator</title>
    <link rel="stylesheet" href="/static/style.css">
</head>
<body>
    <h1>Speech Translator</h1>
    <div>
        <button id="startRecording">Start Recording</button>
        <button id="stopRecording">Stop Recording</button>
        <button id="speakTranslation">Speak Translation</button>
    </div>
    <div>
        <label for="targetLanguage">Select Target Language:</label>
        <select id="targetLanguage"></select>
    </div>
    <div>
        <h3>Status</h3>
        <p id="status"></p>
    </div>
    <div>
        <h3>Recognized Text</h3>
        <p id="recognizedText"></p>
    </div>
    <div>
        <h3>Translated Text</h3>
        <p id="translatedText"></p>
    </div>
</body>
</html>