</head>
<body>
- <img src="/favicon.png" style="width:20%;">
+ <p style="font-size: 2rem;">Audio Capture and Transcription PoC </p>
<p>
- <button id="btnStart">START RECORDING</button>
- <button id="btnStop" disabled>STOP RECORDING</button>
- <button id="btnPlay" disabled>PLAY RECORDING</button>
+ <button id="btnStart">Start Recording</button>
+ <button id="btnStop" disabled>Stop Recording</button>
+ <button id="btnPlay" disabled>Play Recording</button>
</p>
<audio id="audioPlay"></audio>
+ <label>Transcription:</label>
<p id="transcription">
</p>
</body>
const audioElement = document.getElementById("audioPlay");
const transcriptionElement = document.getElementById("transcription");
-const BACKEND_WS_URL = "ws://localhost:3000/ws/transcribe";
+const BACKEND_WS_URL = "ws://pooter.local:3000/ws/transcribe";
const CHUNK_MS = 3000;
const TARGET_SAMPLE_RATE = 16000;
* {
- color: red;
+ color: black;
+ font-family: Helvetica, Arial, sans-serif;
+}
+
+#transcription {
+ background-color: lightgray;
+ min-height: 30rem;
+ border: 1px solid black;
+ border-radius: 5px;
+}
+
+button {
+ width: 8rem
}
\ No newline at end of file