File size: 2,531 Bytes
cf3120b
2184fd3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cf3120b
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Next Echo</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
  <header>
    <h1>Next Echo</h1>
    <p>Give it a short example sound — a clap, a knock, a bark — and a longer recording. Next Echo marks every moment the sound occurs, and you can listen to each hit. Record the example with your microphone; all audio stays in your browser.</p>
    <div class="badges"><span class="badge">Live in-browser audio search</span><span class="badge">ESC-50 sounds (CC BY-NC 3.0)</span><a class="badge" href="https://huggingface.co/thelamapi/Next-Echo">Model repo</a></div>
  </header>
  <div class="grid">
    <section class="card">
      <h2>1 · Example sound</h2>
      <select id="qsel" aria-label="example sound"></select>
      <div class="row" style="margin-top:8px"><button id="mic">🎙 Record 2 s example</button><button id="playq" class="ghost">▶ Play example</button></div>
      <label for="qfile">…or upload an example (any audio file)</label><input type="file" id="qfile" accept="audio/*">
      <label><input type="checkbox" id="keepq"> keep my example when switching recordings</label>
    </section>
    <section class="card">
      <h2>2 · Recording to search</h2>
      <select id="rsel" aria-label="recording"></select>
      <label for="rfile">…or upload your own recording</label><input type="file" id="rfile" accept="audio/*">
      <p class="small muted" id="truth"></p>
    </section>
  </div>
  <section class="card" style="margin-top:12px">
    <h2>Where does it occur?</h2>
    <p class="status" id="status">Loading…</p>
    <canvas id="tl"></canvas>
    <div id="hits" style="margin-top:6px"></div>
    <p class="small muted">Top: waveform with true events shaded (demo recordings). Lanes: similarity of each 1-second window to the example; dashed line = decision threshold chosen on validation recordings.</p>
  </section>
  <section class="card" style="margin-top:12px"><h2>Recorded benchmark</h2><img src="preview.png" alt="Benchmark" style="width:100%;border-radius:8px"></section>
  <footer>Demo recordings are mixtures built from ESC-50 test clips (Piczak, 2015; CC BY-NC 3.0, non-commercial use). Microphone audio never leaves your device.</footer>
</main>
<script src="nlrt.js"></script>
<script src="nlui.js"></script>
<script src="core.js"></script>
<script src="app.js"></script>
</body>
</html>