{"protocol":"lumina-speaker-v1","version":1,"codec":"pcm_s16le","sample_rate_hz":16000,"channels":1,"max_frame_bytes":4096,"max_command_bytes":8388608,"binary_header_bytes":28,"magic":"LSP1","sequence_start":0,"pairing_url":"https://lumina-test.jianmusic.com/v1/speaker/pair","websocket_url":"wss://lumina-test.jianmusic.com/v1/speaker/stream","command_url_template":"https://lumina-test.jianmusic.com/v1/speaker/commands/{command_id}","binary_layout":[{"offset":0,"bytes":4,"field":"magic","value":"LSP1"},{"offset":4,"bytes":16,"field":"UUID","encoding":"RFC4122 raw bytes"},{"offset":20,"bytes":4,"field":"epoch","encoding":"uint32 big endian"},{"offset":24,"bytes":4,"field":"sequence","encoding":"uint32 big endian"},{"offset":28,"bytes":"2..4096, even","field":"PCM","encoding":"signed int16 little endian"}],"agent_controls":{"playback.begin":["command_id:UUID","epoch:uint32","format:'pcm_s16le'","sample_rate_hz:16000","channels:1","total_bytes:even 2..8388608"],"playback.end":["command_id:UUID","epoch:uint32"],"playback.stop":["command_id:UUID","epoch:uint32"],"ping":["nonce:string <=128"]},"terminal_controls":{"playback.received":["command_id:UUID","epoch:uint32"],"playback.started":["command_id:UUID","epoch:uint32"],"playback.completed":["command_id:UUID","epoch:uint32"],"playback.failed":["command_id:UUID","epoch:uint32","error_code:'terminal_playback_failed'"],"microphone.begin":["capture_id:UUID","epoch:uint32","format:'pcm_s16le'","sample_rate_hz:16000","channels:1"],"microphone.end":["capture_id:UUID","epoch:uint32"],"ping":["nonce:string <=128"]},"server_controls":{"hello":"version,terminal_id,epoch,scopes,codec,sample_rate_hz,channels,max_frame_bytes,max_command_bytes","command.status":"command:{command_id,terminal_id,grant_id,epoch,state,metadata,created_at,updated_at,error_code}","error":"code:fixed safe string","pong":"nonce","playback.stop":"command_id:null|UUID,epoch,reason:fixed safe string"},"framing":"JSON object requires type matching the control name; only listed keys permitted. Each new stream starts sequence=0; UUID/epoch/sequence are bound per stream. End only after the exact declared PCM bytes. Pace audio in real time; peer queues are bounded. Status accepted is not a terminal playback receipt.","microphone":"Only a locally initiated browser microphone.begin is forwarded to a microphone.receive grant. Agent controls cannot start microphone capture. PCM is ephemeral and not archived.","instruction_template":"Fetch this protocol; redeem the one-use ticket with a stable client_nonce and client_name; keep the returned speaker token private; connect using Authorization Bearer; send paced PCM frames; never request microphone capture remotely. A reconnect or repeated command never resumes or replays audio.","stale_frames":"drop_with_stale_audio","reconnect":"no_audio_resume"}