flexaudio 0.6.2__tar.gz → 0.8.0__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.6.2 → flexaudio-0.8.0}/Cargo.lock +14 -13
- {flexaudio-0.6.2 → flexaudio-0.8.0}/Cargo.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.8.0}/PKG-INFO +90 -6
- {flexaudio-0.6.2 → flexaudio-0.8.0}/README.md +89 -5
- {flexaudio-0.6.2 → flexaudio-0.8.0}/THIRD_PARTY_NOTICES.md +9 -9
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/README.md +89 -5
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/THIRD_PARTY_NOTICES.md +9 -9
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/flexaudio.pyi +185 -4
- flexaudio-0.8.0/bindings/flexaudio-py/src/capabilities.rs +298 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/config.rs +17 -0
- flexaudio-0.8.0/bindings/flexaudio-py/src/device_namespace.rs +80 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/errors.rs +18 -1
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/lib.rs +19 -2
- flexaudio-0.8.0/bindings/flexaudio-py/src/lifecycle.rs +30 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/marshal.rs +8 -20
- flexaudio-0.8.0/bindings/flexaudio-py/src/secondary.rs +206 -0
- flexaudio-0.8.0/bindings/flexaudio-py/src/settings.rs +105 -0
- flexaudio-0.8.0/bindings/flexaudio-py/src/settings_validation.rs +34 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/stream.rs +208 -115
- flexaudio-0.8.0/bindings/flexaudio-py/src/stream_denoise_tests.rs +158 -0
- flexaudio-0.8.0/bindings/flexaudio-py/src/stream_secondary.rs +195 -0
- flexaudio-0.8.0/bindings/flexaudio-py/src/stream_settings.rs +64 -0
- flexaudio-0.8.0/bindings/flexaudio-py/src/stream_settings_tests.rs +403 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/stream_stop.rs +11 -45
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/stream_vad.rs +26 -12
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/vad.rs +3 -3
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/tests/rust/vad.rs +2 -1
- flexaudio-0.8.0/bindings/flexaudio-py/tests/test_capabilities_secondary.py +53 -0
- flexaudio-0.8.0/bindings/flexaudio-py/tests/test_capability_fallbacks.py +67 -0
- flexaudio-0.8.0/bindings/flexaudio-py/tests/test_settings_lifecycle.py +87 -0
- flexaudio-0.8.0/bindings/flexaudio-py/tests/test_stream_denoise.py +32 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/Cargo.toml +6 -6
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/README.md +54 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/THIRD_PARTY_NOTICES.md +7 -7
- flexaudio-0.8.0/crates/flexaudio/src/capabilities.rs +70 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/lib.rs +78 -15
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/child.rs +1 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/notices.rs +16 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix.rs +20 -0
- flexaudio-0.8.0/crates/flexaudio/src/open_options.rs +56 -0
- flexaudio-0.8.0/crates/flexaudio/src/settings.rs +34 -0
- flexaudio-0.8.0/crates/flexaudio/src/settings_guard_tests.rs +59 -0
- flexaudio-0.8.0/crates/flexaudio/src/settings_request.rs +159 -0
- flexaudio-0.8.0/crates/flexaudio/src/settings_request_tests.rs +140 -0
- flexaudio-0.8.0/crates/flexaudio/src/settings_resolver.rs +284 -0
- flexaudio-0.8.0/crates/flexaudio/src/settings_resolver_tests.rs +552 -0
- flexaudio-0.8.0/crates/flexaudio/src/settings_tests.rs +128 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/control.rs +115 -6
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/delivery.rs +5 -1
- flexaudio-0.8.0/crates/flexaudio/src/stream/helper_lifecycle_tests.rs +351 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/lifecycle.rs +24 -5
- flexaudio-0.8.0/crates/flexaudio/src/stream/open_options_tests.rs +238 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/recovery_tests.rs +2 -0
- flexaudio-0.8.0/crates/flexaudio/src/stream/settings_tests.rs +347 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/shared.rs +2 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/source.rs +180 -8
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/source_tests.rs +3 -3
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream.rs +29 -18
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream_frame_tests.rs +3 -1
- flexaudio-0.8.0/crates/flexaudio/src/validation.rs +34 -0
- flexaudio-0.8.0/crates/flexaudio-core/src/arrival.rs +62 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/backend.rs +6 -0
- flexaudio-0.8.0/crates/flexaudio-core/src/capabilities.rs +365 -0
- flexaudio-0.8.0/crates/flexaudio-core/src/device_namespace.rs +78 -0
- flexaudio-0.8.0/crates/flexaudio-core/src/error_equality.rs +93 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/errors.rs +17 -1
- flexaudio-0.8.0/crates/flexaudio-core/src/helper_stop_reason.rs +81 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/lib.rs +18 -0
- flexaudio-0.8.0/crates/flexaudio-core/src/settings.rs +236 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/types.rs +16 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-encode/Cargo.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/Cargo.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/lib.rs +56 -12
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/Cargo.toml +1 -1
- flexaudio-0.8.0/crates/flexaudio-os-linux/src/capabilities.rs +126 -0
- flexaudio-0.8.0/crates/flexaudio-os-linux/src/capability_probe.rs +472 -0
- flexaudio-0.8.0/crates/flexaudio-os-linux/src/device_info.rs +56 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/lib.rs +82 -60
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/processes.rs +1 -1
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/Cargo.toml +1 -1
- flexaudio-0.8.0/crates/flexaudio-os-macos/src/capabilities.rs +189 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/devices.rs +70 -6
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/lib.rs +8 -3
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/native_probe.rs +2 -1
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/owner.rs +39 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/probe/tests.rs +167 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/probe.rs +112 -5
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/process.rs +14 -3
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/system.rs +16 -4
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/version.rs +28 -11
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/Cargo.toml +2 -2
- flexaudio-0.8.0/crates/flexaudio-os-windows/src/capabilities.rs +223 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/common.rs +18 -5
- flexaudio-0.8.0/crates/flexaudio-os-windows/src/exclusion.rs +102 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/keepalive.rs +9 -1
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/lib.rs +10 -1
- flexaudio-0.8.0/crates/flexaudio-os-windows/src/lifecycle.rs +700 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/owner.rs +72 -3
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/system.rs +158 -102
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/version.rs +13 -5
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/Cargo.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/THIRD_PARTY_NOTICES.md +2 -2
- {flexaudio-0.6.2 → flexaudio-0.8.0}/pyproject.toml +1 -1
- flexaudio-0.6.2/crates/flexaudio-os-windows/src/lifecycle.rs +0 -362
- {flexaudio-0.6.2 → flexaudio-0.8.0}/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/Cargo.toml +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/denoise.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/encode.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/pcm_buffer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/vad_marshal.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/src/watcher.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/tests/test_contracts.py +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/tests/test_exclude_pids.py +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/tests/test_pcm_buffer.py +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/bindings/flexaudio-py/tests/test_startup_documentation.py +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/device_watcher.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/contract_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/drift.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/permission_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/repro_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/startup_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mix/worker.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/mock.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/processes.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/contract_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/intake.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/intake_generation.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/permission_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/processor.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/repro_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/startup_order.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/startup_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/tap_drain.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/terminal.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/tests/gain.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/tests/health.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/tests/output.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/tests/pause.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/tests/validation.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/src/stream/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/tests/integration.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio/tests/processes_linux.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/Cargo.toml +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/addon_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/chunk_ring.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/clock.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/diagnostics.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/error_context.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/inventory.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/loss.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/normalizer/output.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/normalizer/repro_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/normalizer/resampler.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/normalizer/tests/clock.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/normalizer/tests/conversion.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/normalizer/tests/processor.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/normalizer/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/normalizer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/process_list.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/quant.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/raw_ring.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/secondary_ring.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/spawn_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/startup.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/types_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-core/src/vad_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-denoise/Cargo.toml +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-denoise/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-denoise/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-denoise/src/lib.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-encode/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-encode/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-encode/src/error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-encode/src/lib.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-encode/src/writer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-encode/tests/roundtrip.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/callback_mailbox.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/capture_owner/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/capture_owner.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/input_config.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/mac_permission.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/mac_policy/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/mac_policy.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/permission.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/windows_keeper.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/windows_permission.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/src/windows_policy.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-mic/tests/windows_cpal_keeper.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/capture_control.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/capture_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/capture_failures.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/capture_proxy.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/discovery.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/link_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/owner.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/proxy_release.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/readiness.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/watcher_failures.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/watcher_queue.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-linux/src/watcher_state.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/activity.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/capture_health.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/common.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/inventory.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/native_probe/capture.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/native_probe/io.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/native_probe/output.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/probe_signal.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/processes.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/tap/buffer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/tap.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-macos/src/terminal.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/format.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/inventory.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/native_outcomes.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/process.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-os-windows/src/processes.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/assets/silero_vad_openvino_16k.onnx +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/examples/dump_probs.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/examples/probe.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/capture_converter.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/capture_converter_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/infer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/input_converter.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/lib.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/params.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/preview.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/resample.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/stream.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/stream_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/tap.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/tap_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/tap_types.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/types.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/whisper_cpp_segments.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/src/whisper_cpp_segments_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/tests/fixtures/jp_2spk_FF_4s_16k.probs.txt +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/tests/fixtures/jp_2spk_FF_4s_16k.wav +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/tests/fixtures/whisper_vad_golden.json +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/tests/fixtures/whisper_vad_golden_extreme.json.gz +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/crates/flexaudio-vad/tests/speech_fixture.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.8.0}/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.
|
|
725
|
+
version = "0.8.0"
|
|
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.
|
|
737
|
+
version = "0.8.0"
|
|
738
738
|
dependencies = [
|
|
739
739
|
"clap",
|
|
740
740
|
"ctrlc",
|
|
@@ -742,11 +742,12 @@ dependencies = [
|
|
|
742
742
|
"flexaudio-mic",
|
|
743
743
|
"flexaudio-os-linux",
|
|
744
744
|
"hound",
|
|
745
|
+
"serde_json",
|
|
745
746
|
]
|
|
746
747
|
|
|
747
748
|
[[package]]
|
|
748
749
|
name = "flexaudio-core"
|
|
749
|
-
version = "0.
|
|
750
|
+
version = "0.8.0"
|
|
750
751
|
dependencies = [
|
|
751
752
|
"bitflags 2.13.0",
|
|
752
753
|
"ringbuf",
|
|
@@ -757,14 +758,14 @@ dependencies = [
|
|
|
757
758
|
|
|
758
759
|
[[package]]
|
|
759
760
|
name = "flexaudio-denoise"
|
|
760
|
-
version = "0.
|
|
761
|
+
version = "0.8.0"
|
|
761
762
|
dependencies = [
|
|
762
763
|
"nnnoiseless",
|
|
763
764
|
]
|
|
764
765
|
|
|
765
766
|
[[package]]
|
|
766
767
|
name = "flexaudio-encode"
|
|
767
|
-
version = "0.
|
|
768
|
+
version = "0.8.0"
|
|
768
769
|
dependencies = [
|
|
769
770
|
"claxon",
|
|
770
771
|
"flacenc",
|
|
@@ -774,7 +775,7 @@ dependencies = [
|
|
|
774
775
|
|
|
775
776
|
[[package]]
|
|
776
777
|
name = "flexaudio-ffi"
|
|
777
|
-
version = "0.
|
|
778
|
+
version = "0.8.0"
|
|
778
779
|
dependencies = [
|
|
779
780
|
"flexaudio",
|
|
780
781
|
"flexaudio-denoise",
|
|
@@ -784,7 +785,7 @@ dependencies = [
|
|
|
784
785
|
|
|
785
786
|
[[package]]
|
|
786
787
|
name = "flexaudio-mic"
|
|
787
|
-
version = "0.
|
|
788
|
+
version = "0.8.0"
|
|
788
789
|
dependencies = [
|
|
789
790
|
"block2",
|
|
790
791
|
"cpal",
|
|
@@ -796,7 +797,7 @@ dependencies = [
|
|
|
796
797
|
|
|
797
798
|
[[package]]
|
|
798
799
|
name = "flexaudio-napi"
|
|
799
|
-
version = "0.
|
|
800
|
+
version = "0.8.0"
|
|
800
801
|
dependencies = [
|
|
801
802
|
"flexaudio",
|
|
802
803
|
"flexaudio-denoise",
|
|
@@ -809,7 +810,7 @@ dependencies = [
|
|
|
809
810
|
|
|
810
811
|
[[package]]
|
|
811
812
|
name = "flexaudio-os-linux"
|
|
812
|
-
version = "0.
|
|
813
|
+
version = "0.8.0"
|
|
813
814
|
dependencies = [
|
|
814
815
|
"flexaudio-core",
|
|
815
816
|
"pipewire",
|
|
@@ -817,7 +818,7 @@ dependencies = [
|
|
|
817
818
|
|
|
818
819
|
[[package]]
|
|
819
820
|
name = "flexaudio-os-macos"
|
|
820
|
-
version = "0.
|
|
821
|
+
version = "0.8.0"
|
|
821
822
|
dependencies = [
|
|
822
823
|
"block2",
|
|
823
824
|
"flexaudio-core",
|
|
@@ -831,7 +832,7 @@ dependencies = [
|
|
|
831
832
|
|
|
832
833
|
[[package]]
|
|
833
834
|
name = "flexaudio-os-windows"
|
|
834
|
-
version = "0.
|
|
835
|
+
version = "0.8.0"
|
|
835
836
|
dependencies = [
|
|
836
837
|
"flexaudio-core",
|
|
837
838
|
"windows",
|
|
@@ -839,7 +840,7 @@ dependencies = [
|
|
|
839
840
|
|
|
840
841
|
[[package]]
|
|
841
842
|
name = "flexaudio-py"
|
|
842
|
-
version = "0.
|
|
843
|
+
version = "0.8.0"
|
|
843
844
|
dependencies = [
|
|
844
845
|
"flexaudio",
|
|
845
846
|
"flexaudio-denoise",
|
|
@@ -850,7 +851,7 @@ dependencies = [
|
|
|
850
851
|
|
|
851
852
|
[[package]]
|
|
852
853
|
name = "flexaudio-vad"
|
|
853
|
-
version = "0.
|
|
854
|
+
version = "0.8.0"
|
|
854
855
|
dependencies = [
|
|
855
856
|
"flate2",
|
|
856
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.
|
|
6
|
+
version = "0.8.0"
|
|
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.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Classifier: Topic :: Multimedia :: Sound/Audio :: Capture/Recording
|
|
@@ -144,10 +144,14 @@ Platform behavior:
|
|
|
144
144
|
|
|
145
145
|
### Noise suppression and attached VAD
|
|
146
146
|
|
|
147
|
-
`denoise=True` enables RNNoise
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
Graceful stop queues the denoiser tail
|
|
147
|
+
`denoise=True` enables RNNoise on the canonical 48 kHz stereo capture signal
|
|
148
|
+
before downmix and gain, feeding both output taps and attached VAD.
|
|
149
|
+
It requires 48000 Hz output and introduces 480 samples/channel of delay.
|
|
150
|
+
Graceful stop queues the denoiser tail and zero-pads the final output to a full
|
|
151
|
+
20 ms chunk (`flags` bit 8 when padding is added); continue polling to receive it.
|
|
152
|
+
Denoise runs before output polling and queue drops, continues processing while
|
|
153
|
+
paused, and keeps its history on resume. Source switches/reopens start fresh
|
|
154
|
+
history and normally discard the previous generation's buffered remainder.
|
|
151
155
|
|
|
152
156
|
Attach the same generic VAD engine with
|
|
153
157
|
`vad=flexaudio.StreamVadOptions(provisional=True)`. Each chunk's `vad_events`
|
|
@@ -296,7 +300,9 @@ and uses the same streaming process/finish path with preview disabled.
|
|
|
296
300
|
|
|
297
301
|
The capture option is `open(...,
|
|
298
302
|
vad=StreamVadOptions(params=..., provisional=True, tap='primary'))`.
|
|
299
|
-
|
|
303
|
+
Use `tap='secondary'` to deliver events on secondary chunks; this requires
|
|
304
|
+
`secondary_output`. The tap selects the event carrier; VAD still reads canonical
|
|
305
|
+
capture before conversion or integer encoding. The producer's shared 48 kHz stereo branch supplies valid PCM
|
|
300
306
|
and authoritative frame indices before output conversion. Attached chunks carry
|
|
301
307
|
`vad_events`; each epoch begins with its saved `capture_sample` and `pts_ns`
|
|
302
308
|
origin. `AudioChunk.frame_index` is a producer-owned 48 kHz timeline position.
|
|
@@ -310,3 +316,81 @@ capture-only. The next discontinuity (or a successful `flush_vad()`)
|
|
|
310
316
|
reinitializes the session so its next frame starts a new anchored epoch.
|
|
311
317
|
Disabled attachment has `AudioChunk.vad_events=None` and flush is a no-op.
|
|
312
318
|
|
|
319
|
+
|
|
320
|
+
### Settings reports, strict mode, and lifecycle
|
|
321
|
+
|
|
322
|
+
`flexaudio.open('mic', strict=True, ring_capacity_chunks=100)` selects strict
|
|
323
|
+
applicability validation and a 100-chunk ring (default 50).
|
|
324
|
+
`stream.effective_settings()` returns a dictionary containing `revision` and
|
|
325
|
+
`entries` with shared lower-camel setting/reason tags, requested/effective values,
|
|
326
|
+
and outcomes. It snapshots successful open/switch commits. Failed switches retain
|
|
327
|
+
the previous report and options; recovery does not increment the revision.
|
|
328
|
+
Effective values describe configuration, not proof of running hardware.
|
|
329
|
+
|
|
330
|
+
Only decoded values differing from documented defaults are requests. Explicit
|
|
331
|
+
defaults are `notRequested`, including on switch. Strict rejects all requested
|
|
332
|
+
ignored settings before device access, model loading, or stopping the old source,
|
|
333
|
+
raising `IgnoredSettingsError` with its complete candidate `.report`.
|
|
334
|
+
`strict=None` means false on open and retention on switch. Gain and ring capacity
|
|
335
|
+
stay fixed at open; non-default switch requests are ignored with `fixedAtOpen`.
|
|
336
|
+
Use `set_gain()` for runtime gain changes. Python switch denoise remains applied.
|
|
337
|
+
See the root README's [ignored-setting table](../../README.md#strict-mode-and-effective-settings).
|
|
338
|
+
|
|
339
|
+
`stream.poll_lifecycle_event()` consumes a separate ordered helper-event FIFO;
|
|
340
|
+
`poll_event()` never returns lifecycle notifications, even as unknown events.
|
|
341
|
+
The FIFO remains drainable after stop, independently of ordinary event polling.
|
|
342
|
+
It retains at most 256 events, dropping the oldest on overflow. Started/Stopped
|
|
343
|
+
pairing is guaranteed only while the caller drains it frequently enough to avoid
|
|
344
|
+
overflow. Every emitted Started has exactly one Stopped with a reason. macOS
|
|
345
|
+
Started means entry into a diagnostic attempt; Windows Started means successful
|
|
346
|
+
keepalive render start. Stopped ends ownership after teardown attempts; typed cleanup
|
|
347
|
+
errors remain authoritative. There is no ordering guarantee relative to PCM or
|
|
348
|
+
ordinary events. See [helper behavior and controls](../../README.md#optional-playback-helpers-and-lifecycle).
|
|
349
|
+
|
|
350
|
+
Both chunk types expose `arrival_ns`, exactly equal to `pts_ns`. The old chunk
|
|
351
|
+
name is documentation-only deprecated since 0.8 and retained throughout 0.9.
|
|
352
|
+
Use `frame_index` for audio continuity. `devices_with_namespaces()` returns
|
|
353
|
+
entries with `.device` and `.id_namespace`, preserving selectable IDs. Namespace
|
|
354
|
+
tags describe provider selector domains, not persistent hardware identities.
|
|
355
|
+
|
|
356
|
+
### Capability snapshot and optional output
|
|
357
|
+
|
|
358
|
+
`capabilities()` returns a dictionary with `os_version`, `sources`,
|
|
359
|
+
`system_exclusions`, `process`, `device_watcher`, and `side_effects`.
|
|
360
|
+
Keys use snake_case and tag values match the other bindings. Availability has
|
|
361
|
+
`status='supported'`, `status='unavailable'` with a `reason`, or
|
|
362
|
+
`status='unknown'` with the same structured error dictionary as
|
|
363
|
+
`error.audio_error.to_dict()`. The bounded probe releases the GIL and never
|
|
364
|
+
opens capture, requests recording consent, or plays audio. Support describes
|
|
365
|
+
platform prerequisites rather than permission or device availability.
|
|
366
|
+
|
|
367
|
+
On Linux, a missing PipeWire socket means unavailable. Failed socket inspection,
|
|
368
|
+
connection or server sync means unknown, with the structured query error retained.
|
|
369
|
+
|
|
370
|
+
`open(..., windows_classic_loopback_keepalive=True)` enables the Windows
|
|
371
|
+
classic loopback silent keepalive. Set it to `False` to disable it.
|
|
372
|
+
`switch_source(..., windows_classic_loopback_keepalive=None)` retains the
|
|
373
|
+
current setting; an explicit boolean replaces it only on successful switching.
|
|
374
|
+
The option applies to system capture and the system lane of Mix without PID
|
|
375
|
+
exclusions. Other platforms and process/exclusion capture ignore it. With it
|
|
376
|
+
disabled, idle classic loopback delivers no packets; the 2 s stall watchdog reports
|
|
377
|
+
`stalled` (`Event::StreamStalled` in Rust) and reopens repeatedly until audio plays.
|
|
378
|
+
|
|
379
|
+
```python
|
|
380
|
+
secondary = flexaudio.SecondaryOutputOptions(rate=16000, channels=1, encoding='s16')
|
|
381
|
+
with flexaudio.open('mic', secondary_output=secondary,
|
|
382
|
+
vad=flexaudio.StreamVadOptions(tap='secondary')) as stream:
|
|
383
|
+
primary = stream.poll_chunk()
|
|
384
|
+
secondary_chunk = stream.poll_secondary()
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
`poll_secondary()` returns `None` when disabled or empty. Its format is fixed at
|
|
388
|
+
open and retained across source switches. Encoding defaults to `f32`; `s16`
|
|
389
|
+
uses the shared signed 16-bit quantizer. Both encodings return little-endian
|
|
390
|
+
`bytes`; NumPy dtypes are `<f4` and `<i2`. `peak` and `rms` always describe the
|
|
391
|
+
float samples before integer quantization. Each chunk also exposes `encoding`,
|
|
392
|
+
`frames`, `frame_index`, `pts_ns`, `seq`, `flags`, `dropped_before`, and
|
|
393
|
+
`vad_events`. The two polls do not consume each other's PCM. Counters and drops
|
|
394
|
+
are independent; align taps by time rather than sequence number. Stop and VAD
|
|
395
|
+
flush retain queued output from both taps; drain both polls after stopping.
|
|
396
|
+
|
|
@@ -128,10 +128,14 @@ Platform behavior:
|
|
|
128
128
|
|
|
129
129
|
### Noise suppression and attached VAD
|
|
130
130
|
|
|
131
|
-
`denoise=True` enables RNNoise
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
Graceful stop queues the denoiser tail
|
|
131
|
+
`denoise=True` enables RNNoise on the canonical 48 kHz stereo capture signal
|
|
132
|
+
before downmix and gain, feeding both output taps and attached VAD.
|
|
133
|
+
It requires 48000 Hz output and introduces 480 samples/channel of delay.
|
|
134
|
+
Graceful stop queues the denoiser tail and zero-pads the final output to a full
|
|
135
|
+
20 ms chunk (`flags` bit 8 when padding is added); continue polling to receive it.
|
|
136
|
+
Denoise runs before output polling and queue drops, continues processing while
|
|
137
|
+
paused, and keeps its history on resume. Source switches/reopens start fresh
|
|
138
|
+
history and normally discard the previous generation's buffered remainder.
|
|
135
139
|
|
|
136
140
|
Attach the same generic VAD engine with
|
|
137
141
|
`vad=flexaudio.StreamVadOptions(provisional=True)`. Each chunk's `vad_events`
|
|
@@ -280,7 +284,9 @@ and uses the same streaming process/finish path with preview disabled.
|
|
|
280
284
|
|
|
281
285
|
The capture option is `open(...,
|
|
282
286
|
vad=StreamVadOptions(params=..., provisional=True, tap='primary'))`.
|
|
283
|
-
|
|
287
|
+
Use `tap='secondary'` to deliver events on secondary chunks; this requires
|
|
288
|
+
`secondary_output`. The tap selects the event carrier; VAD still reads canonical
|
|
289
|
+
capture before conversion or integer encoding. The producer's shared 48 kHz stereo branch supplies valid PCM
|
|
284
290
|
and authoritative frame indices before output conversion. Attached chunks carry
|
|
285
291
|
`vad_events`; each epoch begins with its saved `capture_sample` and `pts_ns`
|
|
286
292
|
origin. `AudioChunk.frame_index` is a producer-owned 48 kHz timeline position.
|
|
@@ -293,3 +299,81 @@ retains the cause in `cleanup_errors` with `vad_code`, and `primary` remains
|
|
|
293
299
|
capture-only. The next discontinuity (or a successful `flush_vad()`)
|
|
294
300
|
reinitializes the session so its next frame starts a new anchored epoch.
|
|
295
301
|
Disabled attachment has `AudioChunk.vad_events=None` and flush is a no-op.
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Settings reports, strict mode, and lifecycle
|
|
305
|
+
|
|
306
|
+
`flexaudio.open('mic', strict=True, ring_capacity_chunks=100)` selects strict
|
|
307
|
+
applicability validation and a 100-chunk ring (default 50).
|
|
308
|
+
`stream.effective_settings()` returns a dictionary containing `revision` and
|
|
309
|
+
`entries` with shared lower-camel setting/reason tags, requested/effective values,
|
|
310
|
+
and outcomes. It snapshots successful open/switch commits. Failed switches retain
|
|
311
|
+
the previous report and options; recovery does not increment the revision.
|
|
312
|
+
Effective values describe configuration, not proof of running hardware.
|
|
313
|
+
|
|
314
|
+
Only decoded values differing from documented defaults are requests. Explicit
|
|
315
|
+
defaults are `notRequested`, including on switch. Strict rejects all requested
|
|
316
|
+
ignored settings before device access, model loading, or stopping the old source,
|
|
317
|
+
raising `IgnoredSettingsError` with its complete candidate `.report`.
|
|
318
|
+
`strict=None` means false on open and retention on switch. Gain and ring capacity
|
|
319
|
+
stay fixed at open; non-default switch requests are ignored with `fixedAtOpen`.
|
|
320
|
+
Use `set_gain()` for runtime gain changes. Python switch denoise remains applied.
|
|
321
|
+
See the root README's [ignored-setting table](../../README.md#strict-mode-and-effective-settings).
|
|
322
|
+
|
|
323
|
+
`stream.poll_lifecycle_event()` consumes a separate ordered helper-event FIFO;
|
|
324
|
+
`poll_event()` never returns lifecycle notifications, even as unknown events.
|
|
325
|
+
The FIFO remains drainable after stop, independently of ordinary event polling.
|
|
326
|
+
It retains at most 256 events, dropping the oldest on overflow. Started/Stopped
|
|
327
|
+
pairing is guaranteed only while the caller drains it frequently enough to avoid
|
|
328
|
+
overflow. Every emitted Started has exactly one Stopped with a reason. macOS
|
|
329
|
+
Started means entry into a diagnostic attempt; Windows Started means successful
|
|
330
|
+
keepalive render start. Stopped ends ownership after teardown attempts; typed cleanup
|
|
331
|
+
errors remain authoritative. There is no ordering guarantee relative to PCM or
|
|
332
|
+
ordinary events. See [helper behavior and controls](../../README.md#optional-playback-helpers-and-lifecycle).
|
|
333
|
+
|
|
334
|
+
Both chunk types expose `arrival_ns`, exactly equal to `pts_ns`. The old chunk
|
|
335
|
+
name is documentation-only deprecated since 0.8 and retained throughout 0.9.
|
|
336
|
+
Use `frame_index` for audio continuity. `devices_with_namespaces()` returns
|
|
337
|
+
entries with `.device` and `.id_namespace`, preserving selectable IDs. Namespace
|
|
338
|
+
tags describe provider selector domains, not persistent hardware identities.
|
|
339
|
+
|
|
340
|
+
### Capability snapshot and optional output
|
|
341
|
+
|
|
342
|
+
`capabilities()` returns a dictionary with `os_version`, `sources`,
|
|
343
|
+
`system_exclusions`, `process`, `device_watcher`, and `side_effects`.
|
|
344
|
+
Keys use snake_case and tag values match the other bindings. Availability has
|
|
345
|
+
`status='supported'`, `status='unavailable'` with a `reason`, or
|
|
346
|
+
`status='unknown'` with the same structured error dictionary as
|
|
347
|
+
`error.audio_error.to_dict()`. The bounded probe releases the GIL and never
|
|
348
|
+
opens capture, requests recording consent, or plays audio. Support describes
|
|
349
|
+
platform prerequisites rather than permission or device availability.
|
|
350
|
+
|
|
351
|
+
On Linux, a missing PipeWire socket means unavailable. Failed socket inspection,
|
|
352
|
+
connection or server sync means unknown, with the structured query error retained.
|
|
353
|
+
|
|
354
|
+
`open(..., windows_classic_loopback_keepalive=True)` enables the Windows
|
|
355
|
+
classic loopback silent keepalive. Set it to `False` to disable it.
|
|
356
|
+
`switch_source(..., windows_classic_loopback_keepalive=None)` retains the
|
|
357
|
+
current setting; an explicit boolean replaces it only on successful switching.
|
|
358
|
+
The option applies to system capture and the system lane of Mix without PID
|
|
359
|
+
exclusions. Other platforms and process/exclusion capture ignore it. With it
|
|
360
|
+
disabled, idle classic loopback delivers no packets; the 2 s stall watchdog reports
|
|
361
|
+
`stalled` (`Event::StreamStalled` in Rust) and reopens repeatedly until audio plays.
|
|
362
|
+
|
|
363
|
+
```python
|
|
364
|
+
secondary = flexaudio.SecondaryOutputOptions(rate=16000, channels=1, encoding='s16')
|
|
365
|
+
with flexaudio.open('mic', secondary_output=secondary,
|
|
366
|
+
vad=flexaudio.StreamVadOptions(tap='secondary')) as stream:
|
|
367
|
+
primary = stream.poll_chunk()
|
|
368
|
+
secondary_chunk = stream.poll_secondary()
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
`poll_secondary()` returns `None` when disabled or empty. Its format is fixed at
|
|
372
|
+
open and retained across source switches. Encoding defaults to `f32`; `s16`
|
|
373
|
+
uses the shared signed 16-bit quantizer. Both encodings return little-endian
|
|
374
|
+
`bytes`; NumPy dtypes are `<f4` and `<i2`. `peak` and `rms` always describe the
|
|
375
|
+
float samples before integer quantization. Each chunk also exposes `encoding`,
|
|
376
|
+
`frames`, `frame_index`, `pts_ns`, `seq`, `flags`, `dropped_before`, and
|
|
377
|
+
`vad_events`. The two polls do not consume each other's PCM. Counters and drops
|
|
378
|
+
are independent; align taps by time rather than sequence number. Stop and VAD
|
|
379
|
+
flush retain queued output from both taps; drain both polls after stopping.
|
|
@@ -2633,15 +2633,15 @@ SOFTWARE.
|
|
|
2633
2633
|
|
|
2634
2634
|
Used by:
|
|
2635
2635
|
|
|
2636
|
-
- [flexaudio 0.
|
|
2637
|
-
- [flexaudio-core 0.
|
|
2638
|
-
- [flexaudio-denoise 0.
|
|
2639
|
-
- [flexaudio-encode 0.
|
|
2640
|
-
- [flexaudio-mic 0.
|
|
2641
|
-
- [flexaudio-os-linux 0.
|
|
2642
|
-
- [flexaudio-os-macos 0.
|
|
2643
|
-
- [flexaudio-os-windows 0.
|
|
2644
|
-
- [flexaudio-vad 0.
|
|
2636
|
+
- [flexaudio 0.8.0](https://crates.io/crates/flexaudio/0.8.0)
|
|
2637
|
+
- [flexaudio-core 0.8.0](https://crates.io/crates/flexaudio-core/0.8.0)
|
|
2638
|
+
- [flexaudio-denoise 0.8.0](https://crates.io/crates/flexaudio-denoise/0.8.0)
|
|
2639
|
+
- [flexaudio-encode 0.8.0](https://crates.io/crates/flexaudio-encode/0.8.0)
|
|
2640
|
+
- [flexaudio-mic 0.8.0](https://crates.io/crates/flexaudio-mic/0.8.0)
|
|
2641
|
+
- [flexaudio-os-linux 0.8.0](https://crates.io/crates/flexaudio-os-linux/0.8.0)
|
|
2642
|
+
- [flexaudio-os-macos 0.8.0](https://crates.io/crates/flexaudio-os-macos/0.8.0)
|
|
2643
|
+
- [flexaudio-os-windows 0.8.0](https://crates.io/crates/flexaudio-os-windows/0.8.0)
|
|
2644
|
+
- [flexaudio-vad 0.8.0](https://crates.io/crates/flexaudio-vad/0.8.0)
|
|
2645
2645
|
|
|
2646
2646
|
````text
|
|
2647
2647
|
MIT License
|
|
@@ -128,10 +128,14 @@ Platform behavior:
|
|
|
128
128
|
|
|
129
129
|
### Noise suppression and attached VAD
|
|
130
130
|
|
|
131
|
-
`denoise=True` enables RNNoise
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
Graceful stop queues the denoiser tail
|
|
131
|
+
`denoise=True` enables RNNoise on the canonical 48 kHz stereo capture signal
|
|
132
|
+
before downmix and gain, feeding both output taps and attached VAD.
|
|
133
|
+
It requires 48000 Hz output and introduces 480 samples/channel of delay.
|
|
134
|
+
Graceful stop queues the denoiser tail and zero-pads the final output to a full
|
|
135
|
+
20 ms chunk (`flags` bit 8 when padding is added); continue polling to receive it.
|
|
136
|
+
Denoise runs before output polling and queue drops, continues processing while
|
|
137
|
+
paused, and keeps its history on resume. Source switches/reopens start fresh
|
|
138
|
+
history and normally discard the previous generation's buffered remainder.
|
|
135
139
|
|
|
136
140
|
Attach the same generic VAD engine with
|
|
137
141
|
`vad=flexaudio.StreamVadOptions(provisional=True)`. Each chunk's `vad_events`
|
|
@@ -280,7 +284,9 @@ and uses the same streaming process/finish path with preview disabled.
|
|
|
280
284
|
|
|
281
285
|
The capture option is `open(...,
|
|
282
286
|
vad=StreamVadOptions(params=..., provisional=True, tap='primary'))`.
|
|
283
|
-
|
|
287
|
+
Use `tap='secondary'` to deliver events on secondary chunks; this requires
|
|
288
|
+
`secondary_output`. The tap selects the event carrier; VAD still reads canonical
|
|
289
|
+
capture before conversion or integer encoding. The producer's shared 48 kHz stereo branch supplies valid PCM
|
|
284
290
|
and authoritative frame indices before output conversion. Attached chunks carry
|
|
285
291
|
`vad_events`; each epoch begins with its saved `capture_sample` and `pts_ns`
|
|
286
292
|
origin. `AudioChunk.frame_index` is a producer-owned 48 kHz timeline position.
|
|
@@ -293,3 +299,81 @@ retains the cause in `cleanup_errors` with `vad_code`, and `primary` remains
|
|
|
293
299
|
capture-only. The next discontinuity (or a successful `flush_vad()`)
|
|
294
300
|
reinitializes the session so its next frame starts a new anchored epoch.
|
|
295
301
|
Disabled attachment has `AudioChunk.vad_events=None` and flush is a no-op.
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Settings reports, strict mode, and lifecycle
|
|
305
|
+
|
|
306
|
+
`flexaudio.open('mic', strict=True, ring_capacity_chunks=100)` selects strict
|
|
307
|
+
applicability validation and a 100-chunk ring (default 50).
|
|
308
|
+
`stream.effective_settings()` returns a dictionary containing `revision` and
|
|
309
|
+
`entries` with shared lower-camel setting/reason tags, requested/effective values,
|
|
310
|
+
and outcomes. It snapshots successful open/switch commits. Failed switches retain
|
|
311
|
+
the previous report and options; recovery does not increment the revision.
|
|
312
|
+
Effective values describe configuration, not proof of running hardware.
|
|
313
|
+
|
|
314
|
+
Only decoded values differing from documented defaults are requests. Explicit
|
|
315
|
+
defaults are `notRequested`, including on switch. Strict rejects all requested
|
|
316
|
+
ignored settings before device access, model loading, or stopping the old source,
|
|
317
|
+
raising `IgnoredSettingsError` with its complete candidate `.report`.
|
|
318
|
+
`strict=None` means false on open and retention on switch. Gain and ring capacity
|
|
319
|
+
stay fixed at open; non-default switch requests are ignored with `fixedAtOpen`.
|
|
320
|
+
Use `set_gain()` for runtime gain changes. Python switch denoise remains applied.
|
|
321
|
+
See the root README's [ignored-setting table](../../README.md#strict-mode-and-effective-settings).
|
|
322
|
+
|
|
323
|
+
`stream.poll_lifecycle_event()` consumes a separate ordered helper-event FIFO;
|
|
324
|
+
`poll_event()` never returns lifecycle notifications, even as unknown events.
|
|
325
|
+
The FIFO remains drainable after stop, independently of ordinary event polling.
|
|
326
|
+
It retains at most 256 events, dropping the oldest on overflow. Started/Stopped
|
|
327
|
+
pairing is guaranteed only while the caller drains it frequently enough to avoid
|
|
328
|
+
overflow. Every emitted Started has exactly one Stopped with a reason. macOS
|
|
329
|
+
Started means entry into a diagnostic attempt; Windows Started means successful
|
|
330
|
+
keepalive render start. Stopped ends ownership after teardown attempts; typed cleanup
|
|
331
|
+
errors remain authoritative. There is no ordering guarantee relative to PCM or
|
|
332
|
+
ordinary events. See [helper behavior and controls](../../README.md#optional-playback-helpers-and-lifecycle).
|
|
333
|
+
|
|
334
|
+
Both chunk types expose `arrival_ns`, exactly equal to `pts_ns`. The old chunk
|
|
335
|
+
name is documentation-only deprecated since 0.8 and retained throughout 0.9.
|
|
336
|
+
Use `frame_index` for audio continuity. `devices_with_namespaces()` returns
|
|
337
|
+
entries with `.device` and `.id_namespace`, preserving selectable IDs. Namespace
|
|
338
|
+
tags describe provider selector domains, not persistent hardware identities.
|
|
339
|
+
|
|
340
|
+
### Capability snapshot and optional output
|
|
341
|
+
|
|
342
|
+
`capabilities()` returns a dictionary with `os_version`, `sources`,
|
|
343
|
+
`system_exclusions`, `process`, `device_watcher`, and `side_effects`.
|
|
344
|
+
Keys use snake_case and tag values match the other bindings. Availability has
|
|
345
|
+
`status='supported'`, `status='unavailable'` with a `reason`, or
|
|
346
|
+
`status='unknown'` with the same structured error dictionary as
|
|
347
|
+
`error.audio_error.to_dict()`. The bounded probe releases the GIL and never
|
|
348
|
+
opens capture, requests recording consent, or plays audio. Support describes
|
|
349
|
+
platform prerequisites rather than permission or device availability.
|
|
350
|
+
|
|
351
|
+
On Linux, a missing PipeWire socket means unavailable. Failed socket inspection,
|
|
352
|
+
connection or server sync means unknown, with the structured query error retained.
|
|
353
|
+
|
|
354
|
+
`open(..., windows_classic_loopback_keepalive=True)` enables the Windows
|
|
355
|
+
classic loopback silent keepalive. Set it to `False` to disable it.
|
|
356
|
+
`switch_source(..., windows_classic_loopback_keepalive=None)` retains the
|
|
357
|
+
current setting; an explicit boolean replaces it only on successful switching.
|
|
358
|
+
The option applies to system capture and the system lane of Mix without PID
|
|
359
|
+
exclusions. Other platforms and process/exclusion capture ignore it. With it
|
|
360
|
+
disabled, idle classic loopback delivers no packets; the 2 s stall watchdog reports
|
|
361
|
+
`stalled` (`Event::StreamStalled` in Rust) and reopens repeatedly until audio plays.
|
|
362
|
+
|
|
363
|
+
```python
|
|
364
|
+
secondary = flexaudio.SecondaryOutputOptions(rate=16000, channels=1, encoding='s16')
|
|
365
|
+
with flexaudio.open('mic', secondary_output=secondary,
|
|
366
|
+
vad=flexaudio.StreamVadOptions(tap='secondary')) as stream:
|
|
367
|
+
primary = stream.poll_chunk()
|
|
368
|
+
secondary_chunk = stream.poll_secondary()
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
`poll_secondary()` returns `None` when disabled or empty. Its format is fixed at
|
|
372
|
+
open and retained across source switches. Encoding defaults to `f32`; `s16`
|
|
373
|
+
uses the shared signed 16-bit quantizer. Both encodings return little-endian
|
|
374
|
+
`bytes`; NumPy dtypes are `<f4` and `<i2`. `peak` and `rms` always describe the
|
|
375
|
+
float samples before integer quantization. Each chunk also exposes `encoding`,
|
|
376
|
+
`frames`, `frame_index`, `pts_ns`, `seq`, `flags`, `dropped_before`, and
|
|
377
|
+
`vad_events`. The two polls do not consume each other's PCM. Counters and drops
|
|
378
|
+
are independent; align taps by time rather than sequence number. Stop and VAD
|
|
379
|
+
flush retain queued output from both taps; drain both polls after stopping.
|
|
@@ -2633,15 +2633,15 @@ SOFTWARE.
|
|
|
2633
2633
|
|
|
2634
2634
|
Used by:
|
|
2635
2635
|
|
|
2636
|
-
- [flexaudio 0.
|
|
2637
|
-
- [flexaudio-core 0.
|
|
2638
|
-
- [flexaudio-denoise 0.
|
|
2639
|
-
- [flexaudio-encode 0.
|
|
2640
|
-
- [flexaudio-mic 0.
|
|
2641
|
-
- [flexaudio-os-linux 0.
|
|
2642
|
-
- [flexaudio-os-macos 0.
|
|
2643
|
-
- [flexaudio-os-windows 0.
|
|
2644
|
-
- [flexaudio-vad 0.
|
|
2636
|
+
- [flexaudio 0.8.0](https://crates.io/crates/flexaudio/0.8.0)
|
|
2637
|
+
- [flexaudio-core 0.8.0](https://crates.io/crates/flexaudio-core/0.8.0)
|
|
2638
|
+
- [flexaudio-denoise 0.8.0](https://crates.io/crates/flexaudio-denoise/0.8.0)
|
|
2639
|
+
- [flexaudio-encode 0.8.0](https://crates.io/crates/flexaudio-encode/0.8.0)
|
|
2640
|
+
- [flexaudio-mic 0.8.0](https://crates.io/crates/flexaudio-mic/0.8.0)
|
|
2641
|
+
- [flexaudio-os-linux 0.8.0](https://crates.io/crates/flexaudio-os-linux/0.8.0)
|
|
2642
|
+
- [flexaudio-os-macos 0.8.0](https://crates.io/crates/flexaudio-os-macos/0.8.0)
|
|
2643
|
+
- [flexaudio-os-windows 0.8.0](https://crates.io/crates/flexaudio-os-windows/0.8.0)
|
|
2644
|
+
- [flexaudio-vad 0.8.0](https://crates.io/crates/flexaudio-vad/0.8.0)
|
|
2645
2645
|
|
|
2646
2646
|
````text
|
|
2647
2647
|
MIT License
|