feat(libwebrtc): implement the voice activity detector API #13816
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13816"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by mkrieger95 on 2026-10-31T07:54:43Z.
What
Replace the five throwing WebRtcVad exports in libwebrtc with the WebRTC voice activity detector: create/free, initialize/reset, aggressiveness modes 0–3 and processing of 10/20/30 ms int16 PCM frames at 8/16/32/48 kHz. Build the WebRTC-derived libfvad core from a pinned source submodule. Keep its internal symbols hidden and include its license and patent notices in release archives.
This PR adds the five VAD exports alongside the existing libwebrtc implementations. API signatures and semantics follow public WebRTC; PS5 ABI and classification parity have not been measured and are recorded in the library debt file.
Tested
Linux x86-64, GCC 14.2, Release,
BUILD_TESTING=ON; rebased onto upstream7c4dcf0ad84de7a473ce97bb21644c614f1c3bd3on 2026-11-01 UTC.libwebrtc, the VAD test and the existing WebRTC regression targets. All six CTests pass:guest_webrtc_vad,guest_webrtc_fast_int_to_buffer,guest_webrtc_time,guest_webrtc_exp_filter,guest_webrtc_rtcp_common_header,guest_webrtc_opus.python3 -m unittest tools.tests.test_package_release: suite passes, 78 tests run with 5 platform-specific skips.libwebrtc.prxsuccessfully.No Windows, macOS, title or console execution; no full-project build or PS5 classification-parity claim. The full Linux and Windows PR builds require a maintainer to start them.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T08:11:15Z.
Review: APPROVED
Reviewed — looks good
The exact head adds the five VAD exports with matching declarations and definitions, validates supported PCM inputs, packages the pinned dependency notices, and records that PS5 parity remains unmeasured.
What I ran
Reviewed head
bc646b5e6972e2f4ebfe45fa8c16fffd3fb1dbc5against PR base828ac0b2ae74aac181ba128fb59b08a1534f2041; the merge preview against currentmaine8c25dd3baa6e78531d5eee067fec5cbe8af3dcfwas clean. Local environment: Debian Linux x86-64, Python 3.11; I did not use a compiler. Commands run from the exact-head checkout:The author reports a Debian x86-64/GCC 14.2 Release build,
guest_webrtc_vadCTest pass, public-header audit, dynamic-symbol inspection, and NID-patched PRX generation. These are author-reported, not local runs. Hosted checks currently pass for conventions, intake, and labels; they do not include a product build.Results
Raw output from locally run checks
Negative control
KeyErrorbecauselibs/licenses/libfvad.txtis absent. This is consistent with the feature being absent, but is not counted as a successful assertion-based negative control.Findings
Blocking: None found.
Non-blocking: The PR correctly records that PS5 ABI and classification parity have not been measured. No console or title behavior was independently confirmed in this review.
Sources
Not verified
I did not locally build or run the C++ guest test, independently inspect the generated PRX, or test Windows, macOS, a PS5, or title behavior. The build, CTest, public-header audit, symbol inspection, and PRX-generation results above are from the PR description. The exact head remains
bc646b5e6972e2f4ebfe45fa8c16fffd3fb1dbc5at review time.