How to use facebook/audioseal with AudioSeal:
# Watermark Generator from audioseal import AudioSeal model = AudioSeal.load_generator("facebook/audioseal") # pass a tensor (tensor_wav) of shape (batch, channels, samples) and a sample rate wav, sr = tensor_wav, 16000 watermark = model.get_watermark(wav, sr) watermarked_audio = wav + watermark
# Watermark Detector from audioseal import AudioSeal detector = AudioSeal.load_detector("facebook/audioseal") result, message = detector.detect_watermark(watermarked_audio, sr)
The community tab is the place to discuss and collaborate with the HF community!