Niansuh commited on
Commit
213867b
·
verified ·
1 Parent(s): f6e5b79

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +21 -0
templates/index.html ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Text to Speech</title>
5
+ </head>
6
+ <body>
7
+ <h1>Text to Speech Converter</h1>
8
+ <form method="post">
9
+ <textarea name="text" rows="5" cols="50" placeholder="Enter text here"></textarea><br>
10
+ <select name="voice">
11
+ {% for voice in voices %}
12
+ <option value="{{ voice }}">{{ voice }}</option>
13
+ {% endfor %}
14
+ </select><br>
15
+ <input type="submit" value="Generate Audio">
16
+ </form>
17
+ {% if error %}
18
+ <p style="color: red;">Error: {{ error }}</p>
19
+ {% endif %}
20
+ </body>
21
+ </html>