From d4c5aa7789991e2d80cdce3b727751c2cf021813 Mon Sep 17 00:00:00 2001 From: Victor Kuznetsov Date: Wed, 2 Dec 2026 14:09:16 -0800 Subject: [PATCH] Release 0.82.0: add Mirelo audio vendor Recognize Mirelo audio by its Content Credentials or by an explicit vendor, and clean it with the AudioSeal profiles. Co-Authored-By: Claude Opus 5.5 --- .claude-plugin/marketplace.json | 2 +- .codex-plugin/plugin.json | 2 +- .cursor-plugin/plugin.json | 2 +- docs/cli.md | 8 ++++---- docs/mcp-server.md | 2 +- docs/module-internals.md | 4 ++-- docs/python-api.md | 2 +- docs/supported-signals.md | 5 +++++ gemini-extension.json | 2 +- pyproject.toml | 2 +- server.json | 4 ++-- skills/.claude-plugin/plugin.json | 2 +- skills/remove-ai-watermarks/SKILL.md | 2 +- .../remove-ai-watermarks/references/commands.md | 2 +- skills/remove-ai-watermarks/scripts/probe.py | 3 ++- src/remove_ai_watermarks/__init__.py | 2 +- src/remove_ai_watermarks/_internal/constants.py | 1 + src/remove_ai_watermarks/audio.py | 9 +++++++-- src/remove_ai_watermarks/cli.py | 2 +- tests/test_av_wave8_features.py | 16 ++++++++++++++++ uv.lock | 2 +- 21 files changed, 52 insertions(+), 24 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 8ae1a4f..cc83122 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -6,7 +6,7 @@ }, "metadata": { "description": "Agent skill and Claude Code plugin for the remove-ai-watermarks CLI.", - "version": "1.0.30" + "version": "1.0.31" }, "plugins": [ { diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 288e5c9..7f5ac1c 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "remove-ai-watermarks", - "version": "1.0.30", + "version": "1.0.31", "description": "Identify and remove AI provenance marks from images, video, audio, and text the user generated or edited, using the remove-ai-watermarks CLI.", "author": { "name": "wiltodelta", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 31e80f2..178767b 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "remove-ai-watermarks", "displayName": "Remove AI Watermarks", - "version": "1.0.30", + "version": "1.0.31", "description": "Identify and remove AI provenance marks from images, video, audio, and text the user generated or edited, using the remove-ai-watermarks CLI.", "author": { "name": "wiltodelta", diff --git a/docs/cli.md b/docs/cli.md index 058e55c..f3e0ab5 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -82,7 +82,7 @@ certifies a production provider, other framing, or complete payload erasure. `audio invisible` defaults to `--method auto`, an adaptive minimal-distortion profile sequence for the requested scheme and pre-strip vendor metadata. AudioSeal and Perth v1 try spectral then combined processing; WavMark and SilentCipher-44k -try neural then combined; when pre-strip C2PA/container metadata identifies ElevenLabs (`("dac", "encodec", "combined")` on mono, stereo, or tagged 5.1/7.1 when `dac` is installed, else `("encodec", "combined")`) or Google SynthID (`("dac", "combined")` on the same layouts when `dac` is installed, else `dac` alone, which fails closed), `--method auto` skips `spectral` and routes directly to neural codec resynthesis; an explicit `--vendor` cohort (`google`, `elevenlabs`, `suno`, `udio`, `openai`, `cartesia`, `meta`, `resemble`, `microsoft`) selects the same kind of vendor-matched sequence when metadata was already stripped and authorizes processing without `--allow-unverified`; when `--scheme auto` or `--scheme all` detects a specific subset of public schemes on the source, `--method auto` adapts to the lightest profile sequence covering only the positively detected schemes before falling back to `combined`. Publication requires +try neural then combined; when pre-strip C2PA/container metadata identifies ElevenLabs (`("dac", "encodec", "combined")` on mono, stereo, or tagged 5.1/7.1 when `dac` is installed, else `("encodec", "combined")`) or Google SynthID (`("dac", "combined")` on the same layouts when `dac` is installed, else `dac` alone, which fails closed), `--method auto` skips `spectral` and routes directly to neural codec resynthesis; an explicit `--vendor` cohort (`google`, `elevenlabs`, `suno`, `udio`, `openai`, `cartesia`, `meta`, `resemble`, `microsoft`, `mirelo`) selects the same kind of vendor-matched sequence when metadata was already stripped and authorizes processing without `--allow-unverified`; when `--scheme auto` or `--scheme all` detects a specific subset of public schemes on the source, `--method auto` adapts to the lightest profile sequence covering only the positively detected schemes before falling back to `combined`. Publication requires a positive compatible source check and proceeds only after the saved output is negative in whole-clip and window checks. A resistant or incompletely checked candidate raises an error and preserves an existing output. @@ -680,9 +680,9 @@ public-decoder-negative track: `--audio-allow-unverified` keeps the saved-file SNR, RMS, and 1-second active-window integrity gate active, whereas `--audio-force` also overrides final decoder and quality checks. When provenance metadata was already stripped and you know the AI generator cohort (`google`, `elevenlabs`, `suno`, `udio`, -`openai`, `cartesia`, `meta`, `resemble`, `microsoft`), pass `--audio-vendor` on +`openai`, `cartesia`, `meta`, `resemble`, `microsoft`, `mirelo`), pass `--audio-vendor` on `video all` or `video batch` (or `--vendor` on `audio invisible`, `audio all`, -`audio batch`, `video audio`, and multimodal `all`) to select `dac` and run the +`audio batch`, `video audio`, and multimodal `all`) to select that cohort's profile (`dac` for most, `spectral` for `meta` and `mirelo`) and run the audio scrub without needing `--audio-allow-unverified`. Current `dac` provider-oracle evidence covers short single-pass clips (`<= 10 s`); `focalcodec` failed on a held-out 10 s native Gemini audio output. @@ -1012,7 +1012,7 @@ cleaning, and `deep-clean` activates `--force` pixel/waveform regeneration) are explicit `--vendor`), an audio file runs `audio all --invisible --scheme auto`, and a text file runs `text all` (regeneration only with `--force` or `--preset deep-clean`). On these inputs `--vendor` also accepts the audio cohorts (`elevenlabs`, `suno`, `udio`, -`cartesia`, `resemble`); an audio-only cohort on an image is a usage error. Use +`cartesia`, `resemble`, `mirelo`); an audio-only cohort on an image is a usage error. Use the media-specific commands for any other option. After the visible stage, `all` reports whether the once-filled result was validated as cleaned, still produced an overlapping residual (`Partial`), or diff --git a/docs/mcp-server.md b/docs/mcp-server.md index 9aac1d0..6ad43b4 100644 --- a/docs/mcp-server.md +++ b/docs/mcp-server.md @@ -79,7 +79,7 @@ Audio tools ship since 0.63.0. `stream` is a nonnegative audio-track ordinal (`v `audio_invisible` and `video_audio` accept `method: "auto"` (default), `"spectral"`, `"encodec"`, `"combined"`, `"dac"`, or `"snac"`. `audio_invisible` requires a compatible decoder extra such as `audio-detect` for default source-positive and -saved-output-negative verification. A `vendor` other than `"auto"` (`google`, `elevenlabs`, `suno`, `udio`, `openai`, `cartesia`, `meta`, `resemble`, `microsoft`) names a known source cohort for stripped files, selects a vendor-matched profile sequence, and implies `allow_unverified`. `allow_unverified: true` (for example with `method: "dac"`, or alongside `verify: false`) permits unverified processing with the `audio` extra while keeping the audio SNR/RMS/window integrity gate active (`force: true` also overrides final decoder and quality checks). Audio tools require ffmpeg and +saved-output-negative verification. A `vendor` other than `"auto"` (`google`, `elevenlabs`, `suno`, `udio`, `openai`, `cartesia`, `meta`, `resemble`, `microsoft`, `mirelo`) names a known source cohort for stripped files, selects a vendor-matched profile sequence, and implies `allow_unverified`. `allow_unverified: true` (for example with `method: "dac"`, or alongside `verify: false`) permits unverified processing with the `audio` extra while keeping the audio SNR/RMS/window integrity gate active (`force: true` also overrides final decoder and quality checks). Audio tools require ffmpeg and ffprobe. `scheme: "auto"` (default; scans installed non-experimental decoders `audioseal`, `wavmark`, `perth` without failing on missing optional extras), `"audioseal"`, `"wavmark"`, `"perth"`, `"silentcipher"`, or `"all"` selects compatible public-model checks. WavMark needs `audio-wavmark`, Perth v1 needs `audio-perth`, and SilentCipher-44k needs `audio-silentcipher`; `all` needs every decoder extra. Auto tries spectral then combined for AudioSeal and Perth v1, neural then diff --git a/docs/module-internals.md b/docs/module-internals.md index 91355d7..f193d53 100644 --- a/docs/module-internals.md +++ b/docs/module-internals.md @@ -396,8 +396,8 @@ explicit `vendor` (`AUDIO_VENDORS`, validated by `normalize_audio_vendor`) or el the pre-strip metadata vendor: Google uses only `dac`/`combined` (just `dac`, failing closed rather than falling back to `encodec`, when DAC is absent or the layout is neither mono/stereo nor a tagged surround layout); ElevenLabs, Suno, -Udio, OpenAI, Cartesia and Microsoft use `dac`/`encodec`/`combined`; Meta starts -with `spectral` and Resemble with `dac` then `spectral`. An explicit vendor also +Udio, OpenAI, Cartesia and Microsoft use `dac`/`encodec`/`combined`; Mirelo, whose +mark is public AudioSeal, uses `spectral`/`combined`; Meta starts with `spectral` and Resemble with `dac` then `spectral`. An explicit vendor also asserts the mark is present, so it implies `allow_unverified`, the invisible stage of `remove_audio_all` / `remove_audio_batch`, and the audio-invisible stage of `remove_video_all` / `remove_video_batch`. It preserves pre-strip vendor diff --git a/docs/python-api.md b/docs/python-api.md index 0c1e4ad..4b1d1e1 100644 --- a/docs/python-api.md +++ b/docs/python-api.md @@ -664,7 +664,7 @@ overlap-window streaming while remaining excluded from `auto`. `remove_audio_invisible`, `remove_audio_all`, `remove_audio_batch`, `remove_video_audio`, and `remove_video_audio_all_streams` accept `vendor` (`"auto"`, `"google"`, `"elevenlabs"`, `"suno"`, `"udio"`, `"openai"`, -`"cartesia"`, `"meta"`, `"resemble"`, or `"microsoft"`); `remove_video_all` and +`"cartesia"`, `"meta"`, `"resemble"`, `"microsoft"`, or `"mirelo"`); `remove_video_all` and `remove_video_batch` take it as `audio_vendor`. A named vendor (not `"auto"`) selects that cohort's `method="auto"` candidate order and, because naming it asserts the proprietary mark is present, implies `allow_unverified=True`. diff --git a/docs/supported-signals.md b/docs/supported-signals.md index 3d69928..934f587 100644 --- a/docs/supported-signals.md +++ b/docs/supported-signals.md @@ -227,6 +227,11 @@ and WavMark models, public Perth v1, and an experimental SilentCipher-44k receiv and native sample clocks for validated 24 and 48 kHz sources. Other native clocks are not added automatically; neither a quiet resampled receiver nor a matching public-model mark establishes production-provider attribution. +Mirelo SFX files carry a C2PA manifest signed `Mirelo AI GmbH` whose +`ai.mirelo.watermark` assertion names AudioSeal. The public detector read the mark +on 4 of 4 SFX 1.6 files served by Higgsfield (November 2026), and the `spectral` +profile left it undetected on all four with the quality gate passed. Stripped files +keep the mark, but nothing in them names Mirelo. AudioSeal excludes stationary tonal spans (pure tones, square or sawtooth waves), where its public detector reads unmarked audio as marked; checks covering them are unverified rather than negative. diff --git a/gemini-extension.json b/gemini-extension.json index 4c9781d..e77b022 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,7 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/google-gemini/gemini-cli/main/schemas/gemini-extension.json", "name": "remove-ai-watermarks", - "version": "1.0.30", + "version": "1.0.31", "description": "Identify and remove AI provenance marks from images, video, audio, and text the user generated or edited, using the remove-ai-watermarks CLI.", "contextFileName": "skills/remove-ai-watermarks/SKILL.md", "mcpServers": { diff --git a/pyproject.toml b/pyproject.toml index 676ed54..1ec2e37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ # on it, including the ComfyUI node package. The console script below carries # the same weight, since users have it on PATH. name = "remove-ai-watermarks" -version = "0.81.0" +version = "0.82.0" description = "AI watermark remover for visible, invisible, and provenance marks in images, video, audio, and text" readme = "README.md" requires-python = ">=3.11,<3.15" diff --git a/server.json b/server.json index 6062c85..cfa7941 100644 --- a/server.json +++ b/server.json @@ -3,7 +3,7 @@ "name": "io.github.wiltodelta/remove-ai-watermarks", "title": "Remove AI Watermarks", "description": "Identify and clean AI watermarks and provenance in your own images, video, audio, and text.", - "version": "0.81.0", + "version": "0.82.0", "repository": { "url": "https://github.com/wiltodelta/remove-ai-watermarks", "source": "github" @@ -14,7 +14,7 @@ "registryType": "pypi", "registryBaseUrl": "https://pypi.org", "identifier": "remove-ai-watermarks", - "version": "0.81.0", + "version": "0.82.0", "runtimeHint": "uvx", "transport": { "type": "stdio" diff --git a/skills/.claude-plugin/plugin.json b/skills/.claude-plugin/plugin.json index 50ffe4b..be7c0c7 100644 --- a/skills/.claude-plugin/plugin.json +++ b/skills/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "remove-ai-watermarks", "displayName": "Remove AI Watermarks", - "version": "1.0.30", + "version": "1.0.31", "description": "Identify and remove AI provenance marks from images, video, audio, and text the user generated or edited, using the remove-ai-watermarks CLI.", "author": { "name": "wiltodelta", diff --git a/skills/remove-ai-watermarks/SKILL.md b/skills/remove-ai-watermarks/SKILL.md index e93dc82..1dd3ade 100644 --- a/skills/remove-ai-watermarks/SKILL.md +++ b/skills/remove-ai-watermarks/SKILL.md @@ -5,7 +5,7 @@ license: Apache-2.0 compatibility: Python 3.11-3.14. Invisible image removal needs NVIDIA CUDA. Audio needs ffmpeg and ffprobe. The video extra bundles these tools on supported platforms. Installer may be uv, pipx, pip, or Homebrew. metadata: author: wiltodelta - version: "1.0.30" + version: "1.0.31" homepage: https://raiw.cc repository: https://github.com/wiltodelta/remove-ai-watermarks --- diff --git a/skills/remove-ai-watermarks/references/commands.md b/skills/remove-ai-watermarks/references/commands.md index ad9caf6..fbc635e 100644 --- a/skills/remove-ai-watermarks/references/commands.md +++ b/skills/remove-ai-watermarks/references/commands.md @@ -99,7 +99,7 @@ file came from. Image cohorts apply to `invisible`; multimodal `all` and `batch` accept the full audio/video superset below. Audio vendor cohorts: `auto`, `google`, `elevenlabs`, `suno`, `udio`, `openai`, -`cartesia`, `meta`, `resemble`, `microsoft`. Naming an audio cohort on `all`, +`cartesia`, `meta`, `resemble`, `microsoft`, `mirelo` (since CLI 0.82.0). Naming an audio cohort on `all`, `batch`, `audio invisible`, `audio all`, `audio batch`, `video audio` (`--vendor`), or `video all` / `video batch` (`--audio-vendor`) asserts the waveform mark is present, selects a vendor-matched profile sequence (`dac` first for most cohorts, diff --git a/skills/remove-ai-watermarks/scripts/probe.py b/skills/remove-ai-watermarks/scripts/probe.py index 9045499..ded86de 100644 --- a/skills/remove-ai-watermarks/scripts/probe.py +++ b/skills/remove-ai-watermarks/scripts/probe.py @@ -49,9 +49,10 @@ _GPU_MARKERS = ("GPU ", "gpu:") # 0.79.0 adds `mindvideo`, `higgsfield`, `capcut`, `jianying`, and Samsung `en`/`es`/`fr` # visible image marks, Udio C2PA recognition, and distinct audio removal outcome fields. # 0.80.0 adds the `runway` visible video mark detector. +# 0.82.0 adds the `mirelo` audio vendor. # tests/test_agent_skill.py pins it against the package version and against every # "(since CLI X.Y.Z)" annotation. -MIN_CLI_VERSION = (0, 80, 0) +MIN_CLI_VERSION = (0, 82, 0) # Markers a build without the pixel stack prints. The first is the current CLI's own # install hint; the rest are what older builds emit before the guard existed, and the # legacy Homebrew installs can still contain such a build. diff --git a/src/remove_ai_watermarks/__init__.py b/src/remove_ai_watermarks/__init__.py index 92f3dbf..68b9782 100644 --- a/src/remove_ai_watermarks/__init__.py +++ b/src/remove_ai_watermarks/__init__.py @@ -46,7 +46,7 @@ _os.environ.setdefault("TRANSFORMERS_VERBOSITY", "error") _warnings.filterwarnings("ignore", message=r".*ImageProcessorFast.*") -__version__ = "0.81.0" +__version__ = "0.82.0" __all__ = [ "AudioAllResult", diff --git a/src/remove_ai_watermarks/_internal/constants.py b/src/remove_ai_watermarks/_internal/constants.py index 04471ef..3f9cad9 100644 --- a/src/remove_ai_watermarks/_internal/constants.py +++ b/src/remove_ai_watermarks/_internal/constants.py @@ -21,6 +21,7 @@ AudioVendor = Literal[ "meta", "resemble", "microsoft", + "mirelo", ] AUDIO_VENDORS: tuple[AudioVendor, ...] = get_args(AudioVendor) AUDIO_SCHEMES: tuple[AudioScheme, ...] = ( diff --git a/src/remove_ai_watermarks/audio.py b/src/remove_ai_watermarks/audio.py index 25e73f7..ce84755 100644 --- a/src/remove_ai_watermarks/audio.py +++ b/src/remove_ai_watermarks/audio.py @@ -927,8 +927,8 @@ def _scan_audio_multi( def _audio_metadata_vendor( markers: dict[str, str], -) -> Literal["elevenlabs", "google_synthid", "cartesia", "openai", "suno", "udio"] | None: - """Identify proprietary AI-audio waveform vendors from pre-strip metadata.""" +) -> Literal["elevenlabs", "google_synthid", "cartesia", "mirelo", "openai", "suno", "udio"] | None: + """Identify AI-audio waveform vendors from pre-strip metadata.""" if not markers: return None from remove_ai_watermarks._internal.c2pa import markers_claim_ai @@ -946,6 +946,8 @@ def _audio_metadata_vendor( return "elevenlabs" if "cartesia" in identity_text: return "cartesia" + if "mirelo" in identity_text: + return "mirelo" if "suno" in identity_text: return "suno" if "udio" in identity_text: @@ -1276,6 +1278,9 @@ def adaptive_auto_profiles( return ("dac", "encodec", "combined") if can_use_dac else ("encodec", "combined") if resolved_vendor == "meta": return ("spectral", "dac", "combined") if can_use_dac else ("spectral", "combined") + # Mirelo's mark is public AudioSeal. + if resolved_vendor == "mirelo": + return _AUTO_PROFILES["audioseal"] if resolved_vendor == "resemble": return ("dac", "spectral", "combined") if can_use_dac else ("spectral", "combined") if scheme not in {"all", "auto"} or before.watermark_status != "detected": diff --git a/src/remove_ai_watermarks/cli.py b/src/remove_ai_watermarks/cli.py index 2259068..802da89 100644 --- a/src/remove_ai_watermarks/cli.py +++ b/src/remove_ai_watermarks/cli.py @@ -309,7 +309,7 @@ _all_vendor_option = click.option( help=( "Known AI generator cohort (image: openai, google, microsoft, meta; " "audio/video: google, elevenlabs, suno, udio, openai, cartesia, meta, " - "resemble, microsoft). Naming the cohort asserts the invisible mark is " + "resemble, microsoft, mirelo). Naming the cohort asserts the invisible mark is " "present and runs the certified scrub even when provenance metadata was " "already stripped." ), diff --git a/tests/test_av_wave8_features.py b/tests/test_av_wave8_features.py index 2901280..38dc184 100644 --- a/tests/test_av_wave8_features.py +++ b/tests/test_av_wave8_features.py @@ -113,3 +113,19 @@ def test_blend_hf_crossover_matches_low_band_rms() -> None: orig_rms = float(np.sqrt(np.mean(orig**2))) blended_rms = float(np.sqrt(np.mean(blended**2))) assert abs(blended_rms - orig_rms) / orig_rms < 0.05 + + +def test_mirelo_audio_routes_to_the_lightest_audioseal_profile(tmp_path: Path) -> None: + """Mirelo's mark is public AudioSeal: metadata or a hint names it, and a negative reading stays a negative.""" + stream = audio_io.AudioStreamInfo( + index=0, sample_rate=44100, channels=1, codec="mp3", start_time=Fraction(0), duration=Fraction(2) + ) + + def report(markers: dict[str, str]) -> audio.AudioProvenanceReport: + return audio.AudioProvenanceReport(tmp_path / "m.mp3", "mp3", stream, markers, "not_detected", (), ()) + + signed = report({"claim_generator": "Mirelo"}) + assert audio.audio_metadata_vendor(signed.metadata_markers) == "mirelo" + assert audio.adaptive_auto_profiles("auto", signed) == ("spectral", "combined") + assert audio.adaptive_auto_profiles("auto", report({}), vendor="mirelo") == ("spectral", "combined") + assert audio.should_auto_scrub_audio(signed, method="auto", explicit_vendor=None) is False diff --git a/uv.lock b/uv.lock index bb4f790..8ef6271 100644 --- a/uv.lock +++ b/uv.lock @@ -3895,7 +3895,7 @@ wheels = [ [[package]] name = "remove-ai-watermarks" -version = "0.81.0" +version = "0.82.0" source = { editable = "." } dependencies = [ { name = "c2pa-python" },