Parlora.Channels.LocalAudio (Parlora v0.1.0)

Copy Markdown View Source

CPAL microphone and speaker audio, converted through Rubato to mono PCM16/24 kHz.

Options: :host (CoreAudio or PulseAudio), :input_device and :output_device (device IDs), :native_capacity_frames (default 4,800), and :target_buffer_ms (default 30). :playback_buffer_ms (default 120, range 0–200) cushions delivery jitter before starting playback. :playback_buffering defaults to :adaptive (or use :fixed): the target learns between that cushion and 200 ms, capped by queue duration. :playback_recovery_ms independently caps recovery waiting (default 120, range 0–200), with early release under upstream pressure. Zero initial cushion disables buffering. Queue and callback handoff are observable; neither proves human hearing.

Summary

Functions

Returns a specification to start this module under a supervisor.

Discover device IDs and native formats for a CPAL host.

Queue and callback counters; rendered frames are not confirmed playback.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

devices(host \\ default_host())

Discover device IDs and native formats for a CPAL host.

observations(pid)

Queue and callback counters; rendered frames are not confirmed playback.