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.3.0 adds the call view: audio with a waveform, the transcript on the audio, per-turn latency beside the audible gap at the agent, and cost, for Pipecat and LiveKit 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.5 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.5,<1.6' 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.5 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. This is a known limitation of 0.3.0; 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 created Recording holds its Call open until it is uploaded, for up to 10 minutes after
the call ends (EARSHOT_RECORDING_UPLOAD_HOLD_SECONDS), so the Call's first Revision
includes the audio. A Recording created only after the Call has closed misses that
Revision: its audio lands 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 its first span arrives.
Pipecat sends its conversation span when the call ends. About 10 seconds after Earshot
has that span and every Recording's bytes, the Call closes and stores a Revision with its
transcript and recordings. GET /v1/calls/<call_id> shows them. Open
http://127.0.0.1:4319/calls for the calls list and each call's view: the player, the
transcript (click a line to seek), each turn's reported latency and audible gap, and the
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.3.0 |
|---|---|
| Pipecat 1.5 and 1.6 over OTLP/HTTP | Supported: Calls with timing, transcript, recordings and the call view. Tested against real Pipecat 1.5.0 and 1.6.0 calls. |
| Any OTLP/HTTP producer | Spans are stored and grouped into Calls by session key. A Call's Revision includes only Pipecat and LiveKit spans in 0.3.0; spans from other instrumentation stay stored and are declared as omitted. |
| LiveKit Agents over OTLP/HTTP | Supported for 1.6 to 1.8: Calls with timing, the played-text transcript, LiveKit's stereo recording and the call view. Tested against a real headless LiveKit 1.8.8 call (no LiveKit server or room). |
| Earshot Python SDK | Supported: Pipecat 1.6 and LiveKit 1.6 to 1.8 adapters, and Deepgram, Cartesia, Sarvam and OpenAI Realtime event mappers, recorded as portable Incident bundles, and earshot.client for recordings and calls. |
Node (@earshot/node) |
A span processor that keys a call's spans, and a recordings and calls client. |
| ElevenLabs, Vapi, Retell, Ringg | Signed webhook Connectors for finalized deliveries. Synthetic conformance only. |
Browser (@earshot/browser, /v1/capture) |
Validated on one browser only. The viewer does not render browser-captured sessions yet. |
gRPC is not in 0.3.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. Content, identity and the session-key attributes are removed before storage, and recordings are refused. Upgraded 0.1.x Projects start here. |
redacted |
Not available in 0.3.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
v1alpha1Incident 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, and@earshot/viewer-uifor hosts that embed it. - Hosted mode with short-lived, project-scoped JWTs (
EARSHOT_AUTH_MODE=hosted_jwt). The call, recording, price and OTLP routes are not available in hosted mode in 0.3.0.
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
- OTLP quick start: exporter setup, session keys, close timing, recordings, errors.
- Privacy: capture presets, purge, retention and erasure.
- Storage and blobs: SQLite or Postgres, migrations, upgrading from 0.1.x, local disk or S3.
- Production notes: topology, Collector, readiness, backups.
- Server configuration: every variable.
- The call view: the call view, cost, prices, filters and search.
- 0.3.0 release notes: what's new, and what the tests prove.
- All documentation and the changelog.
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.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| earshot_observability-0.3.0.tar.gz | 2.8 MB | With provenance | Details for earshot_observability-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| earshot_observability-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for earshot_observability-0.3.0-py3-none-any.whl |
Total release size: 5.7 MB
Release files / earshot_observability-0.3.0.tar.gz
| Download URL | earshot_observability-0.3.0.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7eab5abd39a6574c5f165a9da1971fc484d6631a595d7894518b399e02712ec2
|
|
BLAKE2b-256 checksum How to use checksums |
73d75bf99ad804ac52ec50c42b936f314084ca670cd6c066e5e9365193a74ffe
|
| 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 Oct 24, 2026.
Transparency logRelease files / earshot_observability-0.3.0-py3-none-any.whl
| Download URL | earshot_observability-0.3.0-py3-none-any.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0bb0c4c82b3a42806daea5213c31ae62738d70b6b52e84314d0893b9ed12a6d2
|
|
BLAKE2b-256 checksum How to use checksums |
0435cb096a7f40afe90f4bf776acdf4ee0fe52fdb7842b0da46c1f15c8ac665f
|
| 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 Oct 24, 2026.
Transparency logSecurity for earshot-observability 0.3.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.
Attestation for earshot_observability-0.3.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 Oct 24, 2026.
Transparency logA 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.