Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.2.1 instead.
Reason given by maintainers: superseded by 1.1.2, which includes security fixes

laidline-pipecat

A Pipecat FrameProcessor that sits right after the TTS service. It marks the TTS audio frames (keyed from 8 kHz, unkeyed from 16 kHz) with streaming AudioSeal and writes one Laidline evidence entry per utterance.

pip install laidline-pipecat   # pulls laidline[audio] and pipecat-ai>=1.12,<2
from laidline import MarkContext, Marker
from laidline_pipecat import LaidlineTTSProcessor

marker = Marker.from_config("laidline.yaml")  # in-process: keys, models and evidence stay on your host
pipeline = Pipeline(
    [
        transport.input(),
        stt,
        context_aggregator.user(),
        llm,
        tts,
        LaidlineTTSProcessor(marker, ctx=MarkContext(route="pipecat:support-bot", tenant="acme")),
        transport.output(),
        context_aggregator.assistant(),
    ]
)

What it does

  • Each downstream TTSAudioRawFrame is replaced by a copy carrying the marked PCM. The copy keeps the same length, rate, channels, pts, transport_destination, context_id and metadata. Every other frame passes through unchanged.
  • TTSStartedFrame opens an utterance. TTSStoppedFrame, InterruptionFrame, EndFrame, CancelFrame and processor cleanup close it. Closing writes one marked evidence entry with modality: audio, watermark.streaming: true, the payload and issuer id, the duration, your ctx, and the TTS context_id under extra.context_id. An utterance that changes sample rate part-way gets one entry per format.
  • It needs an in-process Marker with watermark.audio.enabled: true. A MarkClient raises TypeError, because the streaming path has no HTTP form. A Marker with audio watermarking disabled raises ValueError.
  • A marking failure raises out of process_frame. Pipecat reports it as an error and does not push the unmarked frame.
  • Unkeyed, the embedder is AudioSeal's streaming card (watermark.audio.stream_kind: block, the only value). A keyed deployment (watermark.payload_keys) marks through the keyed stream marker instead (see Survival).

What it does not do

  • Unkeyed, audio below 16 kHz (an 8 kHz phone bot) is not marked: it passes through unchanged and the entry says watermark: null, watermark_skipped:rate_below_16k. The unkeyed streaming mark does not survive below 16 kHz. A keyed deployment (watermark.payload_keys, what laidline init writes) marks from 8 kHz: measured 2026-11-07 at 8 kHz, 100 of 100 through simulated G.711 mu-law and A-law, G.726 and 5 percent packet loss (n = 100 per cell; ffmpeg codecs, not a carrier path). Rates between 8 and 16 kHz are admitted but unmeasured.
  • A stream carries no C2PA manifest (c2pa: null, warning manifest_skipped:streaming). The watermark and the evidence entry are the provenance for live audio.
  • For a recording you store, sign the file itself with marker.mark_audio(..., fmt="wav" | "flac" | "mp3" | "m4a"). This embeds a manifest and adds the batch mark. Laidline's /v1/audio/speech proxy in streaming mode stores a signed twin of a response only when watermark.audio.store_signed_twin is enabled and only for a stream that completed.

Survival

Measured 2026-09-27 on LibriSpeech test-clean, 500 speech clips. The threshold for this table is 0.39, which flagged 0.75 % of 530 unmarked clips; the shipped default is 0.5, which flagged 0.38 % and detects less after heavy degradation. Figures are the share of clips on which the streaming-mode mark (the one this plugin embeds) is still detected:

Transform Streaming mode
Opus 24 kbps 100 %
Opus 48 kbps 100 %
MP3 64 kbps 100 %
AAC 64 kbps 100 %
G.711 mu-law 0 %
8 kHz resampling 0 %
EnCodec 6 kbps 100 % detected, 0 % exact issuer
Mimi 0 %

