Repository navigation
fix(media): whole-token generator signatures, context for common words (no more 'Udio' on Studio) - #35
Merged
Conversation
…xt for common words Raw substring search turned 'Studio' (FL Studio, Studio One, Sound Studio) and 'xmpDM:audioSampleRate' into 'Generator signature: Udio, high' on human recordings. On 23 human recordings from Wikimedia Commons (pre-2022) 2 were flagged; with this change 0. Short or ordinary-word names (udio, suno, sora, pika, flux, runway, gemini, playground, firefly, imagen) now also need generator context: a domain, 'made with ...', '... ai', a version, a vendor name, or a metadata value that is exactly the name (keeps RIFF ISFT 'Suno' detected).
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.
Problem
_scan_markersmatched generator signatures as raw substrings of the lowercased metadata. Two kinds of human audio got "Generator signature: Udio (audio), high", risk 1.0:xmpDM:audioSampleRate.The PromoPilot audio watermark detector runs on this module and has been used about 1,200 times since 13.10, so users saw these wrong verdicts.
Fix
suno.com,udio.com,pika.art;<name> ai, a version (v4,2), orFLUX.1-dev;ISFT "Suno"tag detected, as the existing test expects.Tests
New tests in
tests/test_media_watermark.py:pytest tests/test_media_watermark.py tests/test_watermark.py: 30 passed.Real files, run on the PromoPilot server:
h03.wav: RIFF "Sound Studio";h13.mp3:xmpDM:audioSampleRate)So no real generator detection is lost.