File size: 1,955 Bytes
5f0a2ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Voice Latency Lab</title>
    <link rel="stylesheet" href="/static/styles.css?v=20260503c">
  </head>
  <body>
    <main class="shell">
      <section class="panel">
        <p class="eyebrow">Speech Loop Test</p>
        <h1>Voice Latency Lab</h1>
        <p class="lede">
          Stream mic audio from your phone, let local <code>faster-whisper</code> transcribe it,
          then play a Chatterbox Turbo reply back over the same socket.
        </p>

        <div class="controls">
          <label class="field">
            <span>Voice prompt path</span>
            <input id="voicePromptPath" type="text" placeholder="/home/rapheal/sample-voice.wav">
          </label>
          <button id="connectButton">Start Session</button>
        </div>

        <div class="stats">
          <div class="card">
            <span>Socket</span>
            <strong id="socketState">idle</strong>
          </div>
          <div class="card">
            <span>Mic level</span>
            <strong id="micLevel">0.00000</strong>
          </div>
          <div class="card">
            <span>Detected speech</span>
            <strong id="speechState">no</strong>
          </div>
        </div>

        <div class="logWrap">
          <p class="sectionTitle">Transcript</p>
          <pre id="transcriptLog" class="log"></pre>
        </div>

        <div class="logWrap">
          <p class="sectionTitle">Assistant</p>
          <pre id="assistantLog" class="log activityPane"></pre>
        </div>

        <div class="logWrap">
          <p class="sectionTitle">Agent Activity</p>
          <pre id="activityLog" class="log activityPane" aria-live="polite"></pre>
        </div>
      </section>
    </main>

    <script type="module" src="/static/app.js?v=20260503c"></script>
  </body>
</html>