<svg width="100%" viewBox="0 0 900 200" role="img" xmlns="http://www.w3.org/2000/svg">
  <title>Wake-word training pipeline</title>
  <desc>Synthesize positive and negative samples, train with livekit-wakeword, export ONNX, ship in the Pi venv at sudoedge/models/hey_sudo.onnx.</desc>
  <style>
    text{font-family:"Anthropic Sans",-apple-system,system-ui,"Segoe UI",sans-serif}
    .t{font-size:14px;font-weight:500;text-anchor:middle;dominant-baseline:central}
    .s{font-size:12px;text-anchor:middle;dominant-baseline:central}
    rect{stroke-width:.5}
    .neutral{fill:#444441;stroke:#b4b2a9} .nt{fill:#d3d1c7} .ns{fill:#b4b2a9}
    .blue{fill:#1f3b7a;stroke:#8aaef0}    .bt{fill:#cfdcf4} .bs{fill:#8aaef0}
    .teal{fill:#085041;stroke:#5dcaa5}    .tt{fill:#9fe1cb} .ts{fill:#5dcaa5}
    .green{fill:#27500a;stroke:#97c459}   .gt{fill:#c0dd97} .gs{fill:#97c459}
    .arrow{fill:none;stroke:#9c9a92;stroke-width:1.5}
  </style>
  <defs>
    <marker id="a" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
      <path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
    </marker>
  </defs>

  <rect class="neutral" x="20"  y="80" width="180" height="80" rx="8"/>
  <text class="t nt" x="110" y="106">synth samples</text>
  <text class="s ns" x="110" y="128">"hey sudo" positives</text>
  <text class="s ns" x="110" y="146">+ household negatives</text>

  <rect class="blue" x="230" y="80" width="200" height="80" rx="8"/>
  <text class="t bt" x="330" y="106">train classifier</text>
  <text class="s bs" x="330" y="128">livekit-wakeword</text>
  <text class="s bs" x="330" y="146">Apache-2.0</text>

  <rect class="teal" x="460" y="80" width="180" height="80" rx="8"/>
  <text class="t tt" x="550" y="106">export ONNX</text>
  <text class="s ts" x="550" y="128">model bytes</text>
  <text class="s ts" x="550" y="146">runtime-portable</text>

  <rect class="green" x="670" y="80" width="220" height="80" rx="8"/>
  <text class="t gt" x="780" y="106">ship to the Pi</text>
  <text class="s gs" x="780" y="128">sudoedge/models/hey_sudo.onnx</text>
  <text class="s gs" x="780" y="146">runs locally · no cloud roundtrip</text>

  <path class="arrow" d="M 200 120 L 228 120" marker-end="url(#a)"/>
  <path class="arrow" d="M 430 120 L 458 120" marker-end="url(#a)"/>
  <path class="arrow" d="M 640 120 L 668 120" marker-end="url(#a)"/>
</svg>
