87 lines
7.2 KiB
XML
87 lines
7.2 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 1600 1000" role="img">
|
|
<title>Live voice session and streaming</title>
|
|
<desc>Control lifecycle plus continuous bidirectional media</desc>
|
|
<defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="8" refY="4.5" orient="auto"><path d="M0,0 L9,4.5 L0,9" fill="#64748b"/></marker></defs>
|
|
<rect width="1600" height="1000" fill="#ffffff"/>
|
|
<style>text{font-family:Segoe UI,Arial,sans-serif}.title{font-size:38px;font-weight:700;fill:#0f172a}.sub{font-size:21px;fill:#475569}.node{font-size:21px;font-weight:650;fill:#0f172a}.detail{font-size:17px;fill:#475569}.edge{font-size:14px;fill:#475569}</style>
|
|
<text x="75" y="75" class="title">Live voice session and streaming</text>
|
|
<text x="75" y="115" class="sub">Control lifecycle plus continuous bidirectional media</text>
|
|
<path d="M395,262.5 L450,262.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M770,262.5 L825,262.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M1145,262.5 L1200,262.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M1360.0,335 L1360.0,435" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M1200,507.5 L1145,507.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M825,507.5 L770,507.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M450,507.5 L395,507.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
|
|
<path d="M235.0,580 L235.0,680" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M395,752.5 L450,752.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M770,752.5 L825,752.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M1145,752.5 L1200,752.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
|
|
<rect x="75" y="190" width="320" height="145" rx="16" fill="#e8f0fe" stroke="#2563eb" stroke-width="1.8"/>
|
|
<rect x="75" y="212" width="5" height="101" rx="2" fill="#2563eb"/>
|
|
<text x="95" y="230" class="node">1. Reserve session</text>
|
|
<text x="95" y="268" class="detail">Create conversation + voice ID</text>
|
|
<text x="95" y="298" class="detail">Auth / ownership / request dedup</text>
|
|
<rect x="450" y="190" width="320" height="145" rx="16" fill="#f2eaff" stroke="#7c3aed" stroke-width="1.8"/>
|
|
<rect x="450" y="212" width="5" height="101" rx="2" fill="#7c3aed"/>
|
|
<text x="470" y="230" class="node">2. Freeze execution profile</text>
|
|
<text x="470" y="268" class="detail">Model, voice, ASR, limits</text>
|
|
<text x="470" y="298" class="detail">Knowledge / access revisions</text>
|
|
<rect x="825" y="190" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="825" y="212" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="845" y="230" class="node">3. Admit browser WebSocket</text>
|
|
<text x="845" y="268" class="detail">Origin + cookie + profile check</text>
|
|
<text x="845" y="298" class="detail">Browser PCM: mono 24 kHz</text>
|
|
<rect x="1200" y="190" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
|
|
<rect x="1200" y="212" width="5" height="101" rx="2" fill="#c56a08"/>
|
|
<text x="1220" y="230" class="node">4. Provider setup</text>
|
|
<text x="1220" y="268" class="detail">Server-side connection + secrets</text>
|
|
<text x="1220" y="298" class="detail">Wait for setup acknowledgement</text>
|
|
<rect x="75" y="435" width="320" height="145" rx="16" fill="#e8f0fe" stroke="#2563eb" stroke-width="1.8"/>
|
|
<rect x="75" y="457" width="5" height="101" rx="2" fill="#2563eb"/>
|
|
<text x="95" y="475" class="node">8. Interrupted playback</text>
|
|
<text x="95" y="513" class="detail">Stop old output; report played ms</text>
|
|
<text x="95" y="543" class="detail">Discard buffered unheard audio</text>
|
|
<rect x="450" y="435" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="450" y="457" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="470" y="475" class="node">7. Bounded delivery</text>
|
|
<text x="470" y="513" class="detail">Audio + transcript + sources</text>
|
|
<text x="470" y="543" class="detail">Playback credit / progress</text>
|
|
<rect x="825" y="435" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="825" y="457" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="845" y="475" class="node">6. Turn orchestration</text>
|
|
<text x="845" y="513" class="detail">Authority + terminal gates</text>
|
|
<text x="845" y="543" class="detail">Trusted evidence tools as needed</text>
|
|
<rect x="1200" y="435" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
|
|
<rect x="1200" y="457" width="5" height="101" rx="2" fill="#c56a08"/>
|
|
<text x="1220" y="475" class="node">5. Incoming speech</text>
|
|
<text x="1220" y="513" class="detail">PCM relay; provider VAD + ASR</text>
|
|
<text x="1220" y="543" class="detail">Runtime controls response.create</text>
|
|
<rect x="75" y="680" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="75" y="702" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="95" y="720" class="node">9. Cancel generation</text>
|
|
<text x="95" y="758" class="detail">Correlate cancellation intent</text>
|
|
<text x="95" y="788" class="detail">Require terminal confirmation</text>
|
|
<rect x="450" y="680" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
|
|
<rect x="450" y="702" width="5" height="101" rx="2" fill="#c56a08"/>
|
|
<text x="470" y="720" class="node">10. Synchronize context</text>
|
|
<text x="470" y="758" class="detail">Truncate at actual played position</text>
|
|
<text x="470" y="788" class="detail">Require exact acknowledgement</text>
|
|
<rect x="825" y="680" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="825" y="702" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="845" y="720" class="node">11. Release next response</text>
|
|
<text x="845" y="758" class="detail">After all cleanup gates</text>
|
|
<text x="845" y="788" class="detail">Same-topic search may survive</text>
|
|
<rect x="1200" y="680" width="320" height="145" rx="16" fill="#f2eaff" stroke="#7c3aed" stroke-width="1.8"/>
|
|
<rect x="1200" y="702" width="5" height="101" rx="2" fill="#7c3aed"/>
|
|
<text x="1220" y="720" class="node">12. Close / fail safely</text>
|
|
<text x="1220" y="758" class="detail">Cancel tasks + release provider</text>
|
|
<text x="1220" y="788" class="detail">Persist outcome; fresh session</text>
|
|
<text x="75" y="890" class="detail">This is a lifecycle summary, not serial audio processing. See the sequence diagram for asynchronous events and acknowledgements.</text>
|
|
<circle cx="83" cy="962" r="7" fill="#2563eb"/><text x="100" y="968" class="detail">Frontend / admin</text>
|
|
<circle cx="458" cy="962" r="7" fill="#0f766e"/><text x="475" y="968" class="detail">Backend logic</text>
|
|
<circle cx="833" cy="962" r="7" fill="#7c3aed"/><text x="850" y="968" class="detail">Persistent state</text>
|
|
<circle cx="1208" cy="962" r="7" fill="#c56a08"/><text x="1225" y="968" class="detail">AI / embedding provider</text>
|
|
</svg> |