Capture mono float32 PCM from PipeWire in a background thread. More...
Public Member Functions | |
| bool | is_running (self) |
| Return whether this capture backend is currently running. | |
| None | start (self, AudioSamplesCallback callback) |
| Begin capture and invoke callback(samples, sample_rate_hz). | |
| None | stop (self) |
| Stop capture and release backend resources. | |
Protected Member Functions | |
| list[str] | _build_command (self) |
| Build a pw-record command that emits headerless float32 PCM. | |
Capture mono float32 PCM from PipeWire in a background thread.
| bool audio.capture.pipewire_audio_capture.PipewireAudioCapture.is_running | ( | self | ) |
Return whether this capture backend is currently running.
Reimplemented from audio.capture.audio_capture_if.AudioCaptureIf.
| None audio.capture.pipewire_audio_capture.PipewireAudioCapture.start | ( | self, | |
| AudioSamplesCallback | callback ) |
Begin capture and invoke callback(samples, sample_rate_hz).
| callback | Consumer for normalized samples and their sample rate. |
Reimplemented from audio.capture.audio_capture_if.AudioCaptureIf.