vllm_omni.model_executor.common.duplex.pcm_buffer ¶
Transactional framing of client PCM into fixed model units.
A frame-locked model (PersonaPlex: 1920 samples every 80 ms at 24 kHz) takes exactly one frame per append. Clients send arbitrary chunks, so the session runner buffers them here and takes one whole frame out at a time as a reservation: committed once the stage accepted the append, rolled back (the bytes go back to the front of the buffer) when it did not.
FixedFramePcmAppendBuffer ¶
Bases: PcmAppendBuffer
Frame pcm_f32le at one sample rate into frame_samples units, transactionally.