flexaudio 0.8.0__tar.gz → 0.8.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flexaudio-0.8.0 → flexaudio-0.8.2}/Cargo.lock +13 -13
- {flexaudio-0.8.0 → flexaudio-0.8.2}/Cargo.toml +1 -1
- {flexaudio-0.8.0 → flexaudio-0.8.2}/PKG-INFO +17 -13
- {flexaudio-0.8.0 → flexaudio-0.8.2}/README.md +16 -12
- {flexaudio-0.8.0 → flexaudio-0.8.2}/THIRD_PARTY_NOTICES.md +9 -9
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/README.md +16 -12
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/THIRD_PARTY_NOTICES.md +9 -9
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/flexaudio.pyi +11 -10
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/Cargo.toml +6 -6
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/README.md +27 -3
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/THIRD_PARTY_NOTICES.md +7 -7
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/delivery.rs +3 -3
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream.rs +3 -4
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-denoise/README.md +6 -6
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-encode/Cargo.toml +1 -1
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-encode/README.md +2 -2
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/Cargo.toml +1 -1
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/Cargo.toml +1 -1
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/Cargo.toml +1 -1
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/README.md +5 -4
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/common.rs +81 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/devices.rs +36 -20
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/lib.rs +2 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/process.rs +63 -7
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/system.rs +60 -12
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/tap.rs +62 -32
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/Cargo.toml +2 -2
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/README.md +1 -1
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/Cargo.toml +1 -1
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/THIRD_PARTY_NOTICES.md +2 -2
- {flexaudio-0.8.0 → flexaudio-0.8.2}/pyproject.toml +1 -1
- {flexaudio-0.8.0 → flexaudio-0.8.2}/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/Cargo.toml +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/capabilities.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/config.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/denoise.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/device_namespace.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/encode.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/errors.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/lifecycle.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/marshal.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/pcm_buffer.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/secondary.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/settings.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/settings_validation.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/stream.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/stream_denoise_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/stream_secondary.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/stream_settings.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/stream_settings_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/stream_stop.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/stream_vad.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/vad.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/vad_marshal.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/src/watcher.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/rust/vad.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/test_capabilities_secondary.py +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/test_capability_fallbacks.py +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/test_contracts.py +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/test_exclude_pids.py +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/test_pcm_buffer.py +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/test_settings_lifecycle.py +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/test_startup_documentation.py +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/bindings/flexaudio-py/tests/test_stream_denoise.py +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/capabilities.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/device_watcher.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/child.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/contract_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/drift.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/notices.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/permission_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/repro_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/startup_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix/worker.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mix.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/mock.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/open_options.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/processes.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/settings.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/settings_guard_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/settings_request.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/settings_request_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/settings_resolver.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/settings_resolver_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/settings_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/contract_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/control.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/helper_lifecycle_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/intake.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/intake_generation.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/lifecycle.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/open_options_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/permission_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/processor.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/recovery_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/repro_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/settings_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/shared.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/source.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/source_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/startup_order.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/startup_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/tap_drain.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/terminal.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/tests/gain.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/tests/health.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/tests/output.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/tests/pause.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/tests/validation.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream/tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/stream_frame_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/src/validation.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/tests/integration.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio/tests/processes_linux.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/Cargo.toml +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/README.md +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/addon_error.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/arrival.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/backend.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/capabilities.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/chunk_ring.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/clock.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/device_namespace.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/diagnostics.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/error_context.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/error_equality.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/errors.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/helper_stop_reason.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/inventory.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/loss.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/normalizer/output.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/normalizer/repro_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/normalizer/resampler.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/normalizer/tests/clock.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/normalizer/tests/conversion.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/normalizer/tests/processor.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/normalizer/tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/normalizer.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/process_list.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/quant.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/raw_ring.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/secondary_ring.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/settings.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/spawn_error.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/startup.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/types.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/types_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-core/src/vad_error.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-denoise/Cargo.toml +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-denoise/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-denoise/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-encode/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-encode/src/error.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-encode/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-encode/src/writer.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-encode/tests/roundtrip.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/README.md +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/callback_mailbox.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/capture_owner/tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/capture_owner.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/input_config.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/mac_permission.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/mac_policy/tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/mac_policy.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/permission.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/windows_keeper.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/windows_permission.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/src/windows_policy.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-mic/tests/windows_cpal_keeper.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/README.md +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/capabilities.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/capability_probe.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/capture_control.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/capture_error.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/capture_failures.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/capture_proxy.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/device_info.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/discovery.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/link_error.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/owner.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/processes.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/proxy_release.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/readiness.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/watcher_failures.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/watcher_queue.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-linux/src/watcher_state.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/activity.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/capabilities.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/capture_health.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/inventory.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/native_probe/capture.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/native_probe/io.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/native_probe/output.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/native_probe.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/owner.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/probe/tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/probe.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/probe_signal.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/processes.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/tap/buffer.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/terminal.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-macos/src/version.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/capabilities.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/common.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/exclusion.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/format.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/inventory.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/keepalive.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/lifecycle.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/native_outcomes.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/owner.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/process.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/processes.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/system.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-os-windows/src/version.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/LICENSE +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/README.md +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/assets/silero_vad_openvino_16k.onnx +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/examples/dump_probs.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/examples/probe.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/capture_converter.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/capture_converter_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/infer.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/input_converter.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/lib.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/params.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/preview.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/resample.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/stream.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/stream_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/tap.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/tap_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/tap_types.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/types.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/whisper_cpp_segments.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/src/whisper_cpp_segments_tests.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/tests/fixtures/jp_2spk_FF_4s_16k.probs.txt +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/tests/fixtures/jp_2spk_FF_4s_16k.wav +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/tests/fixtures/whisper_vad_golden.json +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/tests/fixtures/whisper_vad_golden_extreme.json.gz +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/tests/speech_fixture.rs +0 -0
- {flexaudio-0.8.0 → flexaudio-0.8.2}/crates/flexaudio-vad/tests/whisper_golden.rs +0 -0
|
@@ -722,7 +722,7 @@ dependencies = [
|
|
|
722
722
|
|
|
723
723
|
[[package]]
|
|
724
724
|
name = "flexaudio"
|
|
725
|
-
version = "0.8.
|
|
725
|
+
version = "0.8.2"
|
|
726
726
|
dependencies = [
|
|
727
727
|
"flexaudio-core",
|
|
728
728
|
"flexaudio-denoise",
|
|
@@ -734,7 +734,7 @@ dependencies = [
|
|
|
734
734
|
|
|
735
735
|
[[package]]
|
|
736
736
|
name = "flexaudio-cli"
|
|
737
|
-
version = "0.8.
|
|
737
|
+
version = "0.8.2"
|
|
738
738
|
dependencies = [
|
|
739
739
|
"clap",
|
|
740
740
|
"ctrlc",
|
|
@@ -747,7 +747,7 @@ dependencies = [
|
|
|
747
747
|
|
|
748
748
|
[[package]]
|
|
749
749
|
name = "flexaudio-core"
|
|
750
|
-
version = "0.8.
|
|
750
|
+
version = "0.8.2"
|
|
751
751
|
dependencies = [
|
|
752
752
|
"bitflags 2.13.0",
|
|
753
753
|
"ringbuf",
|
|
@@ -758,14 +758,14 @@ dependencies = [
|
|
|
758
758
|
|
|
759
759
|
[[package]]
|
|
760
760
|
name = "flexaudio-denoise"
|
|
761
|
-
version = "0.8.
|
|
761
|
+
version = "0.8.2"
|
|
762
762
|
dependencies = [
|
|
763
763
|
"nnnoiseless",
|
|
764
764
|
]
|
|
765
765
|
|
|
766
766
|
[[package]]
|
|
767
767
|
name = "flexaudio-encode"
|
|
768
|
-
version = "0.8.
|
|
768
|
+
version = "0.8.2"
|
|
769
769
|
dependencies = [
|
|
770
770
|
"claxon",
|
|
771
771
|
"flacenc",
|
|
@@ -775,7 +775,7 @@ dependencies = [
|
|
|
775
775
|
|
|
776
776
|
[[package]]
|
|
777
777
|
name = "flexaudio-ffi"
|
|
778
|
-
version = "0.8.
|
|
778
|
+
version = "0.8.2"
|
|
779
779
|
dependencies = [
|
|
780
780
|
"flexaudio",
|
|
781
781
|
"flexaudio-denoise",
|
|
@@ -785,7 +785,7 @@ dependencies = [
|
|
|
785
785
|
|
|
786
786
|
[[package]]
|
|
787
787
|
name = "flexaudio-mic"
|
|
788
|
-
version = "0.8.
|
|
788
|
+
version = "0.8.2"
|
|
789
789
|
dependencies = [
|
|
790
790
|
"block2",
|
|
791
791
|
"cpal",
|
|
@@ -797,7 +797,7 @@ dependencies = [
|
|
|
797
797
|
|
|
798
798
|
[[package]]
|
|
799
799
|
name = "flexaudio-napi"
|
|
800
|
-
version = "0.8.
|
|
800
|
+
version = "0.8.2"
|
|
801
801
|
dependencies = [
|
|
802
802
|
"flexaudio",
|
|
803
803
|
"flexaudio-denoise",
|
|
@@ -810,7 +810,7 @@ dependencies = [
|
|
|
810
810
|
|
|
811
811
|
[[package]]
|
|
812
812
|
name = "flexaudio-os-linux"
|
|
813
|
-
version = "0.8.
|
|
813
|
+
version = "0.8.2"
|
|
814
814
|
dependencies = [
|
|
815
815
|
"flexaudio-core",
|
|
816
816
|
"pipewire",
|
|
@@ -818,7 +818,7 @@ dependencies = [
|
|
|
818
818
|
|
|
819
819
|
[[package]]
|
|
820
820
|
name = "flexaudio-os-macos"
|
|
821
|
-
version = "0.8.
|
|
821
|
+
version = "0.8.2"
|
|
822
822
|
dependencies = [
|
|
823
823
|
"block2",
|
|
824
824
|
"flexaudio-core",
|
|
@@ -832,7 +832,7 @@ dependencies = [
|
|
|
832
832
|
|
|
833
833
|
[[package]]
|
|
834
834
|
name = "flexaudio-os-windows"
|
|
835
|
-
version = "0.8.
|
|
835
|
+
version = "0.8.2"
|
|
836
836
|
dependencies = [
|
|
837
837
|
"flexaudio-core",
|
|
838
838
|
"windows",
|
|
@@ -840,7 +840,7 @@ dependencies = [
|
|
|
840
840
|
|
|
841
841
|
[[package]]
|
|
842
842
|
name = "flexaudio-py"
|
|
843
|
-
version = "0.8.
|
|
843
|
+
version = "0.8.2"
|
|
844
844
|
dependencies = [
|
|
845
845
|
"flexaudio",
|
|
846
846
|
"flexaudio-denoise",
|
|
@@ -851,7 +851,7 @@ dependencies = [
|
|
|
851
851
|
|
|
852
852
|
[[package]]
|
|
853
853
|
name = "flexaudio-vad"
|
|
854
|
-
version = "0.8.
|
|
854
|
+
version = "0.8.2"
|
|
855
855
|
dependencies = [
|
|
856
856
|
"flate2",
|
|
857
857
|
"flexaudio-core",
|
|
@@ -3,7 +3,7 @@ resolver = "2"
|
|
|
3
3
|
members = ["crates/flexaudio-core", "crates/flexaudio-os-windows", "crates/flexaudio-os-macos", "crates/flexaudio-os-linux", "crates/flexaudio-mic", "crates/flexaudio", "crates/flexaudio-vad", "crates/flexaudio-encode", "crates/flexaudio-denoise", "bindings/flexaudio-py"]
|
|
4
4
|
|
|
5
5
|
[workspace.package]
|
|
6
|
-
version = "0.8.
|
|
6
|
+
version = "0.8.2"
|
|
7
7
|
edition = "2021"
|
|
8
8
|
license = "MIT"
|
|
9
9
|
rust-version = "1.85"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flexaudio
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.2
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Classifier: Topic :: Multimedia :: Sound/Audio :: Capture/Recording
|
|
@@ -16,14 +16,14 @@ Project-URL: Repository, https://github.com/Studio-Sadola/flexaudio
|
|
|
16
16
|
|
|
17
17
|
# flexaudio (Python)
|
|
18
18
|
|
|
19
|
-
Python bindings for [flexaudio](https://github.com/Studio-Sadola/flexaudio), a
|
|
19
|
+
Python bindings for [flexaudio](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md), a
|
|
20
20
|
cross-platform audio capture library (microphone, system loopback, and
|
|
21
21
|
per-process loopback) written in Rust. Built with PyO3 and maturin.
|
|
22
22
|
|
|
23
23
|
## Install
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
pip install "flexaudio>=0.
|
|
26
|
+
pip install "flexaudio>=0.8,<0.9"
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
## Usage
|
|
@@ -97,9 +97,9 @@ an unsupported OS, or a permission denial), the OS did not answer within 3
|
|
|
97
97
|
seconds, or a previous enumeration is still in progress. On Windows, listing
|
|
98
98
|
and capturing both need Windows build 20348 or later (Windows 11 / Windows
|
|
99
99
|
Server 2022). `executable`, `bundle_id` (macOS only), and `is_output_active`
|
|
100
|
-
are `None` when the OS does not expose them.
|
|
101
|
-
|
|
102
|
-
unreadable.
|
|
100
|
+
are `None` when the OS does not expose them. `executable` is a basename, not a
|
|
101
|
+
path. On Linux it comes from the `/proc/<pid>/exe` target's basename, falling
|
|
102
|
+
back to `/proc/<pid>/comm` when `exe` is unreadable.
|
|
103
103
|
|
|
104
104
|
Optional keyword arguments: `device_id`, `output_rate` (default 48000),
|
|
105
105
|
`output_channels` (default 2), `chunk_ms` (only 20 is supported; other values
|
|
@@ -160,15 +160,19 @@ The fixed 20 ms chunk size preserves canonical capture conversion and ordering;
|
|
|
160
160
|
other chunk durations are rejected before opening a device.
|
|
161
161
|
|
|
162
162
|
On macOS, `silence_probe=False` disables the silence diagnosis tone. The default
|
|
163
|
-
is enabled
|
|
164
|
-
|
|
163
|
+
is enabled for system/process capture and the system lane of Mix. After five
|
|
164
|
+
continuous seconds of bit-exact zero native samples while an eligible external
|
|
165
|
+
captured process has active output (honoring exclusions and device selection),
|
|
166
|
+
it probes once per capture generation. A 1 kHz signal at amplitude 1e-5 plays for
|
|
167
|
+
roughly 300 ms to help distinguish permission failure from silence. This low-level
|
|
168
|
+
signal is not guaranteed inaudible and may enter capture when the host is included.
|
|
165
169
|
|
|
166
170
|
### Standalone add-ons
|
|
167
171
|
|
|
168
172
|
The same building blocks are available as independent classes.
|
|
169
173
|
|
|
170
174
|
```python
|
|
171
|
-
# Voice activity detection over
|
|
175
|
+
# Voice activity detection over PCM (mono/stereo, 8000–192000 Hz).
|
|
172
176
|
vad = flexaudio.Vad(threshold=0.5, min_silence_ms=100)
|
|
173
177
|
for ev in vad.process(samples, input_sample_rate=48000, input_channels=2):
|
|
174
178
|
print(ev.type)
|
|
@@ -250,8 +254,8 @@ their models/tables and require no runtime files or network access:
|
|
|
250
254
|
|
|
251
255
|
`Vad` runs embedded Silero v6 on normalized float32, with
|
|
252
256
|
segmentation matching whisper.cpp pin `85a69493a601d4ff5a834064f7b7bac250bd8739`.
|
|
253
|
-
`process(samples, input_sample_rate=16000, input_channels=1)` accepts
|
|
254
|
-
positive
|
|
257
|
+
`process(samples, input_sample_rate=16000, input_channels=1)` accepts input rates
|
|
258
|
+
of 8000–192000 Hz and positive channel counts, and converts to mono16k internally. Event
|
|
255
259
|
times use the input timeline, compensated for converter group delay. After raw
|
|
256
260
|
input validation, finite resampler overshoot is clipped internally to [-1, 1]. It accepts
|
|
257
261
|
a sequence or a contiguous one-dimensional native float32 buffer;
|
|
@@ -334,7 +338,7 @@ raising `IgnoredSettingsError` with its complete candidate `.report`.
|
|
|
334
338
|
`strict=None` means false on open and retention on switch. Gain and ring capacity
|
|
335
339
|
stay fixed at open; non-default switch requests are ignored with `fixedAtOpen`.
|
|
336
340
|
Use `set_gain()` for runtime gain changes. Python switch denoise remains applied.
|
|
337
|
-
See the root README's [ignored-setting table](
|
|
341
|
+
See the root README's [ignored-setting table](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md#strict-mode-and-effective-settings).
|
|
338
342
|
|
|
339
343
|
`stream.poll_lifecycle_event()` consumes a separate ordered helper-event FIFO;
|
|
340
344
|
`poll_event()` never returns lifecycle notifications, even as unknown events.
|
|
@@ -345,7 +349,7 @@ overflow. Every emitted Started has exactly one Stopped with a reason. macOS
|
|
|
345
349
|
Started means entry into a diagnostic attempt; Windows Started means successful
|
|
346
350
|
keepalive render start. Stopped ends ownership after teardown attempts; typed cleanup
|
|
347
351
|
errors remain authoritative. There is no ordering guarantee relative to PCM or
|
|
348
|
-
ordinary events. See [helper behavior and controls](
|
|
352
|
+
ordinary events. See [helper behavior and controls](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md#optional-playback-helpers-and-lifecycle).
|
|
349
353
|
|
|
350
354
|
Both chunk types expose `arrival_ns`, exactly equal to `pts_ns`. The old chunk
|
|
351
355
|
name is documentation-only deprecated since 0.8 and retained throughout 0.9.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# flexaudio (Python)
|
|
2
2
|
|
|
3
|
-
Python bindings for [flexaudio](https://github.com/Studio-Sadola/flexaudio), a
|
|
3
|
+
Python bindings for [flexaudio](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md), a
|
|
4
4
|
cross-platform audio capture library (microphone, system loopback, and
|
|
5
5
|
per-process loopback) written in Rust. Built with PyO3 and maturin.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
pip install "flexaudio>=0.
|
|
10
|
+
pip install "flexaudio>=0.8,<0.9"
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
@@ -81,9 +81,9 @@ an unsupported OS, or a permission denial), the OS did not answer within 3
|
|
|
81
81
|
seconds, or a previous enumeration is still in progress. On Windows, listing
|
|
82
82
|
and capturing both need Windows build 20348 or later (Windows 11 / Windows
|
|
83
83
|
Server 2022). `executable`, `bundle_id` (macOS only), and `is_output_active`
|
|
84
|
-
are `None` when the OS does not expose them.
|
|
85
|
-
|
|
86
|
-
unreadable.
|
|
84
|
+
are `None` when the OS does not expose them. `executable` is a basename, not a
|
|
85
|
+
path. On Linux it comes from the `/proc/<pid>/exe` target's basename, falling
|
|
86
|
+
back to `/proc/<pid>/comm` when `exe` is unreadable.
|
|
87
87
|
|
|
88
88
|
Optional keyword arguments: `device_id`, `output_rate` (default 48000),
|
|
89
89
|
`output_channels` (default 2), `chunk_ms` (only 20 is supported; other values
|
|
@@ -144,15 +144,19 @@ The fixed 20 ms chunk size preserves canonical capture conversion and ordering;
|
|
|
144
144
|
other chunk durations are rejected before opening a device.
|
|
145
145
|
|
|
146
146
|
On macOS, `silence_probe=False` disables the silence diagnosis tone. The default
|
|
147
|
-
is enabled
|
|
148
|
-
|
|
147
|
+
is enabled for system/process capture and the system lane of Mix. After five
|
|
148
|
+
continuous seconds of bit-exact zero native samples while an eligible external
|
|
149
|
+
captured process has active output (honoring exclusions and device selection),
|
|
150
|
+
it probes once per capture generation. A 1 kHz signal at amplitude 1e-5 plays for
|
|
151
|
+
roughly 300 ms to help distinguish permission failure from silence. This low-level
|
|
152
|
+
signal is not guaranteed inaudible and may enter capture when the host is included.
|
|
149
153
|
|
|
150
154
|
### Standalone add-ons
|
|
151
155
|
|
|
152
156
|
The same building blocks are available as independent classes.
|
|
153
157
|
|
|
154
158
|
```python
|
|
155
|
-
# Voice activity detection over
|
|
159
|
+
# Voice activity detection over PCM (mono/stereo, 8000–192000 Hz).
|
|
156
160
|
vad = flexaudio.Vad(threshold=0.5, min_silence_ms=100)
|
|
157
161
|
for ev in vad.process(samples, input_sample_rate=48000, input_channels=2):
|
|
158
162
|
print(ev.type)
|
|
@@ -234,8 +238,8 @@ their models/tables and require no runtime files or network access:
|
|
|
234
238
|
|
|
235
239
|
`Vad` runs embedded Silero v6 on normalized float32, with
|
|
236
240
|
segmentation matching whisper.cpp pin `85a69493a601d4ff5a834064f7b7bac250bd8739`.
|
|
237
|
-
`process(samples, input_sample_rate=16000, input_channels=1)` accepts
|
|
238
|
-
positive
|
|
241
|
+
`process(samples, input_sample_rate=16000, input_channels=1)` accepts input rates
|
|
242
|
+
of 8000–192000 Hz and positive channel counts, and converts to mono16k internally. Event
|
|
239
243
|
times use the input timeline, compensated for converter group delay. After raw
|
|
240
244
|
input validation, finite resampler overshoot is clipped internally to [-1, 1]. It accepts
|
|
241
245
|
a sequence or a contiguous one-dimensional native float32 buffer;
|
|
@@ -318,7 +322,7 @@ raising `IgnoredSettingsError` with its complete candidate `.report`.
|
|
|
318
322
|
`strict=None` means false on open and retention on switch. Gain and ring capacity
|
|
319
323
|
stay fixed at open; non-default switch requests are ignored with `fixedAtOpen`.
|
|
320
324
|
Use `set_gain()` for runtime gain changes. Python switch denoise remains applied.
|
|
321
|
-
See the root README's [ignored-setting table](
|
|
325
|
+
See the root README's [ignored-setting table](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md#strict-mode-and-effective-settings).
|
|
322
326
|
|
|
323
327
|
`stream.poll_lifecycle_event()` consumes a separate ordered helper-event FIFO;
|
|
324
328
|
`poll_event()` never returns lifecycle notifications, even as unknown events.
|
|
@@ -329,7 +333,7 @@ overflow. Every emitted Started has exactly one Stopped with a reason. macOS
|
|
|
329
333
|
Started means entry into a diagnostic attempt; Windows Started means successful
|
|
330
334
|
keepalive render start. Stopped ends ownership after teardown attempts; typed cleanup
|
|
331
335
|
errors remain authoritative. There is no ordering guarantee relative to PCM or
|
|
332
|
-
ordinary events. See [helper behavior and controls](
|
|
336
|
+
ordinary events. See [helper behavior and controls](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md#optional-playback-helpers-and-lifecycle).
|
|
333
337
|
|
|
334
338
|
Both chunk types expose `arrival_ns`, exactly equal to `pts_ns`. The old chunk
|
|
335
339
|
name is documentation-only deprecated since 0.8 and retained throughout 0.9.
|
|
@@ -2633,15 +2633,15 @@ SOFTWARE.
|
|
|
2633
2633
|
|
|
2634
2634
|
Used by:
|
|
2635
2635
|
|
|
2636
|
-
- [flexaudio 0.8.
|
|
2637
|
-
- [flexaudio-core 0.8.
|
|
2638
|
-
- [flexaudio-denoise 0.8.
|
|
2639
|
-
- [flexaudio-encode 0.8.
|
|
2640
|
-
- [flexaudio-mic 0.8.
|
|
2641
|
-
- [flexaudio-os-linux 0.8.
|
|
2642
|
-
- [flexaudio-os-macos 0.8.
|
|
2643
|
-
- [flexaudio-os-windows 0.8.
|
|
2644
|
-
- [flexaudio-vad 0.8.
|
|
2636
|
+
- [flexaudio 0.8.2](https://crates.io/crates/flexaudio/0.8.2)
|
|
2637
|
+
- [flexaudio-core 0.8.2](https://crates.io/crates/flexaudio-core/0.8.2)
|
|
2638
|
+
- [flexaudio-denoise 0.8.2](https://crates.io/crates/flexaudio-denoise/0.8.2)
|
|
2639
|
+
- [flexaudio-encode 0.8.2](https://crates.io/crates/flexaudio-encode/0.8.2)
|
|
2640
|
+
- [flexaudio-mic 0.8.2](https://crates.io/crates/flexaudio-mic/0.8.2)
|
|
2641
|
+
- [flexaudio-os-linux 0.8.2](https://crates.io/crates/flexaudio-os-linux/0.8.2)
|
|
2642
|
+
- [flexaudio-os-macos 0.8.2](https://crates.io/crates/flexaudio-os-macos/0.8.2)
|
|
2643
|
+
- [flexaudio-os-windows 0.8.2](https://crates.io/crates/flexaudio-os-windows/0.8.2)
|
|
2644
|
+
- [flexaudio-vad 0.8.2](https://crates.io/crates/flexaudio-vad/0.8.2)
|
|
2645
2645
|
|
|
2646
2646
|
````text
|
|
2647
2647
|
MIT License
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# flexaudio (Python)
|
|
2
2
|
|
|
3
|
-
Python bindings for [flexaudio](https://github.com/Studio-Sadola/flexaudio), a
|
|
3
|
+
Python bindings for [flexaudio](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md), a
|
|
4
4
|
cross-platform audio capture library (microphone, system loopback, and
|
|
5
5
|
per-process loopback) written in Rust. Built with PyO3 and maturin.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
pip install "flexaudio>=0.
|
|
10
|
+
pip install "flexaudio>=0.8,<0.9"
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
@@ -81,9 +81,9 @@ an unsupported OS, or a permission denial), the OS did not answer within 3
|
|
|
81
81
|
seconds, or a previous enumeration is still in progress. On Windows, listing
|
|
82
82
|
and capturing both need Windows build 20348 or later (Windows 11 / Windows
|
|
83
83
|
Server 2022). `executable`, `bundle_id` (macOS only), and `is_output_active`
|
|
84
|
-
are `None` when the OS does not expose them.
|
|
85
|
-
|
|
86
|
-
unreadable.
|
|
84
|
+
are `None` when the OS does not expose them. `executable` is a basename, not a
|
|
85
|
+
path. On Linux it comes from the `/proc/<pid>/exe` target's basename, falling
|
|
86
|
+
back to `/proc/<pid>/comm` when `exe` is unreadable.
|
|
87
87
|
|
|
88
88
|
Optional keyword arguments: `device_id`, `output_rate` (default 48000),
|
|
89
89
|
`output_channels` (default 2), `chunk_ms` (only 20 is supported; other values
|
|
@@ -144,15 +144,19 @@ The fixed 20 ms chunk size preserves canonical capture conversion and ordering;
|
|
|
144
144
|
other chunk durations are rejected before opening a device.
|
|
145
145
|
|
|
146
146
|
On macOS, `silence_probe=False` disables the silence diagnosis tone. The default
|
|
147
|
-
is enabled
|
|
148
|
-
|
|
147
|
+
is enabled for system/process capture and the system lane of Mix. After five
|
|
148
|
+
continuous seconds of bit-exact zero native samples while an eligible external
|
|
149
|
+
captured process has active output (honoring exclusions and device selection),
|
|
150
|
+
it probes once per capture generation. A 1 kHz signal at amplitude 1e-5 plays for
|
|
151
|
+
roughly 300 ms to help distinguish permission failure from silence. This low-level
|
|
152
|
+
signal is not guaranteed inaudible and may enter capture when the host is included.
|
|
149
153
|
|
|
150
154
|
### Standalone add-ons
|
|
151
155
|
|
|
152
156
|
The same building blocks are available as independent classes.
|
|
153
157
|
|
|
154
158
|
```python
|
|
155
|
-
# Voice activity detection over
|
|
159
|
+
# Voice activity detection over PCM (mono/stereo, 8000–192000 Hz).
|
|
156
160
|
vad = flexaudio.Vad(threshold=0.5, min_silence_ms=100)
|
|
157
161
|
for ev in vad.process(samples, input_sample_rate=48000, input_channels=2):
|
|
158
162
|
print(ev.type)
|
|
@@ -234,8 +238,8 @@ their models/tables and require no runtime files or network access:
|
|
|
234
238
|
|
|
235
239
|
`Vad` runs embedded Silero v6 on normalized float32, with
|
|
236
240
|
segmentation matching whisper.cpp pin `85a69493a601d4ff5a834064f7b7bac250bd8739`.
|
|
237
|
-
`process(samples, input_sample_rate=16000, input_channels=1)` accepts
|
|
238
|
-
positive
|
|
241
|
+
`process(samples, input_sample_rate=16000, input_channels=1)` accepts input rates
|
|
242
|
+
of 8000–192000 Hz and positive channel counts, and converts to mono16k internally. Event
|
|
239
243
|
times use the input timeline, compensated for converter group delay. After raw
|
|
240
244
|
input validation, finite resampler overshoot is clipped internally to [-1, 1]. It accepts
|
|
241
245
|
a sequence or a contiguous one-dimensional native float32 buffer;
|
|
@@ -318,7 +322,7 @@ raising `IgnoredSettingsError` with its complete candidate `.report`.
|
|
|
318
322
|
`strict=None` means false on open and retention on switch. Gain and ring capacity
|
|
319
323
|
stay fixed at open; non-default switch requests are ignored with `fixedAtOpen`.
|
|
320
324
|
Use `set_gain()` for runtime gain changes. Python switch denoise remains applied.
|
|
321
|
-
See the root README's [ignored-setting table](
|
|
325
|
+
See the root README's [ignored-setting table](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md#strict-mode-and-effective-settings).
|
|
322
326
|
|
|
323
327
|
`stream.poll_lifecycle_event()` consumes a separate ordered helper-event FIFO;
|
|
324
328
|
`poll_event()` never returns lifecycle notifications, even as unknown events.
|
|
@@ -329,7 +333,7 @@ overflow. Every emitted Started has exactly one Stopped with a reason. macOS
|
|
|
329
333
|
Started means entry into a diagnostic attempt; Windows Started means successful
|
|
330
334
|
keepalive render start. Stopped ends ownership after teardown attempts; typed cleanup
|
|
331
335
|
errors remain authoritative. There is no ordering guarantee relative to PCM or
|
|
332
|
-
ordinary events. See [helper behavior and controls](
|
|
336
|
+
ordinary events. See [helper behavior and controls](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md#optional-playback-helpers-and-lifecycle).
|
|
333
337
|
|
|
334
338
|
Both chunk types expose `arrival_ns`, exactly equal to `pts_ns`. The old chunk
|
|
335
339
|
name is documentation-only deprecated since 0.8 and retained throughout 0.9.
|
|
@@ -2633,15 +2633,15 @@ SOFTWARE.
|
|
|
2633
2633
|
|
|
2634
2634
|
Used by:
|
|
2635
2635
|
|
|
2636
|
-
- [flexaudio 0.8.
|
|
2637
|
-
- [flexaudio-core 0.8.
|
|
2638
|
-
- [flexaudio-denoise 0.8.
|
|
2639
|
-
- [flexaudio-encode 0.8.
|
|
2640
|
-
- [flexaudio-mic 0.8.
|
|
2641
|
-
- [flexaudio-os-linux 0.8.
|
|
2642
|
-
- [flexaudio-os-macos 0.8.
|
|
2643
|
-
- [flexaudio-os-windows 0.8.
|
|
2644
|
-
- [flexaudio-vad 0.8.
|
|
2636
|
+
- [flexaudio 0.8.2](https://crates.io/crates/flexaudio/0.8.2)
|
|
2637
|
+
- [flexaudio-core 0.8.2](https://crates.io/crates/flexaudio-core/0.8.2)
|
|
2638
|
+
- [flexaudio-denoise 0.8.2](https://crates.io/crates/flexaudio-denoise/0.8.2)
|
|
2639
|
+
- [flexaudio-encode 0.8.2](https://crates.io/crates/flexaudio-encode/0.8.2)
|
|
2640
|
+
- [flexaudio-mic 0.8.2](https://crates.io/crates/flexaudio-mic/0.8.2)
|
|
2641
|
+
- [flexaudio-os-linux 0.8.2](https://crates.io/crates/flexaudio-os-linux/0.8.2)
|
|
2642
|
+
- [flexaudio-os-macos 0.8.2](https://crates.io/crates/flexaudio-os-macos/0.8.2)
|
|
2643
|
+
- [flexaudio-os-windows 0.8.2](https://crates.io/crates/flexaudio-os-windows/0.8.2)
|
|
2644
|
+
- [flexaudio-vad 0.8.2](https://crates.io/crates/flexaudio-vad/0.8.2)
|
|
2645
2645
|
|
|
2646
2646
|
````text
|
|
2647
2647
|
MIT License
|
|
@@ -452,10 +452,10 @@ class ProcessInfo:
|
|
|
452
452
|
def is_output_active(self) -> Optional[bool]: ...
|
|
453
453
|
|
|
454
454
|
class AudioChunk:
|
|
455
|
-
"""pts_ns is an arrival-time label
|
|
455
|
+
"""pts_ns is an arrival-time label assigned at facade ingest and clamped non-decreasing.
|
|
456
456
|
|
|
457
|
-
Callback jitter may
|
|
458
|
-
|
|
457
|
+
Callback jitter may cause overlapping ranges, repeated labels or gaps; this is not
|
|
458
|
+
a media clock. frame_index is authoritative (gaps are loss). Exact VAD mapping uses
|
|
459
459
|
epoch_start.pts_ns + t_ms*1_000_000, or epoch_start.capture_sample + t_ms*48.
|
|
460
460
|
"""
|
|
461
461
|
@property
|
|
@@ -501,7 +501,7 @@ class StreamEvent:
|
|
|
501
501
|
generation's first chunk. Event-first callers drain the ordinary FIFO event
|
|
502
502
|
queue before PCM to observe the notice first. PCM polling does not wait for event polling.
|
|
503
503
|
Arrival gaps without reopen emit no event/DISCONTINUITY: frame_index stays
|
|
504
|
-
contiguous,
|
|
504
|
+
contiguous, primary and secondary arrival labels can jump, and attached Vad keeps its epoch open.
|
|
505
505
|
Stall: >=2 s without consumed samples, checked every 250 ms; stalled, reopen,
|
|
506
506
|
each failed reopen attempt emits recoverableError and backs off 250 ms..5 s.
|
|
507
507
|
On success, recovered is emitted when new PCM arrives. First new-generation primary
|
|
@@ -511,9 +511,10 @@ class StreamEvent:
|
|
|
511
511
|
macOS microphone capture requires decided consent before each start; it does
|
|
512
512
|
not continuously monitor authorization changes or permission revocation.
|
|
513
513
|
|
|
514
|
-
On macOS, system/process capture
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
On macOS, system/process capture, including the system lane of Mix, can confirm
|
|
515
|
+
SystemAudio denial with a once-per-generation self-probe after five continuous
|
|
516
|
+
seconds of exact zeros and eligible external output activity. Its low-level signal
|
|
517
|
+
is not guaranteed inaudible. Its separate private tap captures our own diagnostic output; this signal may
|
|
517
518
|
also enter user capture if our process is included. An inconclusive probe is
|
|
518
519
|
advisory only. Stopping cancels the probe without a late event.
|
|
519
520
|
"""
|
|
@@ -783,7 +784,7 @@ class VadRuntimeError(RuntimeError):
|
|
|
783
784
|
class Vad:
|
|
784
785
|
"""Accepts float sequences or contiguous 1-D native float32 buffers.
|
|
785
786
|
|
|
786
|
-
Input defaults to mono16k.
|
|
787
|
+
Input defaults to mono16k. Rates of 8000–192000 Hz and positive channel counts are converted internally;
|
|
787
788
|
event milliseconds use the input timeline with converter group delay compensated.
|
|
788
789
|
After raw input validation, finite resampler overshoot is clipped internally to [-1, 1].
|
|
789
790
|
max_speech_ms=0 or values above 100000000 use the effectively unbounded
|
|
@@ -844,9 +845,9 @@ def devices() -> List[DeviceInfo]:
|
|
|
844
845
|
"""Collection/count failure raises a typed exception; per-entry metadata stays unknown.
|
|
845
846
|
|
|
846
847
|
On macOS, enumeration never prompts. With undecided microphone consent it
|
|
847
|
-
raises
|
|
848
|
+
raises BackendError before any HAL/device/format query. Grant the
|
|
848
849
|
responsible host access or use the bounded capture-open consent flow, then retry.
|
|
849
|
-
Denied/restricted consent raises
|
|
850
|
+
Denied/restricted consent raises RecordingPermissionError. Unreadable mandatory formats
|
|
850
851
|
use format_available=False and 0/0; other entries stay usable. Collection/count
|
|
851
852
|
failures raise; entries without readable selectable identity may be omitted.
|
|
852
853
|
Windows enumeration does not preflight microphone permission; native enumeration
|
|
@@ -13,24 +13,24 @@ readme = "README.md"
|
|
|
13
13
|
documentation = "https://docs.rs/flexaudio"
|
|
14
14
|
|
|
15
15
|
[dependencies]
|
|
16
|
-
flexaudio-core = { path = "../flexaudio-core", version = "0.8.
|
|
16
|
+
flexaudio-core = { path = "../flexaudio-core", version = "0.8.2" }
|
|
17
17
|
# Bundle the microphone input backend (cpal, all OSes) for device enumeration (`devices()`).
|
|
18
|
-
flexaudio-mic = { path = "../flexaudio-mic", version = "0.8.
|
|
18
|
+
flexaudio-mic = { path = "../flexaudio-mic", version = "0.8.2" }
|
|
19
19
|
# Inject recording-time noise suppression (RNNoise) into the internal canonical form (facade intake wiring point).
|
|
20
20
|
# Keep core independent of denoise; this facade plugs its implementation into core’s InnerProcessor abstraction.
|
|
21
|
-
flexaudio-denoise = { path = "../flexaudio-denoise", version = "0.8.
|
|
21
|
+
flexaudio-denoise = { path = "../flexaudio-denoise", version = "0.8.2" }
|
|
22
22
|
|
|
23
23
|
# Bundle the system output sink (PipeWire) for device enumeration (Linux only).
|
|
24
24
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
25
|
-
flexaudio-os-linux = { path = "../flexaudio-os-linux", version = "0.8.
|
|
25
|
+
flexaudio-os-linux = { path = "../flexaudio-os-linux", version = "0.8.2" }
|
|
26
26
|
|
|
27
27
|
# Bundle system / process loopback (WASAPI) (Windows only).
|
|
28
28
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
29
|
-
flexaudio-os-windows = { path = "../flexaudio-os-windows", version = "0.8.
|
|
29
|
+
flexaudio-os-windows = { path = "../flexaudio-os-windows", version = "0.8.2" }
|
|
30
30
|
|
|
31
31
|
# Bundle system / process loopback (CoreAudio Process Taps) (macOS only).
|
|
32
32
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
33
|
-
flexaudio-os-macos = { path = "../flexaudio-os-macos", version = "0.8.
|
|
33
|
+
flexaudio-os-macos = { path = "../flexaudio-os-macos", version = "0.8.2" }
|
|
34
34
|
|
|
35
35
|
[package.metadata.docs.rs]
|
|
36
36
|
default-target = "x86_64-unknown-linux-gnu"
|
|
@@ -112,10 +112,34 @@ reports `Event::StreamStalled` and reopens repeatedly until audio plays.
|
|
|
112
112
|
replaces them together with the source; ordinary `switch_source` retains them.
|
|
113
113
|
Construction/startup failures retain the previous settings.
|
|
114
114
|
|
|
115
|
+
## Settings and metadata in 0.8
|
|
116
|
+
|
|
117
|
+
- `OpenOptions::new().strict(true)` rejects non-default settings that would be ignored
|
|
118
|
+
before native access. `Stream::effective_settings()` exposes the last successful
|
|
119
|
+
facade open/switch report, including after stop; custom-backend streams return
|
|
120
|
+
`None`. Failed switches retain the previous report.
|
|
121
|
+
- `resolve_settings(&SettingsRequest)` resolves settings without device access or
|
|
122
|
+
model loading. `SettingsAttachments` describes processing attachments and switch
|
|
123
|
+
policy; it does not install those attachments. The resolver reports applicability
|
|
124
|
+
but does not validate capture arguments or enforce strictness itself.
|
|
125
|
+
- `Stream::poll_event()` carries `Event::SilenceProbeStarted`,
|
|
126
|
+
`Event::SilenceProbeStopped`, `Event::ClassicLoopbackKeepaliveStarted`, and
|
|
127
|
+
`Event::ClassicLoopbackKeepaliveStopped`. Every emitted Started has exactly one
|
|
128
|
+
Stopped with a reason. Stopped ends helper ownership after teardown attempts;
|
|
129
|
+
it does not guarantee native cleanup succeeded.
|
|
130
|
+
- `AudioChunk::arrival_ns()` and `SecondaryChunk::arrival_ns()` alias `pts_ns`
|
|
131
|
+
exactly. These arrival labels are clamped non-decreasing; use `frame_index`
|
|
132
|
+
for audio continuity. The old naming is documentation-only deprecated since
|
|
133
|
+
0.8 and retained throughout 0.9.
|
|
134
|
+
- `devices_with_namespaces()` preserves selectable device IDs and adds provider
|
|
135
|
+
provenance; namespace tags do not promise persistent hardware identity.
|
|
136
|
+
- `StreamConfig::ring_capacity_chunks` sets the queue capacity at open; the default
|
|
137
|
+
is 50 chunks.
|
|
138
|
+
|
|
115
139
|
## Install
|
|
116
140
|
|
|
117
141
|
```sh
|
|
118
|
-
cargo add flexaudio@0.
|
|
142
|
+
cargo add flexaudio@0.8
|
|
119
143
|
```
|
|
120
144
|
|
|
121
145
|
## Permissions
|
|
@@ -123,7 +147,7 @@ cargo add flexaudio@0.4
|
|
|
123
147
|
Audio capture requires user consent: macOS TCC (`kTCCServiceAudioCapture`, add
|
|
124
148
|
`NSAudioCaptureUsageDescription` to `Info.plist`), the Windows Microphone privacy
|
|
125
149
|
setting, and a running PipeWire session on Linux for system/process capture. See
|
|
126
|
-
the [workspace README](https://github.com/Studio-Sadola/flexaudio#os-specific-permission-requirements).
|
|
150
|
+
the [workspace README](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/README.md#os-specific-permission-requirements).
|
|
127
151
|
|
|
128
152
|
On macOS, system/process loopback (Core Audio process taps) requires macOS 14.4
|
|
129
153
|
or later.
|
|
@@ -135,4 +159,4 @@ Rust **1.85**.
|
|
|
135
159
|
## License
|
|
136
160
|
|
|
137
161
|
[MIT](LICENSE) © 2026 tubome / Studio Sadola. Third-party notices:
|
|
138
|
-
[`THIRD_PARTY_NOTICES.md`](
|
|
162
|
+
[`THIRD_PARTY_NOTICES.md`](https://github.com/Studio-Sadola/flexaudio/blob/v0.8.2/THIRD_PARTY_NOTICES.md).
|
|
@@ -1040,13 +1040,13 @@ SOFTWARE.
|
|
|
1040
1040
|
|
|
1041
1041
|
Used by:
|
|
1042
1042
|
|
|
1043
|
-
- [flexaudio 0.8.
|
|
1044
|
-
- [flexaudio-core 0.8.
|
|
1045
|
-
- [flexaudio-denoise 0.8.
|
|
1046
|
-
- [flexaudio-mic 0.8.
|
|
1047
|
-
- [flexaudio-os-linux 0.8.
|
|
1048
|
-
- [flexaudio-os-macos 0.8.
|
|
1049
|
-
- [flexaudio-os-windows 0.8.
|
|
1043
|
+
- [flexaudio 0.8.2](https://crates.io/crates/flexaudio/0.8.2)
|
|
1044
|
+
- [flexaudio-core 0.8.2](https://crates.io/crates/flexaudio-core/0.8.2)
|
|
1045
|
+
- [flexaudio-denoise 0.8.2](https://crates.io/crates/flexaudio-denoise/0.8.2)
|
|
1046
|
+
- [flexaudio-mic 0.8.2](https://crates.io/crates/flexaudio-mic/0.8.2)
|
|
1047
|
+
- [flexaudio-os-linux 0.8.2](https://crates.io/crates/flexaudio-os-linux/0.8.2)
|
|
1048
|
+
- [flexaudio-os-macos 0.8.2](https://crates.io/crates/flexaudio-os-macos/0.8.2)
|
|
1049
|
+
- [flexaudio-os-windows 0.8.2](https://crates.io/crates/flexaudio-os-windows/0.8.2)
|
|
1050
1050
|
|
|
1051
1051
|
````text
|
|
1052
1052
|
MIT License
|
|
@@ -215,9 +215,9 @@ impl Stream {
|
|
|
215
215
|
|
|
216
216
|
/// Native format `(sample_rate, channels)` of the current backend.
|
|
217
217
|
///
|
|
218
|
-
///
|
|
219
|
-
///
|
|
220
|
-
///
|
|
218
|
+
/// Obtained from the backend at open and refreshed whenever capture starts or restarts, including
|
|
219
|
+
/// watchdog recovery and [`switch_source`](Self::switch_source). For display and diagnostics
|
|
220
|
+
/// (output format is `config().output`).
|
|
221
221
|
pub fn native_format(&self) -> (u32, u16) {
|
|
222
222
|
// Recover and read the value even if poisoned (avoid a panic cascade).
|
|
223
223
|
*self
|
|
@@ -175,10 +175,9 @@ struct SharedState {
|
|
|
175
175
|
|
|
176
176
|
/// Native format `(sample_rate, channels)` of the current `backend`.
|
|
177
177
|
///
|
|
178
|
-
///
|
|
179
|
-
///
|
|
180
|
-
///
|
|
181
|
-
/// native-dependent first stage of [`Normalizer`].
|
|
178
|
+
/// Obtained from the backend at open and refreshed whenever capture starts or restarts, including
|
|
179
|
+
/// watchdog recovery and [`Stream::switch_source`]. On a generation change, the intake thread
|
|
180
|
+
/// rereads this and rebuilds the native-dependent first stage of [`Normalizer`].
|
|
182
181
|
native_format: Mutex<(u32, u16)>,
|
|
183
182
|
|
|
184
183
|
/// Source-switch flag. [`Stream::switch_backend`] sets it to true during a switch. The watchdog
|