flexaudio 0.6.2__tar.gz → 0.7.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.7.0}/Cargo.lock +14 -13
- {flexaudio-0.6.2 → flexaudio-0.7.0}/Cargo.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.7.0}/PKG-INFO +54 -6
- {flexaudio-0.6.2 → flexaudio-0.7.0}/README.md +53 -5
- {flexaudio-0.6.2 → flexaudio-0.7.0}/THIRD_PARTY_NOTICES.md +9 -9
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/README.md +53 -5
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/THIRD_PARTY_NOTICES.md +9 -9
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/flexaudio.pyi +113 -4
- flexaudio-0.7.0/bindings/flexaudio-py/src/capabilities.rs +298 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/lib.rs +9 -2
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/marshal.rs +2 -20
- flexaudio-0.7.0/bindings/flexaudio-py/src/secondary.rs +200 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/stream.rs +110 -112
- flexaudio-0.7.0/bindings/flexaudio-py/src/stream_denoise_tests.rs +155 -0
- flexaudio-0.7.0/bindings/flexaudio-py/src/stream_secondary.rs +192 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/stream_stop.rs +7 -45
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/stream_vad.rs +17 -12
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/vad.rs +3 -3
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/tests/rust/vad.rs +2 -1
- flexaudio-0.7.0/bindings/flexaudio-py/tests/test_capabilities_secondary.py +53 -0
- flexaudio-0.7.0/bindings/flexaudio-py/tests/test_capability_fallbacks.py +67 -0
- flexaudio-0.7.0/bindings/flexaudio-py/tests/test_stream_denoise.py +32 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/Cargo.toml +6 -6
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/README.md +54 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/THIRD_PARTY_NOTICES.md +7 -7
- flexaudio-0.7.0/crates/flexaudio/src/capabilities.rs +70 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/lib.rs +32 -4
- flexaudio-0.7.0/crates/flexaudio/src/open_options.rs +38 -0
- flexaudio-0.7.0/crates/flexaudio/src/stream/open_options_tests.rs +238 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/source.rs +122 -5
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/source_tests.rs +3 -3
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream.rs +19 -0
- flexaudio-0.7.0/crates/flexaudio-core/src/capabilities.rs +365 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/lib.rs +7 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-encode/Cargo.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/Cargo.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/Cargo.toml +1 -1
- flexaudio-0.7.0/crates/flexaudio-os-linux/src/capabilities.rs +126 -0
- flexaudio-0.7.0/crates/flexaudio-os-linux/src/capability_probe.rs +472 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/lib.rs +3 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/processes.rs +1 -1
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/Cargo.toml +1 -1
- flexaudio-0.7.0/crates/flexaudio-os-macos/src/capabilities.rs +189 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/lib.rs +5 -1
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/version.rs +28 -11
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/Cargo.toml +2 -2
- flexaudio-0.7.0/crates/flexaudio-os-windows/src/capabilities.rs +223 -0
- flexaudio-0.7.0/crates/flexaudio-os-windows/src/exclusion.rs +102 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/lib.rs +9 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/lifecycle.rs +47 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/system.rs +49 -92
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/version.rs +13 -5
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/Cargo.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/THIRD_PARTY_NOTICES.md +2 -2
- {flexaudio-0.6.2 → flexaudio-0.7.0}/pyproject.toml +1 -1
- {flexaudio-0.6.2 → flexaudio-0.7.0}/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/Cargo.toml +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/config.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/denoise.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/encode.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/errors.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/pcm_buffer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/vad_marshal.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/src/watcher.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/tests/test_contracts.py +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/tests/test_exclude_pids.py +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/tests/test_pcm_buffer.py +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/bindings/flexaudio-py/tests/test_startup_documentation.py +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/device_watcher.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/child.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/contract_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/drift.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/notices.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/permission_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/repro_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/startup_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix/worker.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mix.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/mock.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/processes.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/contract_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/control.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/delivery.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/intake.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/intake_generation.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/lifecycle.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/permission_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/processor.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/recovery_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/repro_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/shared.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/startup_order.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/startup_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/tap_drain.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/terminal.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/tests/gain.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/tests/health.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/tests/output.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/tests/pause.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/tests/validation.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/src/stream_frame_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/tests/integration.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio/tests/processes_linux.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/Cargo.toml +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/addon_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/backend.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/chunk_ring.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/clock.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/diagnostics.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/error_context.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/errors.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/inventory.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/loss.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/normalizer/output.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/normalizer/repro_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/normalizer/resampler.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/normalizer/tests/clock.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/normalizer/tests/conversion.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/normalizer/tests/processor.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/normalizer/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/normalizer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/process_list.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/quant.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/raw_ring.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/secondary_ring.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/spawn_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/startup.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/types.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/types_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-core/src/vad_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-denoise/Cargo.toml +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-denoise/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-denoise/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-denoise/src/lib.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-encode/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-encode/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-encode/src/error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-encode/src/lib.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-encode/src/writer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-encode/tests/roundtrip.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/callback_mailbox.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/capture_owner/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/capture_owner.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/input_config.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/lib.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/mac_permission.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/mac_policy/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/mac_policy.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/permission.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/windows_keeper.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/windows_permission.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/src/windows_policy.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-mic/tests/windows_cpal_keeper.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/capture_control.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/capture_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/capture_failures.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/capture_proxy.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/discovery.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/link_error.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/owner.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/proxy_release.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/readiness.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/watcher_failures.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/watcher_queue.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-linux/src/watcher_state.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/activity.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/capture_health.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/common.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/devices.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/inventory.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/native_probe/capture.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/native_probe/io.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/native_probe/output.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/native_probe.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/owner.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/probe/tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/probe.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/probe_signal.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/process.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/processes.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/system.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/tap/buffer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/tap.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-macos/src/terminal.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/common.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/format.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/inventory.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/keepalive.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/native_outcomes.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/owner.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/process.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-os-windows/src/processes.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/LICENSE +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/README.md +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/assets/silero_vad_openvino_16k.onnx +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/examples/dump_probs.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/examples/probe.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/capture_converter.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/capture_converter_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/infer.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/input_converter.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/lib.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/params.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/preview.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/resample.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/stream.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/stream_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/tap.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/tap_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/tap_types.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/types.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/whisper_cpp_segments.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/src/whisper_cpp_segments_tests.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/tests/fixtures/jp_2spk_FF_4s_16k.probs.txt +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/tests/fixtures/jp_2spk_FF_4s_16k.wav +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/tests/fixtures/whisper_vad_golden.json +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/tests/fixtures/whisper_vad_golden_extreme.json.gz +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.0}/crates/flexaudio-vad/tests/speech_fixture.rs +0 -0
- {flexaudio-0.6.2 → flexaudio-0.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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,45 @@ 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
|
+
### Capability snapshot and optional output
|
|
321
|
+
|
|
322
|
+
`capabilities()` returns a dictionary with `os_version`, `sources`,
|
|
323
|
+
`system_exclusions`, `process`, `device_watcher`, and `side_effects`.
|
|
324
|
+
Keys use snake_case and tag values match the other bindings. Availability has
|
|
325
|
+
`status='supported'`, `status='unavailable'` with a `reason`, or
|
|
326
|
+
`status='unknown'` with the same structured error dictionary as
|
|
327
|
+
`error.audio_error.to_dict()`. The bounded probe releases the GIL and never
|
|
328
|
+
opens capture, requests recording consent, or plays audio. Support describes
|
|
329
|
+
platform prerequisites rather than permission or device availability.
|
|
330
|
+
|
|
331
|
+
On Linux, a missing PipeWire socket means unavailable. Failed socket inspection,
|
|
332
|
+
connection or server sync means unknown, with the structured query error retained.
|
|
333
|
+
|
|
334
|
+
`open(..., windows_classic_loopback_keepalive=True)` enables the Windows
|
|
335
|
+
classic loopback silent keepalive. Set it to `False` to disable it.
|
|
336
|
+
`switch_source(..., windows_classic_loopback_keepalive=None)` retains the
|
|
337
|
+
current setting; an explicit boolean replaces it only on successful switching.
|
|
338
|
+
The option applies to system capture and the system lane of Mix without PID
|
|
339
|
+
exclusions. Other platforms and process/exclusion capture ignore it. With it
|
|
340
|
+
disabled, idle classic loopback delivers no packets; the 2 s stall watchdog reports
|
|
341
|
+
`stalled` (`Event::StreamStalled` in Rust) and reopens repeatedly until audio plays.
|
|
342
|
+
|
|
343
|
+
```python
|
|
344
|
+
secondary = flexaudio.SecondaryOutputOptions(rate=16000, channels=1, encoding='s16')
|
|
345
|
+
with flexaudio.open('mic', secondary_output=secondary,
|
|
346
|
+
vad=flexaudio.StreamVadOptions(tap='secondary')) as stream:
|
|
347
|
+
primary = stream.poll_chunk()
|
|
348
|
+
secondary_chunk = stream.poll_secondary()
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
`poll_secondary()` returns `None` when disabled or empty. Its format is fixed at
|
|
352
|
+
open and retained across source switches. Encoding defaults to `f32`; `s16`
|
|
353
|
+
uses the shared signed 16-bit quantizer. Both encodings return little-endian
|
|
354
|
+
`bytes`; NumPy dtypes are `<f4` and `<i2`. `peak` and `rms` always describe the
|
|
355
|
+
float samples before integer quantization. Each chunk also exposes `encoding`,
|
|
356
|
+
`frames`, `frame_index`, `pts_ns`, `seq`, `flags`, `dropped_before`, and
|
|
357
|
+
`vad_events`. The two polls do not consume each other's PCM. Counters and drops
|
|
358
|
+
are independent; align taps by time rather than sequence number. Stop and VAD
|
|
359
|
+
flush retain queued output from both taps; drain both polls after stopping.
|
|
360
|
+
|
|
@@ -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,45 @@ 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
|
+
### Capability snapshot and optional output
|
|
305
|
+
|
|
306
|
+
`capabilities()` returns a dictionary with `os_version`, `sources`,
|
|
307
|
+
`system_exclusions`, `process`, `device_watcher`, and `side_effects`.
|
|
308
|
+
Keys use snake_case and tag values match the other bindings. Availability has
|
|
309
|
+
`status='supported'`, `status='unavailable'` with a `reason`, or
|
|
310
|
+
`status='unknown'` with the same structured error dictionary as
|
|
311
|
+
`error.audio_error.to_dict()`. The bounded probe releases the GIL and never
|
|
312
|
+
opens capture, requests recording consent, or plays audio. Support describes
|
|
313
|
+
platform prerequisites rather than permission or device availability.
|
|
314
|
+
|
|
315
|
+
On Linux, a missing PipeWire socket means unavailable. Failed socket inspection,
|
|
316
|
+
connection or server sync means unknown, with the structured query error retained.
|
|
317
|
+
|
|
318
|
+
`open(..., windows_classic_loopback_keepalive=True)` enables the Windows
|
|
319
|
+
classic loopback silent keepalive. Set it to `False` to disable it.
|
|
320
|
+
`switch_source(..., windows_classic_loopback_keepalive=None)` retains the
|
|
321
|
+
current setting; an explicit boolean replaces it only on successful switching.
|
|
322
|
+
The option applies to system capture and the system lane of Mix without PID
|
|
323
|
+
exclusions. Other platforms and process/exclusion capture ignore it. With it
|
|
324
|
+
disabled, idle classic loopback delivers no packets; the 2 s stall watchdog reports
|
|
325
|
+
`stalled` (`Event::StreamStalled` in Rust) and reopens repeatedly until audio plays.
|
|
326
|
+
|
|
327
|
+
```python
|
|
328
|
+
secondary = flexaudio.SecondaryOutputOptions(rate=16000, channels=1, encoding='s16')
|
|
329
|
+
with flexaudio.open('mic', secondary_output=secondary,
|
|
330
|
+
vad=flexaudio.StreamVadOptions(tap='secondary')) as stream:
|
|
331
|
+
primary = stream.poll_chunk()
|
|
332
|
+
secondary_chunk = stream.poll_secondary()
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
`poll_secondary()` returns `None` when disabled or empty. Its format is fixed at
|
|
336
|
+
open and retained across source switches. Encoding defaults to `f32`; `s16`
|
|
337
|
+
uses the shared signed 16-bit quantizer. Both encodings return little-endian
|
|
338
|
+
`bytes`; NumPy dtypes are `<f4` and `<i2`. `peak` and `rms` always describe the
|
|
339
|
+
float samples before integer quantization. Each chunk also exposes `encoding`,
|
|
340
|
+
`frames`, `frame_index`, `pts_ns`, `seq`, `flags`, `dropped_before`, and
|
|
341
|
+
`vad_events`. The two polls do not consume each other's PCM. Counters and drops
|
|
342
|
+
are independent; align taps by time rather than sequence number. Stop and VAD
|
|
343
|
+
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.7.0](https://crates.io/crates/flexaudio/0.7.0)
|
|
2637
|
+
- [flexaudio-core 0.7.0](https://crates.io/crates/flexaudio-core/0.7.0)
|
|
2638
|
+
- [flexaudio-denoise 0.7.0](https://crates.io/crates/flexaudio-denoise/0.7.0)
|
|
2639
|
+
- [flexaudio-encode 0.7.0](https://crates.io/crates/flexaudio-encode/0.7.0)
|
|
2640
|
+
- [flexaudio-mic 0.7.0](https://crates.io/crates/flexaudio-mic/0.7.0)
|
|
2641
|
+
- [flexaudio-os-linux 0.7.0](https://crates.io/crates/flexaudio-os-linux/0.7.0)
|
|
2642
|
+
- [flexaudio-os-macos 0.7.0](https://crates.io/crates/flexaudio-os-macos/0.7.0)
|
|
2643
|
+
- [flexaudio-os-windows 0.7.0](https://crates.io/crates/flexaudio-os-windows/0.7.0)
|
|
2644
|
+
- [flexaudio-vad 0.7.0](https://crates.io/crates/flexaudio-vad/0.7.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,45 @@ 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
|
+
### Capability snapshot and optional output
|
|
305
|
+
|
|
306
|
+
`capabilities()` returns a dictionary with `os_version`, `sources`,
|
|
307
|
+
`system_exclusions`, `process`, `device_watcher`, and `side_effects`.
|
|
308
|
+
Keys use snake_case and tag values match the other bindings. Availability has
|
|
309
|
+
`status='supported'`, `status='unavailable'` with a `reason`, or
|
|
310
|
+
`status='unknown'` with the same structured error dictionary as
|
|
311
|
+
`error.audio_error.to_dict()`. The bounded probe releases the GIL and never
|
|
312
|
+
opens capture, requests recording consent, or plays audio. Support describes
|
|
313
|
+
platform prerequisites rather than permission or device availability.
|
|
314
|
+
|
|
315
|
+
On Linux, a missing PipeWire socket means unavailable. Failed socket inspection,
|
|
316
|
+
connection or server sync means unknown, with the structured query error retained.
|
|
317
|
+
|
|
318
|
+
`open(..., windows_classic_loopback_keepalive=True)` enables the Windows
|
|
319
|
+
classic loopback silent keepalive. Set it to `False` to disable it.
|
|
320
|
+
`switch_source(..., windows_classic_loopback_keepalive=None)` retains the
|
|
321
|
+
current setting; an explicit boolean replaces it only on successful switching.
|
|
322
|
+
The option applies to system capture and the system lane of Mix without PID
|
|
323
|
+
exclusions. Other platforms and process/exclusion capture ignore it. With it
|
|
324
|
+
disabled, idle classic loopback delivers no packets; the 2 s stall watchdog reports
|
|
325
|
+
`stalled` (`Event::StreamStalled` in Rust) and reopens repeatedly until audio plays.
|
|
326
|
+
|
|
327
|
+
```python
|
|
328
|
+
secondary = flexaudio.SecondaryOutputOptions(rate=16000, channels=1, encoding='s16')
|
|
329
|
+
with flexaudio.open('mic', secondary_output=secondary,
|
|
330
|
+
vad=flexaudio.StreamVadOptions(tap='secondary')) as stream:
|
|
331
|
+
primary = stream.poll_chunk()
|
|
332
|
+
secondary_chunk = stream.poll_secondary()
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
`poll_secondary()` returns `None` when disabled or empty. Its format is fixed at
|
|
336
|
+
open and retained across source switches. Encoding defaults to `f32`; `s16`
|
|
337
|
+
uses the shared signed 16-bit quantizer. Both encodings return little-endian
|
|
338
|
+
`bytes`; NumPy dtypes are `<f4` and `<i2`. `peak` and `rms` always describe the
|
|
339
|
+
float samples before integer quantization. Each chunk also exposes `encoding`,
|
|
340
|
+
`frames`, `frame_index`, `pts_ns`, `seq`, `flags`, `dropped_before`, and
|
|
341
|
+
`vad_events`. The two polls do not consume each other's PCM. Counters and drops
|
|
342
|
+
are independent; align taps by time rather than sequence number. Stop and VAD
|
|
343
|
+
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.7.0](https://crates.io/crates/flexaudio/0.7.0)
|
|
2637
|
+
- [flexaudio-core 0.7.0](https://crates.io/crates/flexaudio-core/0.7.0)
|
|
2638
|
+
- [flexaudio-denoise 0.7.0](https://crates.io/crates/flexaudio-denoise/0.7.0)
|
|
2639
|
+
- [flexaudio-encode 0.7.0](https://crates.io/crates/flexaudio-encode/0.7.0)
|
|
2640
|
+
- [flexaudio-mic 0.7.0](https://crates.io/crates/flexaudio-mic/0.7.0)
|
|
2641
|
+
- [flexaudio-os-linux 0.7.0](https://crates.io/crates/flexaudio-os-linux/0.7.0)
|
|
2642
|
+
- [flexaudio-os-macos 0.7.0](https://crates.io/crates/flexaudio-os-macos/0.7.0)
|
|
2643
|
+
- [flexaudio-os-windows 0.7.0](https://crates.io/crates/flexaudio-os-windows/0.7.0)
|
|
2644
|
+
- [flexaudio-vad 0.7.0](https://crates.io/crates/flexaudio-vad/0.7.0)
|
|
2645
2645
|
|
|
2646
2646
|
````text
|
|
2647
2647
|
MIT License
|
|
@@ -85,6 +85,77 @@ class AmbiguousDeviceNameErrorDict(_AudioErrorFields):
|
|
|
85
85
|
kind: Literal["ambiguousDeviceName"]
|
|
86
86
|
AudioErrorDict = Union[InvalidArgumentErrorDict, InvalidStateErrorDict, DeviceNotFoundErrorDict, RecordingPermissionErrorDict, UnsupportedOsVersionErrorDict, DeviceLostErrorDict, BackendErrorDict, UnsupportedFormatErrorDict, NativeFormatChangedErrorDict, UnsupportedErrorDict, AmbiguousDeviceNameErrorDict]
|
|
87
87
|
|
|
88
|
+
CapabilityBackend = Literal["cpal", "pipeWire", "wasapiLoopback", "wasapiProcessLoopback", "coreAudioProcessTap", "composite", "unsupported", "other"]
|
|
89
|
+
PidScope = Literal["exactPid", "processTree", "notApplicable", "other"]
|
|
90
|
+
class OsVersionDict(TypedDict):
|
|
91
|
+
major: int
|
|
92
|
+
minor: int
|
|
93
|
+
patch: Optional[int]
|
|
94
|
+
build: Optional[int]
|
|
95
|
+
class SimpleUnavailableReason(TypedDict):
|
|
96
|
+
kind: Literal["unsupportedOs", "pipeWireUnavailable", "notApplicable"]
|
|
97
|
+
class OsVersionTooOldReason(TypedDict):
|
|
98
|
+
kind: Literal["osVersionTooOld"]
|
|
99
|
+
required: OsVersionDict
|
|
100
|
+
actual: OsVersionDict
|
|
101
|
+
class OtherUnavailableReason(TypedDict):
|
|
102
|
+
kind: Literal["other"]
|
|
103
|
+
code: str
|
|
104
|
+
UnavailableReason = Union[SimpleUnavailableReason, OsVersionTooOldReason, OtherUnavailableReason]
|
|
105
|
+
class SupportedAvailability(TypedDict):
|
|
106
|
+
status: Literal["supported"]
|
|
107
|
+
class UnavailableAvailability(TypedDict):
|
|
108
|
+
status: Literal["unavailable"]
|
|
109
|
+
reason: UnavailableReason
|
|
110
|
+
class UnknownAvailability(TypedDict):
|
|
111
|
+
status: Literal["unknown"]
|
|
112
|
+
error: AudioErrorDict
|
|
113
|
+
Availability = Union[SupportedAvailability, UnavailableAvailability, UnknownAvailability]
|
|
114
|
+
class SourceCapabilityDict(TypedDict):
|
|
115
|
+
backend: CapabilityBackend
|
|
116
|
+
availability: Availability
|
|
117
|
+
class SourceCapabilitiesDict(TypedDict):
|
|
118
|
+
mic: SourceCapabilityDict
|
|
119
|
+
system: SourceCapabilityDict
|
|
120
|
+
process: SourceCapabilityDict
|
|
121
|
+
mix: SourceCapabilityDict
|
|
122
|
+
class SystemExclusionCapabilitiesDict(TypedDict):
|
|
123
|
+
availability: Availability
|
|
124
|
+
backend: CapabilityBackend
|
|
125
|
+
scope: PidScope
|
|
126
|
+
max_distinct_pids: Optional[int]
|
|
127
|
+
device_selection: Literal["honored", "ignored", "notApplicable", "other"]
|
|
128
|
+
class ProcessCapabilitiesDict(TypedDict):
|
|
129
|
+
include_scope: PidScope
|
|
130
|
+
exclude_scope: PidScope
|
|
131
|
+
class DeviceWatcherCapabilitiesDict(TypedDict):
|
|
132
|
+
availability: Availability
|
|
133
|
+
mode: Literal["native", "noop", "other"]
|
|
134
|
+
scopes: List[Literal["systemOutputs", "defaultSystemOutput", "other"]]
|
|
135
|
+
class SideEffectCapabilityDict(TypedDict):
|
|
136
|
+
availability: Availability
|
|
137
|
+
enabled_by_default: bool
|
|
138
|
+
sources: List[Literal["mic", "system", "process", "mix", "other"]]
|
|
139
|
+
condition: Literal["silentActiveSystemAudio", "classicLoopbackWithoutExclusions", "other"]
|
|
140
|
+
class SideEffectCapabilitiesDict(TypedDict):
|
|
141
|
+
silence_probe: SideEffectCapabilityDict
|
|
142
|
+
classic_loopback_keepalive: SideEffectCapabilityDict
|
|
143
|
+
class Capabilities(TypedDict):
|
|
144
|
+
os_version: Optional[OsVersionDict]
|
|
145
|
+
sources: SourceCapabilitiesDict
|
|
146
|
+
system_exclusions: SystemExclusionCapabilitiesDict
|
|
147
|
+
process: ProcessCapabilitiesDict
|
|
148
|
+
device_watcher: DeviceWatcherCapabilitiesDict
|
|
149
|
+
side_effects: SideEffectCapabilitiesDict
|
|
150
|
+
|
|
151
|
+
def capabilities() -> Capabilities:
|
|
152
|
+
"""Probe backend support without capture or consent; releases the GIL.
|
|
153
|
+
|
|
154
|
+
Supported describes prerequisites, not recording permission or device availability.
|
|
155
|
+
Query failures retain structured error details under availability.error.
|
|
156
|
+
"""
|
|
157
|
+
...
|
|
158
|
+
|
|
88
159
|
class NativeFormat:
|
|
89
160
|
@property
|
|
90
161
|
def sample_rate(self) -> int: ...
|
|
@@ -430,6 +501,40 @@ class DeviceEvent:
|
|
|
430
501
|
def error(self) -> Optional[AudioError]: ...
|
|
431
502
|
def to_dict(self) -> DeviceEventDict: ...
|
|
432
503
|
|
|
504
|
+
class SecondaryOutputOptions:
|
|
505
|
+
def __init__(self, *, rate: int, channels: int, encoding: Literal["f32", "s16"] = "f32") -> None: ...
|
|
506
|
+
@property
|
|
507
|
+
def rate(self) -> int: ...
|
|
508
|
+
@property
|
|
509
|
+
def channels(self) -> int: ...
|
|
510
|
+
@property
|
|
511
|
+
def encoding(self) -> Literal["f32", "s16"]: ...
|
|
512
|
+
|
|
513
|
+
class SecondaryChunk:
|
|
514
|
+
"""Independent tap counters; little-endian PCM and float meters before encoding."""
|
|
515
|
+
@property
|
|
516
|
+
def data(self) -> bytes: ...
|
|
517
|
+
@property
|
|
518
|
+
def encoding(self) -> Literal["f32", "s16"]: ...
|
|
519
|
+
@property
|
|
520
|
+
def frame_index(self) -> int: ...
|
|
521
|
+
@property
|
|
522
|
+
def frames(self) -> int: ...
|
|
523
|
+
@property
|
|
524
|
+
def pts_ns(self) -> int: ...
|
|
525
|
+
@property
|
|
526
|
+
def seq(self) -> int: ...
|
|
527
|
+
@property
|
|
528
|
+
def flags(self) -> int: ...
|
|
529
|
+
@property
|
|
530
|
+
def dropped_before(self) -> int: ...
|
|
531
|
+
@property
|
|
532
|
+
def peak(self) -> float: ...
|
|
533
|
+
@property
|
|
534
|
+
def rms(self) -> float: ...
|
|
535
|
+
@property
|
|
536
|
+
def vad_events(self) -> Optional[List[AttachedVadEvent]]: ...
|
|
537
|
+
|
|
433
538
|
class Stream:
|
|
434
539
|
def stop(self) -> None:
|
|
435
540
|
"""Stop once and retain the outcome; open a new stream to capture again."""
|
|
@@ -444,8 +549,9 @@ class Stream:
|
|
|
444
549
|
def native_format(self) -> Tuple[int, int]: ...
|
|
445
550
|
def dropped_chunks(self) -> int: ...
|
|
446
551
|
def poll_chunk(self) -> Optional[AudioChunk]:
|
|
447
|
-
"""
|
|
552
|
+
"""Poll the next primary audio chunk, or None when none is queued."""
|
|
448
553
|
...
|
|
554
|
+
def poll_secondary(self) -> Optional[SecondaryChunk]: ...
|
|
449
555
|
def poll_event(self) -> Optional[StreamEvent]:
|
|
450
556
|
"""Poll the ordinary FIFO event queue; PCM polling remains independent.
|
|
451
557
|
|
|
@@ -467,7 +573,8 @@ class Stream:
|
|
|
467
573
|
output_channels: int = 2, chunk_ms: int = 20, gain: float = 1.0,
|
|
468
574
|
mic_device_id: Optional[str] = None, system_device_id: Optional[str] = None,
|
|
469
575
|
mic_gain: float = 1.0, system_gain: float = 1.0,
|
|
470
|
-
denoise: bool = False, silence_probe: bool = True
|
|
576
|
+
denoise: bool = False, silence_probe: bool = True,
|
|
577
|
+
windows_classic_loopback_keepalive: Optional[bool] = None
|
|
471
578
|
) -> None:
|
|
472
579
|
"""Every successful switch creates a generation with DISCONTINUITY; epoch
|
|
473
580
|
transition waits for new PCM. Return means backend replaced, not delivered.
|
|
@@ -637,7 +744,7 @@ class StreamVadOptions:
|
|
|
637
744
|
@property
|
|
638
745
|
def provisional(self) -> bool: ...
|
|
639
746
|
@property
|
|
640
|
-
def tap(self) -> Literal["primary"]: ...
|
|
747
|
+
def tap(self) -> Literal["primary", "secondary"]: ...
|
|
641
748
|
|
|
642
749
|
def speech_segments(samples: Union[Sequence[float], memoryview],
|
|
643
750
|
params: Optional[VadOptions] = None) -> List[SpeechSegment]: ...
|
|
@@ -694,7 +801,9 @@ def open(
|
|
|
694
801
|
mic_device_id: Optional[str] = None, system_device_id: Optional[str] = None,
|
|
695
802
|
mic_gain: float = 1.0, system_gain: float = 1.0,
|
|
696
803
|
denoise: bool = False, silence_probe: bool = True,
|
|
697
|
-
vad: Optional[StreamVadOptions] = None
|
|
804
|
+
vad: Optional[StreamVadOptions] = None,
|
|
805
|
+
windows_classic_loopback_keepalive: bool = True,
|
|
806
|
+
secondary_output: Optional[SecondaryOutputOptions] = None
|
|
698
807
|
) -> Stream:
|
|
699
808
|
"""Open capture synchronously; macOS microphone consent must be decided.
|
|
700
809
|
|