Skip to main content

Earshot

See every call your voice agent makes.

Earshot is a self-hosted server for voice-agent observability. Your agent sends its OpenTelemetry traces and its call recordings to Earshot. Earshot groups them into Calls and keeps each Call's timing, transcript and audio in one place, on your own machines. It runs on a laptop with SQLite and local disk, or on a team server with Postgres and S3.

Status: pre-v1 alpha. 0.5.0 adds live-turn reads and host-profile transcripts and usage, plus scoped hosted reads for recordings. Hosted OTLP and Recording writes, Call and audio reads, and purge use the earshot:calls:* scopes; raw span details, prices and the standalone transcript-upload API stay closed. The call view shows audio with a waveform, the transcript on the audio, per-turn latency beside the audible gap at the agent, and cost for Pipecat, LiveKit and host-profile calls. Compatibility is limited to the versions documented for each release; see the alpha compatibility policy.

Quick start

This takes about a minute with a Pipecat 1.6 bot you already run.

1. Install and start Earshot.

pip install 'earshot-observability[server,signals]'
earshot serve

Earshot listens on http://127.0.0.1:4319 and keeps everything in ./.earshot: a SQLite catalog and a local blob directory. On loopback it needs no API key. The signals extra analyses each recording for the call view's audible gap and waveform.

2. Point Pipecat's HTTP OTLP exporter at it. Use the HTTP exporter, not the gRPC one.

pip install 'pipecat-ai[tracing]>=1.6.0,<1.7.0' opentelemetry-exporter-otlp-proto-http
export OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4319
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from pipecat.pipeline.worker import PipelineWorker
from pipecat.utils.tracing.setup import setup_tracing

setup_tracing(service_name="my-voice-agent", exporter=OTLPSpanExporter())

worker = PipelineWorker(
    pipeline,  # your pipeline
    enable_tracing=True,
    conversation_id="call-123",
    additional_span_attributes={"earshot.session.id": "call-123"},
)

Set conversation_id and earshot.session.id to the same value, your own ID for the call. That value is the Session Key: Earshot groups the call's spans by it, and the Recordings API takes it. Pipecat 1.6 puts conversation.id on every turn span, and those arrive first. It puts earshot.session.id only on the conversation span, which it sends last, and a trace keeps the first key Earshot sees in it. So if the two values differ, the Call is keyed by conversation_id, and a Recording created with the other value becomes a second Call because a trace binds to the first Session Key it sees; see session keys.

3. Upload the recordings. Create each Recording when the call starts, at its first audio frame, and upload its bytes after the call ends: one mono file per speaker, or one stereo file with channel_speakers: ["user", "agent"]. earshot.client does both steps for you; see the quick start.

# When the call starts:
curl -X POST http://127.0.0.1:4319/v1/recordings \
  -H 'Content-Type: application/json' \
  -d '{"recording_id": "call-123-user", "session_key": "call-123", "speaker": "user",
       "content_type": "audio/wav", "started_at_unix_nano": "1792372161387965000"}'
# After the call ends:
curl -X PUT http://127.0.0.1:4319/v1/recordings/call-123-user/content \
  -H 'Content-Type: audio/wav' --data-binary @user.wav

A pending Recording holds its Call for up to 10 minutes after the latest of its creation, the Call's latest evidence, and its end signal. If no upload is streaming by then, Earshot marks it failed. A PUT already in flight has a separate 10-minute deadline measured from upload start, so it can keep the Call open beyond the pending deadline. A Recording created only after the Call has closed appears in a later late_data Revision, about 30 seconds after the upload.

4. See the call.

curl http://127.0.0.1:4319/v1/calls

A Call is listed as soon as its first Recording is created or Earshot receives a span that resolves a session key. Pipecat sends its conversation span as an end signal. Earshot creates a final Revision after a 10-second grace period and any active recording uploads finish or reach their deadline. Without an end signal, five quiet minutes make a provisional Revision due, but a pending Recording can hold it until the deadlines above. GET /v1/calls/<call_id> shows the Call and its Revisions. Open http://127.0.0.1:4319/calls to see the calls list and each call's player, transcript, turn latency, audible gap, and cost. See the call view.

The OTLP quick start covers API keys, containers, session keys, close timing, recordings and error handling. examples/pipecat_otlp is a complete, real Pipecat call.

What Earshot receives today

Source Status in 0.5.0
Pipecat 1.6 over OTLP/HTTP Supported for >=1.6.0,<1.7.0: Calls with timing, transcript, recordings and the call view. Tested against a real Pipecat 1.6.0 call.
Any OTLP/HTTP producer Spans are stored and grouped into Calls by session key. Revisions include Pipecat, LiveKit and earshot.host profile spans; other instrumentation is declared as omitted.
LiveKit Agents over OTLP/HTTP Supported for >=1.6.5,<1.9: Calls with timing, the played-text transcript, LiveKit's stereo recording and the call view. Tested against a real headless LiveKit 1.8.10 call (no LiveKit server or room).
Earshot Python SDK Supported: Pipecat 1.6 and LiveKit 1.6.5 to 1.8.x adapters, Deepgram, Cartesia, Sarvam and OpenAI Realtime event mappers, portable Incident bundles, and earshot.client for recordings and calls.
Node (earshot-observability) A span processor that keys a call's spans, and a recordings and calls client.
ElevenLabs, Ringg Signed webhook connectors with synthetic conformance coverage.
Vapi, Retell Unsupported in 0.5.0; only synthetic fixtures exist, and real signed deliveries are unverified.
Browser capture workspace (/v1/capture) Not published on npm; validated on one browser only. The viewer does not render browser-captured sessions yet.

