Files
rocm-chatterbox-whisper/perth_stub.py
scott de6156a336
All checks were successful
Build ROCm Image / build (push) Successful in 17m32s
Replace resemble-perth with a no-op stub
resemble-perth uses uv-build which is incompatible with the old system
pip in the ROCm base image. Since watermarking is unnecessary for
self-hosted private use, stub out the perth module so chatterbox's
import is satisfied without any build complexity.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 11:16:08 -04:00

12 lines
400 B
Python

# Stub for resemble-perth audio watermarking.
# Watermarking is unnecessary for self-hosted/private deployments.
# This stub satisfies chatterbox's import without the build complexity.
class PerthImplicitWatermarker:
def apply_watermark(self, audio, sample_rate):
return audio
class PerthImperceptibleWatermarker:
def apply_watermark(self, audio, sample_rate):
return audio