Skip to main content
AudioSeal supports embedding secret messages within watermarks, allowing you to encode up to 65,536 unique identifiers or metadata values.

What are Secret Messages?

Secret messages are optional 16-bit binary values embedded in the watermark alongside the detection signal. They enable:
  • Model versioning: Identify which model version generated the audio
  • Unique identifiers: Track individual audio files with unique IDs (0 to 65,535)
  • Metadata encoding: Embed timestamps, user IDs, or other information
  • Batch tracking: Identify batches of generated audio
The message is optional and has no influence on watermark detection. It’s only used to carry additional information.

Creating Messages

Messages are 16-bit binary tensors with shape [batch, 16]:

Random Messages

Custom Messages from Integers

Convert an integer (0 to 65,535) to a 16-bit binary message:

Decoding Messages to Integers

Embedding Messages

Embed a message when watermarking audio:
If no message is provided, AudioSeal will generate a random 16-bit message automatically.

Decoding Messages

Retrieve the embedded message from watermarked audio:

High-Level Detection

Low-Level Detection

If the detector does not find a watermark, the decoded message will be random. Always check the detection probability before trusting the message.

Use Cases

1

Model Version Tracking

Embed model version IDs to track which model generated the audio:
2

Unique File IDs

Assign a unique ID to each generated audio file:
3

Timestamp Encoding

Embed a compact timestamp (limited to 16 bits):
4

User or Session IDs

Associate audio with specific users or sessions:

Complete Example

Message Behavior

Without Watermark

When no watermark is detected (low detection probability), the message will be random. Always validate the detection probability before using the decoded message.

Handling Detection Failures

Streaming with Messages

Use the same message across all chunks in streaming mode:

Next Steps

Training Custom Models

Train your own watermarking models with custom configurations

Attack Robustness

Learn how secret messages survive audio attacks