Clean frontend

This commit is contained in:
gpkvt 2022-08-11 10:46:46 +02:00
parent 7f45e1a4ff
commit 6bbe2c0f16
1 changed files with 10 additions and 12 deletions

View File

@ -4,17 +4,16 @@
<title>TTS</title> <title>TTS</title>
<script src="./jquery.js"></script> <script src="./jquery.js"></script>
</head> </head>
<body class="container mt-5 bg-dark"> <body class="container mt-2">
<h1 class="text-light">Text to Speech</h1> <p class="lead mt-2">Select Voice</p>
<p class="lead text-light mt-4">Select Voice</p> <select id="voices" class="form-select bg-transparent"></select>
<select id="voices" class="form-select bg-secondary text-light"></select> <div class="d-flex mt-2">
<div class="d-flex mt-4 text-light">
<div> <div>
<p class="lead">Volume</p> <p class="lead">Volume</p>
<input type="range" min="0" max="1" value="1" step="0.1" id="volume" /> <input type="range" min="0" max="1" value="1" step="0.1" id="volume" />
<span id="volume-label" class="ms-2">1</span> <span id="volume-label" class="ms-2">1</span>
</div> </div>
<div class="mx-5"> <div class="mx-4">
<p class="lead">Rate</p> <p class="lead">Rate</p>
<input type="range" min="0.1" max="10" value="1" id="rate" step="0.1" /> <input type="range" min="0.1" max="10" value="1" id="rate" step="0.1" />
<span id="rate-label" class="ms-2">1</span> <span id="rate-label" class="ms-2">1</span>
@ -25,12 +24,11 @@
<span id="pitch-label" class="ms-2">1</span> <span id="pitch-label" class="ms-2">1</span>
</div> </div>
</div> </div>
<!--textarea id="tts" class="form-control bg-dark text-light mt-5" cols="30" rows="10" placeholder="Type here..."></textarea//--> <div>
<div class="mb-5"> <button id="start" class="btn btn-success mt-4 me-2">Init</button>
<button id="start" class="btn btn-success mt-5 me-3">Init</button> <button id="pause" class="btn btn-warning mt-4 me-2">Pause</button>
<button id="pause" class="btn btn-warning mt-5 me-3">Pause</button> <button id="resume" class="btn btn-info mt-4 me-2">Resume</button>
<button id="resume" class="btn btn-info mt-5 me-3">Resume</button> <button id="cancel" class="btn btn-danger mt-4 me-2">Cancel</button>
<button id="cancel" class="btn btn-danger mt-5 me-3">Cancel</button>
</div> </div>
</body> </body>
<script src="./tts.js"></script> <script src="./tts.js"></script>