Audio: pluggable PETTS synthesis and provenance - #2
Closed
codingshreyash wants to merge 1 commit into
Closed
Conversation
codingshreyash
force-pushed
the
pr/audio-resources
branch
from
July 23, 2026 21:07
d088372 to
07dc32e
Compare
This was referenced Jul 23, 2026
Add provider-neutral synthesis, bounded audio transforms, and provenance helpers while keeping modality conversion in the probe layer. AI-Review: ChatGPT
codingshreyash
force-pushed
the
pr/audio-resources
branch
from
July 23, 2026 21:57
07dc32e to
9d37ba3
Compare
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
PETTS needs a stable synthesis boundary before additional audio probes can build on it. This PR separates text-to-speech synthesis from probe logic, keeps modality conversion in the attack layer, and records enough provenance to reproduce generated audio.
What changed
SynthesisProvidercontract and request/result typessuno/bark-smallprobes.audio.PETTS; generators remain responsible only for target communicationNo mandatory project dependency is added. Audio-specific imports are deferred until PETTS is invoked.
Configuration
PETTS uses garak's standard plugin configuration:
tts_model_nametts_model_revisiontts_voicetts_sample_ratetts_audio_formattts_audio_subtypetts_audio_stereoThe public default checkpoint is distributed under the MIT licence. Its local download and inference requirements can be substantial; users remain responsible for the terms of any alternative checkpoint or remote provider they configure.
Relationship to upstream and duplicate check
The duplicate-work search found NVIDIA#1770. This PR intentionally builds on that work at commit
cf8648ea; it does not duplicate itsIntentProbe, initial PETTS implementation, or generator-format support. No other open upstream PR matched the synthesis-provider and audio-resource scope.This PR intentionally does not add a target adapter, automatic speech recognition, or security-specific audio probes.
Verification
Run locally with Python 3.12:
Result:
706 passed.Result: clean.
Tests cover provider selection, lazy loading, provenance, file hashing, WAV transforms, requested-versus-effective settings, unsupported formats, and malformed or oversized input. No live hosted-service result is claimed.
Reviewer focus
The main review questions are whether the provider contract is narrow enough for local and remote synthesis implementations, whether PETTS owns the modality shift at the correct layer, and whether the provenance is sufficient without coupling the probe to a specific checkpoint.
AI assistance
ChatGPT was used to review this change.