Skip to content
← All tutorials

Tutorial · Audio

Watermark an AI voice, then see what survives WhatsApp

Mark an ElevenLabs voice line with the Python SDK, then put it through MP3, the voice-note codec, a phone line, a clip, noise and a real over-the-air voice note. It survives everything software does, but not a speaker and a mic.

0:45 video · Real run on 29 November 2026 · Markproof

0:45 · text on screen, no narration

In short

  • An AI-generated voice line (ElevenLabs) gets a hidden audio watermark and signed Content Credentials (C2PA) from one SDK call.
  • The watermark survives MP3 at 32 kbps, the voice-note codec, a phone line and a 4-second clip, with background noise as the weakest case.
  • It does not survive being played through a speaker and re-recorded as a voice note. That's why Markproof also signs Content Credentials and keeps a record of every file.

Listen first

Both files are below. The marked one carries the watermark, 31.5 dB below the voice. You can download it and drop it into the free checker to see it detected.

Original (from the AI)
Marked (MP3 copy)

1. Install the SDK

You need Python 3 and a Markproof API key: sign up and copy it from your dashboard (250 free calls a month). Keep the key on your server, in an environment variable.

Terminal
pip install markproof

2. Mark the voice

The input is the MP3 exactly as the voice generator delivered it, with no watermark and no Content Credentials. The marked file comes back as WAV:

mark.py
import osfrom markproof import Markproof client = Markproof(api_key=os.environ["MARKPROOF_API_KEY"])marked = client.mark("voice.mp3")open("voice.marked.wav", "wb").write(marked.file)print(marked.verify_url)
Output
https://markproof.co/v/39112NPV

3. Put it through what happens to audio

Four edits with ffmpeg, then each copy goes back through the API:

Terminal
# Low-bitrate MP3ffmpeg -i voice.marked.wav -ac 1 -c:a libmp3lame -b:a 32k mp3-32k.mp3# The voice-note codec WhatsApp uses: Opus, 16 kbps, 16 kHz. Back to WAV for the checker.ffmpeg -i voice.marked.wav -ac 1 -ar 16000 -c:a libopus -b:a 16k -application voip note.oggffmpeg -i note.ogg note.wav# A phone line: 8 kHz, 300-3400 Hzffmpeg -i voice.marked.wav -ac 1 -af "highpass=f=300,lowpass=f=3400" -ar 8000 phone.wav# A 4-second clip from the middleffmpeg -i voice.marked.wav -ss 2 -t 4 clip.wav
verify.py
for name in ["mp3-32k.mp3", "note.wav", "phone.wav", "clip.wav"]:    result = client.verify(name)    print(name, result.watermark.detected, round(result.watermark.confidence, 2))

The over-the-air test was done by hand: the marked file was played from a laptop speaker and recorded as a WhatsApp voice note on a phone about 30 cm away.

CopyWhat happened to itWatermark
Marked originalNothingFound (score 1.00)
MP3 at 32 kbpsLow-bitrate compressionFound (score 1.00)
Voice-note codecOpus at 16 kbps, 16 kHz, as WhatsApp usesFound (score 0.99)
Phone line8 kHz, 300–3400 HzFound (score 1.00)
4-second clipCut from the middleFound (score 0.99)
Background noisePink noise mixed inFound (score 0.62)
Played aloud, re-recordedSpeaker → room → phone mic → WhatsApp voice noteLost (score 0.00)

As controls, the unmarked original scored 0.00 both through the voice-note codec and as a real voice note, so the checker didn't report marks that weren't there.

What this shows, and what it doesn't

The watermark survives what software does to audio: compression, voice codecs, phone-line filtering and cutting. It doesn't survive the analogue route of playing it through a speaker and recording it with a microphone, where the room and the hardware reshape the sound. Heavy background noise is the weakest digital case. That's why the watermark is one of three layers. Content Credentials carry the signed detail in an untouched file, and Markproof keeps a record of every file it marks, which your audit reports can export.

Marking images instead? See Tutorial 1: mark an AI image, then try to strip the label. This is technical guidance, not legal advice.

Check your own output in seconds.

Drop a file into the free checker to see whether it carries a watermark and Content Credentials. Then mark your files with one API call: 250 free calls a month, no card required.