pub fn pump(
handle: &LiveHandle,
mic: Receiver<Vec<i16>>,
mic_hz: u32,
speaker: Sender<Playback>,
speaker_hz: u32,
) -> VoicePumpExpand description
Run the device-independent duplex loop between audio channels and a session.
mic: mono PCM16 frames atmic_hz— resampled toSESSION_INPUT_HZand written to the session.speaker: receivesPlaybackinstructions; chunks are mono PCM16 atspeaker_hz, resampled fromSESSION_OUTPUT_HZ. An interruption arrives asPlayback::Flush.
The pump owns no devices: pair it with cpal streams
(Talk::talk does exactly that), a WebSocket bridge, a test harness —
anything that can fill and drain a channel.