gRPC is not in 0.5.0. Each closed Call's Revision is an ordinary Incident, so the bundled viewer and the analysis APIs can open it.

Capture presets

Each Project has a Capture Preset. The server applies it to spans and recordings before it stores them.

Preset Stores
full Timing, transcripts, model and tool payloads, the session key, and recordings. The default for every Project in a new install.
metadata_only Timing and structure only. Known content, identity and session-key attributes are removed before storage; producer-owned opaque IDs must be pseudonymous. Recordings are refused. Upgraded 0.1.x Projects start here.
redacted Not available in 0.5.0.
earshot project set-capture --project default --preset metadata_only
earshot project show default

Privacy lists exactly what each preset keeps, and how purge, retention and erasure work.

Storage

Laptop (default) Team server
Catalog SQLite in --data-dir Postgres: EARSHOT_DATABASE_URL=postgresql://…, the [postgres] extra and a correlation key
Recordings Local disk, <data-dir>/blobs S3 or an S3-compatible store: EARSHOT_BLOB_URL=s3://… and the [s3] extra
pip install 'earshot-observability[server,postgres,s3]'

earshot serve migrates the schema on start. earshot db current and earshot db upgrade report and apply migrations. See storage and blobs and the production notes: one server per database, one worker, and a Collector in front.

Run it in a container

docker compose up --build
# then open http://127.0.0.1:4319

The image includes the server, postgres, s3 and signals extras. Compose publishes the port on 127.0.0.1 only, keeps data in the earshot-data volume, and runs with EARSHOT_TRUST_LOCAL_NETWORK=true, so the API is unauthenticated behind that loopback mapping. A bot in another container needs an API key; see the OTLP quick start. To expose Earshot beyond localhost, drop that line, set EARSHOT_TOKEN or issue API keys, set EARSHOT_BEHIND_TLS_PROXY=true, and put your own TLS proxy in front.

Also in the box

  • A portable evidence format. The v1alpha1 Incident bundle: deterministic protobuf and strict JSON, a semantic profile, privacy validation and an omission ledger.
  • A Python SDK that records Incidents in-process (earshot.init()), with bounded, non-blocking delivery and crash recovery. See the SDK.
  • Deterministic analysis of each Incident: generated, sent, received and rendered audio timing, cross-clock uncertainty and evidence-linked diagnoses. Earshot never claims a person heard the audio.
  • A viewer served by earshot serve; host integrations use the unpublished @earshot/viewer-ui workspace source.
  • Hosted mode with short-lived, project-scoped JWTs (EARSHOT_AUTH_MODE=hosted_jwt). OTLP spans and Recording uploads use earshot:calls:write; Call and project-scoped recording reads use earshot:calls:read; purge uses earshot:calls:delete. Price routes, the standalone transcript-upload API, raw span attributes and receiver counters stay closed.

The Python distribution is earshot-observability; the import package and the CLI are earshot. The PyPI project named earshot is an unrelated VAD package. The base install (pip install earshot-observability) is the SDK only; every command that opens the store, earshot serve included, needs the server extra.

Develop

python3.11 -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
pytest
pnpm install && pnpm --filter @earshot/viewer bundle   # build the UI into the package
earshot serve --data-dir .earshot

See development and CONTRIBUTING.md.

Documentation

Non-goals

Earshot is not a voice runtime, a carrier, or a hosted multi-tenant product.

License

Apache-2.0. See LICENSE.

Metadata

Release files for earshot-observability 0.5.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 earshot-observability 0.5.0
File Size Uploaded Provenance Actions
earshot_observability-0.5.0.tar.gz 2.9 MB With provenance Details for earshot_observability-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for earshot-observability 0.5.0
File Interpreter ABI Platform Actions
earshot_observability-0.5.0-py3-none-any.whl Python 3 none any Details for earshot_observability-0.5.0-py3-none-any.whl

Total release size: 5.8 MB

Release files / earshot_observability-0.5.0.tar.gz

Download URL earshot_observability-0.5.0.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
7e50dffda86ffaf4ccea42f3356915cfd2a10315f2321e6203c8af119832a1d9
BLAKE2b-256 checksum
How to use checksums
e845fc82eb659ec2792cd677f7e6af7020e5e3c254e0a39f20286b1025ea21e5
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 7, 2026.

Transparency log

Release files / earshot_observability-0.5.0-py3-none-any.whl

Download URL earshot_observability-0.5.0-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f4c78b023c44ff97cd99546f8dfbc2d4d2ae040ea498aa79565915747174dd72
BLAKE2b-256 checksum
How to use checksums
7b0bef07195b21e5f32b5b8e71b07fe3b9cacb9039f9dd4e7e0dc73e783b4891
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 7, 2026.

Transparency log

Security for earshot-observability 0.5.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 earshot_observability-0.5.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 7, 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.

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