SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.12770 · 2023

WavMark: Watermarking for Audio Generation

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2308.12770.json · badge: /api/ran/2308.12770.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wavmark/wavmark community (classifier label)
classifier basis not recorded on the link
10 ran · 2 no recorded run
FunctionStatusWhere it lives
calc_ber Ran
ran; our contract draft was wrong, not the code
wavmark/wavmark/src/wavmark/utils/metric_util.py
code served (permissive licence) · get_code("f784b3e2f7189461")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for the function parameters
# watermark_decoded_tensor: tensor of decoded watermark values (continuous, pre-threshold)
watermark_decoded_tensor = torch.tensor([
    [0.2, 0.7, 0.1, 0.9],
    [0.6, 0.3, 0.8, 0.4]
], dtype=torch.float32)

# watermark_tensor: tensor of ground truth watermark values (continuous, pre-threshold)
watermark_tensor = torch.tensor([
    [0.1, 0.8, 0.2, 0.95],
    [0.55, 0.4, 0.75, 0.35]
], dtype=torch.float32)

# threshold: scalar threshold value for binarization
threshold = 0.5

ARGS = {
    "watermark_decoded_tensor": watermark_decoded_tensor,
    "watermark_tensor": watermark_tensor,
    "threshold": threshold,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
decode_trunck Ran
ran on a synthesized input
wavmark/wavmark/src/wavmark/utils/wm_decode_util.py
code served (permissive licence) · get_code("cf44a0ab24e3a7eb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleDecoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def decode(self, signal):
        # signal shape: (batch, 4)
        # return shape: (batch, 3)
        return torch.sigmoid(self.linear(signal))

model = SimpleDecoder()
device = 'cpu'
trunck = [0.1, 0.2, 0.3, 0.4]

ARGS = {
    'trunck': trunck,
    'model': model,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
encode_trunck Ran
ran on a synthesized input
wavmark/wavmark/src/wavmark/utils/wm_add_util.py
code served (permissive licence) · get_code("79899b433db9b9db")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (5,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a minimal model that has an encode method
class MinimalEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 5)
    
    def encode(self, signal, message):
        # signal shape: (1, 4), message shape: (1, 4)
        # Combine them and return a tensor
        combined = signal + message[:, :4]
        output = self.linear(combined)
        return output

model = MinimalEncoder()

# Create small test data
trunck = np.array([1.0, 2.0, 3.0, 4.0])
wm = np.array([0.1, 0.2, 0.3, 0.4])
device = 'cpu'

ARGS = {
    'trunck': trunck,
    'wm': wm,
    'device': device,
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_watermark_v3_batch Ran
ran on a synthesized input
wavmark/wavmark/src/wavmark/utils/wm_decode_util.py
code served (permissive licence) · get_code("0cd869a47ff6cd14")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
import torch.nn as nn

torch.manual_seed(0)
np.random.seed(0)

# Build a minimal model that has a decode method
class MockWatermarkModel(nn.Module):
    def __init__(self, input_size=4, output_size=8):
        super().__init__()
        self.linear = nn.Linear(input_size, output_size)
    
    def decode(self, signal):
        # signal shape: (batch_size, num_point)
        # Returns probabilities for each bit in the message
        return torch.sigmoid(self.linear(signal))

model = MockWatermarkModel(input_size=4, output_size=8)
model.eval()

# Create synthetic audio data (simple 1D array)
# Using a longer array so we can extract multiple windows
data = np.random.randn(200).astype(np.float32)

# Start bit pattern (8 bits for the watermark header)
start_bit = np.array([1, 0, 1, 0, 1, 0, 1, 0], dtype=np.int32)

# Parameters
shift_range = 0.5  # Proportion of num_point to shift by
num_point = 4      # Number of points per detection window
device = 'cpu'
batch_size = 2
shift_range_p = 0.5
show_progress = False

ARGS = {
    'data': data,
    'start_bit': start_bit,
    'shift_range': shift_range,
    'num_point': num_point,
    'model': model,
    'device': device,
    'batch_size': batch_size,
    'shift_range_p': shift_range_p,
    'show_progress': show_progress,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
flow_warp Ran
ran on a synthesized input
wavmark/wavmark/src/wavmark/models/module_util.py
code served (permissive licence) · get_code("89775433724607a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 3, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Construct valid arguments for flow_warp function
# x: (N, C, H, W) - image or feature map tensor
# flow: (N, 2, H, W) - optical flow tensor (will be permuted to (N, H, W, 2) inside function)
# interp_mode: interpolation mode string
# padding_mode: padding mode string

N, C, H, W = 2, 4, 3, 5  # batch=2, channels=4, height=3, width=5

# Create x tensor (N, C, H, W)
x = torch.randn(N, C, H, W)

# Create flow tensor (N, 2, H, W) - optical flow with 2 components (x, y)
# The function expects this to be permuted to (N, H, W, 2) internally
flow = torch.randn(N, 2, H, W) * 0.5  # Scale to keep displacements reasonable

ARGS = {
    'x': x,
    'flow': flow,
    'interp_mode': 'bilinear',
    'padding_mode': 'zeros'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_wav_file Ran
ran on a synthesized input
wavmark/wavmark/src/wavmark/utils/file_reader.py
code served (permissive licence) · get_code("7fedcb3f8ef7c259")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

def is_wav_file(filename):
    file_extension = os.path.splitext(filename)[1]
    return file_extension.lower() == '.wav'

ARGS = {
    'filename': 'audio.wav'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_layer Ran
ran; our contract draft was wrong, not the code
wavmark/wavmark/src/wavmark/models/module_util.py
pointer only (licence: MIT); the stored copy get_code serves, from haoyuc/A2N, is pointer only (licence: NONE) · get_code("c04a23de0531da4a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from haoyuc/A2N, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_it Ran
ran on a synthesized input
wavmark/wavmark/src/wavmark/utils/my_parser.py
code served (permissive licence) · get_code("ae5870a326883efc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Namespace. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple argument parser
parser = argparse.ArgumentParser(description="Test parser")
parser.add_argument("--learning_rate", type=float, default=0.001)
parser.add_argument("--batch_size", type=int, default=32)
parser.add_argument("--epochs", type=int, default=10)
parser.add_argument("--model_name", type=str, default="test_model")

ARGS = {
    "parser": parser
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
signal_noise_ratio Ran
ran on a synthesized input
wavmark/wavmark/src/wavmark/utils/metric_util.py
code served (permissive licence) · get_code("24bfb1e09a4a6505")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create two numpy arrays with the same shape for testing
# These represent an original signal and a watermarked signal
original = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
signal_watermarked = np.array([1.1, 2.05, 2.9, 4.2, 4.95])

ARGS = {
    'original': original,
    'signal_watermarked': signal_watermarked
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_equal_length Ran
ran on a synthesized input
wavmark/wavmark/src/wavmark/utils/metric_util.py
code served (permissive licence) · get_code("00f08cddc0d12321")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create two tensors with different lengths
original = torch.randn(5, 4)
signal_watermarked = torch.randn(3, 4)

ARGS = {
    'original': original,
    'signal_watermarked': signal_watermarked
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
add_watermark Not yet run
unverified (harvested, no recorded run)
wavmark/wavmark/src/wavmark/utils/wm_add_util.py
code served (permissive licence) · get_code("0a1d489803f389d7")
How it ran

no invocation recorded.

encode_trunck_with_snr_check Not yet run
unverified (harvested, no recorded run)
wavmark/wavmark/src/wavmark/utils/wm_add_util.py
code served (permissive licence) · get_code("0ca470ba8ff87079")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
make_layer 31 other papers
21 dated earlier, 10 later · 6 only as an assembly brick
1809.00219 (2018-09)
ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks
1905.02716 (2019-05)
EDVR: Video Restoration with Enhanced Deformable Convolutional Networks
1905.10485 (2019-05)
Generative Latent Flow
and 28 more not named here
calc_ber 1 other paper
1 later
2409.19627 (2024-09)
IDEAW: Robust Neural Audio Watermarking with Invertible Dual-Embedding

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent breakthroughs in zero-shot voice synthesis have enabled imitating a speaker's voice using just a few seconds of recording while maintaining a high level of realism. Alongside its potential benefits, this powerful technology introduces notable risks, including voice fraud and speaker impersonation. Unlike the conventional approach of solely relying on passive methods for detecting synthetic data, watermarking presents a proactive and robust defence mechanism against these looming risks. This paper introduces an innovative audio watermarking framework that encodes up to 32 bits of watermark within a mere 1-second audio snippet. The watermark is imperceptible to human senses and exhibits strong resilience against various attacks. It can serve as an effective identifier for synthesized voices and holds potential for broader applications in audio copyright protection. Moreover, this framework boasts high flexibility, allowing for the combination of multiple watermark segments to achieve heightened robustness and expanded capacity. Utilizing 10 to 20-second audio as the host, our approach demonstrates an average Bit Error Rate (BER) of 0.48\% across ten common attacks, a remarkable reduction of over 2800\% in BER compared to the state-of-the-art watermarking tool. See https://aka.ms/wavmark for demos of our work.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2308.12770")
get_code_for_paper("2308.12770")
have("2308.12770")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2308.12770.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2308.12770.svg)](https://syntology.ai/paper/2308.12770)

Connect an agent — have() is free.