Gregniuki commited on
Commit
3ff1634
·
1 Parent(s): 057cefc

Update templates/interface.html

Browse files
Files changed (1) hide show
  1. templates/interface.html +21 -3
templates/interface.html CHANGED
@@ -46,9 +46,27 @@
46
  <label for="text_input">Text to synthesize:</label>
47
  <input type="text" id="text_input" placeholder="Enter your text here">
48
  </div>
49
-
50
- <button id="synthesize_button">Synthesize</button>
51
- <button id="close_button">Exit</button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  <div>
53
  <!-- HTML audio element to play the generated audio -->
54
  <audio controls>
 
46
  <label for="text_input">Text to synthesize:</label>
47
  <input type="text" id="text_input" placeholder="Enter your text here">
48
  </div>
49
+ <form method="post" action="/synthesize">
50
+ <div>
51
+ <label for="text_input">Text to synthesize:</label>
52
+ <input type="text" id="text_input" name="text_input" placeholder="Enter your text here">
53
+ </div>
54
+ <div>
55
+ <label for="speed_slider">Rate scale:</label>
56
+ <input type="range" id="speed_slider" name="speed_slider" min="0.25" max="4" step="0.1" value="1">
57
+ </div>
58
+ <!-- Add other input fields and elements here -->
59
+ <div>
60
+ <button type="submit" id="synthesize_button">Synthesize</button>
61
+ <button type="button" id="close_button" onclick="closeGUI()">Exit</button>
62
+ </div>
63
+ </form>
64
+ <script>
65
+ // JavaScript function for handling the "Exit" button click
66
+ function closeGUI() {
67
+ // Add logic to close the GUI if needed
68
+ alert("Closing the GUI");
69
+ }
70
  <div>
71
  <!-- HTML audio element to play the generated audio -->
72
  <audio controls>