| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Whisper Speech Recognition Test (File-based)</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 20px;
- background-color: #f0f0f0;
- }
- h1 {
- color: #333;
- }
- #controls {
- margin: 20px 0;
- }
- button {
- padding: 10px 20px;
- margin: 0 10px;
- font-size: 16px;
- cursor: pointer;
- background-color: #007bff;
- color: white;
- border: none;
- border-radius: 5px;
- }
- button:disabled {
- background-color: #cccccc;
- cursor: not-allowed;
- }
- #status {
- margin: 10px 0;
- font-weight: bold;
- color: #555;
- }
- #transcription, #translation {
- width: 80%;
- max-width: 600px;
- min-height: 100px;
- padding: 10px;
- background-color: white;
- border: 1px solid #ccc;
- border-radius: 5px;
- white-space: pre-wrap;
- overflow-y: auto;
- }
- </style>
- </head>
- <body>
- <h1>Whisper Speech Recognition Test</h1>
- <div id="controls">
- <button id="startBtn">Start Recording</button>
- <button id="stopBtn" disabled>Stop Recording</button>
- </div>
- <div id="status">Status: Idle</div>
- <div id="transcription">Transcription will appear here...</div>
- <div id="translation">Translation will appear here...</div>
- <script src="https://cdn.jsdelivr.net/npm/base64-js@1.5.1/base64js.min.js"></script>
- <script type="module" src="./main.js"></script>
- </body>
- </html>
|