feat(tts): vendor Perth watermarking in EasyMagpie codec stage - #16208
Open
yhayarannvidia wants to merge 5 commits into
Open
feat(tts): vendor Perth watermarking in EasyMagpie codec stage#16208yhayarannvidia wants to merge 5 commits into
yhayarannvidia wants to merge 5 commits into
Conversation
blisc
reviewed
Sep 2, 2026
| numpy>=1.26 | ||
| pooch==1.8.2 | ||
| PyYAML>=6.0 | ||
| resemble-perth==1.0.1 |
Collaborator
There was a problem hiding this comment.
Does perth pull in all of these requirements? If so, can we make perth optional and create another section in requirements? Lastly, let's not pin all of perth's requirements. It can install it's own dependencies.
Member
|
some generic comments to PR:
|
…ons at chunk edges This update introduces the `_taper_watermark_delta` function, which applies a tapering effect to the watermark perturbations at the edges of independently processed chunks. This enhancement aims to preserve the codec waveform at both edges, preventing audible seams during the concatenation of streaming chunks. The `watermark_waveforms` function has been updated to utilize this new tapering method, improving the overall audio quality of the watermarked outputs.
…encies This commit introduces several improvements to the watermarking functionality, including the addition of a new test for preserving chunk edge samples and updates to existing tests for better accuracy. The Dockerfile and requirements files have been updated to include a new `requirements-perth.txt` for optional dependencies, ensuring that the serving loader uses only necessary packages. The README has also been updated to clarify the use of dependencies and their impact on watermarking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
The
Update branchbutton must only be pressed in very rare occassions.An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.
What does this PR do ?
Watermark EasyMagpie codec PCM with Perth inside the vLLM-Omni package, with no extra PYTHONPATH module.
Collection: [Note which collection this PR will affect]
Changelog
easymagpie_vllm_omni.watermarkand call it from the native codec stage after decode.NEMOTRON_TTS_PERTH_WATERMARK=0. Startup fails if Perth cannot load.resemble-perthplus librosa/torchaudio deps to EasyMagpierequirements.txt.Usage