Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>Transformers.js Speech Transcriber</title> | |
| <link rel="stylesheet" href="style.css" /> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>๐๏ธ Speech Transcriber with Transformers.js</h1> | |
| <p>Transcribe audio using Whisper Tiny (English) directly in your browser!</p> | |
| <div class="controls"> | |
| <label for="audioInput">Choose an audio file or use the default sample:</label> | |
| <input type="file" id="audioInput" accept="audio/*" /> | |
| <button id="recordBtn">๐ค Start Recording</button> | |
| <button id="stopBtn" disabled>โน๏ธ Stop</button> | |
| </div> | |
| <div class="options"> | |
| <label> | |
| <input type="checkbox" id="useTimestamps" /> Include Timestamps | |
| </label> | |
| <label> | |
| <input type="checkbox" id="useWordTimestamps" disabled /> Word-Level Timestamps | |
| </label> | |
| </div> | |
| <button id="transcribeBtn" disabled>๐ Transcribe</button> | |
| <div class="audio-player" hidden> | |
| <audio id="audioPlayer" controls></audio> | |
| </div> | |
| <div class="output"> | |
| <div class="spinner" id="loading" hidden>Loading...</div> | |
| <div id="result"></div> | |
| </div> | |
| </div> | |
| <script type="module" src="index.js"></script> | |
| </body> | |
| </html> |