The streaming mark survives an offline Opus transcode at 24 and 48 kbps (100 percent on 500 LibriSpeech clips); no real WebRTC session or jitter was tested, keyed or unkeyed, and no real carrier leg with the unkeyed stream; the packet-loss figure above is a simulation (5 percent loss, repeat-last fill, keyed, 100 of 100 at 8 kHz). The unkeyed streaming mark does not survive a simulated phone leg (G.711 codec simulation). The unkeyed streaming mark was not run over a real call. The keyed stream at 8 kHz read 19 of 19 real SignalWire calls on 2026-11-08 (a pilot; Wilson 95 % lower bound 83.2 %; clips marked offline by Marker.audio_stream, not through this plugin; read on the recording aligned to the clip, the untrimmed recording 2 of 19; carrier routing unconfirmed, possibly on-net). Beside it, not pooled: over Amazon Connect and SignalWire, the keyed stream at 8 kHz read 576 of 577 real calls on 2026-11-08 (Wilson 95 % lower bound 99.0 %; clips marked the same way, played by Amazon Connect as an 8 kHz mu-law file and recorded by SignalWire at the callee; read on the recording aligned to the clip; 1 call failed and is not counted, its inbound leg never matched to the contact; carrier routing unconfirmed). For an unkeyed phone deployment, provenance comes from the evidence entry and from C2PA on stored recordings, not from the unkeyed watermark. The keyed stream (what laidline init writes, watermark.payload_keys) read 100 of 100 through simulated G.711 and through Opus at 24 kbit/s (ffmpeg codecs on 10 s of speech, 28 Oct 2026, not a carrier path; see https://laidline.com/docs/integrations/pipecat). For comparison, the batch (non-streaming) mark that mark_audio embeds survives simulated G.711 and 8 kHz at 100 %, and a real call with the batch mark: 96 % at the shipped 0.5 and 99 % at 0.39 (100 Twilio number-to-number calls recorded at the callee, G.711 8 kHz, carrier routing unconfirmed and possibly on-net, measured 2026-09-27); on SignalWire, the bench's current provider, 21 of 21 calls read the exact payload on the recording aligned to the clip (2026-10-21 and 22, carrier routing unconfirmed, possibly on-net; the untrimmed recording gave no exact read).

The unkeyed streaming mark's mean embed SNR is 17.4 dB (5th percentile 8.7 dB), which is audible on some voices. Listen to your own voices before you ship.

The full numbers and method are in the benchmarks page ("Audio robustness"), and what was tested, and how, in https://laidline.com/docs/integrations/pipecat. Streaming sessions, detection and the operating threshold are in https://laidline.com/docs/integrations/audio.

Metadata

Release files for laidline-pipecat 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for laidline-pipecat 1.1.0
File Size Uploaded Provenance Actions
laidline_pipecat-1.1.0.tar.gz 13.2 kB With provenance Details for laidline_pipecat-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for laidline-pipecat 1.1.0
File Interpreter ABI Platform Actions
laidline_pipecat-1.1.0-py3-none-any.whl Python 3 none any Details for laidline_pipecat-1.1.0-py3-none-any.whl

Total release size: 27.7 kB

Release files / laidline_pipecat-1.1.0.tar.gz

Download URL laidline_pipecat-1.1.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
db3a548bb0c64bf4874b68ee467703b51df4b2c2fc1ed7f7683e2eb9fe10799d
BLAKE2b-256 checksum
How to use checksums
a8c6e427f94de237c6867301114219a1da005cdc8d86d1a328bc94d05259ca76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / laidline_pipecat-1.1.0-py3-none-any.whl

Download URL laidline_pipecat-1.1.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9df2908f37c59a5cb6110628759b550ef02fb642831ab16862d5a62472b8e511
BLAKE2b-256 checksum
How to use checksums
8f8d1acd44156587ab6fdf6d093b56a7adfea8c8e1cb5f11efb6ff8b52fc7a79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for laidline-pipecat 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for laidline_pipecat-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page