[ COMM_CHANNEL_OPEN ]

TRANSMISSIONS

Engineering, tutorials, and product updates from the core team.

6 ENTRIES
[ENGINEERING]2026-05-12

WHY MULAW 8KHZ SILENTLY DESTROYS YOUR AI VOICE AGENT

Twilio sends G.711 µ-law at 8kHz. Deepgram expects PCM at 16kHz. Misconfigure the transcode and the call sounds fine on your end — the caller hears static. No error. No log.

WARNencoding mismatch: mulaw→pcm
ERRaudio garbled — sample_rate=8000
FIXTranscode() applied at boundary
[VOICE]
READ
[TUTORIAL]2026-05-05

PHONE + WEB VOICE UNDER ONE SESSION MODEL

Most teams run two separate pipelines — one for Twilio phone calls, one for browser WebRTC. HZRelay gives both the same session interface: same events, same SDK, one config line to switch.

INFOinbound: twilio → switching
INFOinbound: webrtc → same session
OKunified model active
[VOICE · WEBRTC]
READ
[TUTORIAL]2026-04-28

LLM TOKEN FAN-OUT: STREAM TO MULTIPLE CLIENTS AT ONCE

OpenAI streams tokens. Your web UI needs them. So does your mobile app. So does your analytics pipeline. HZRelay fans one source stream to N subscribers — zero copy, backpressure handled.

LLMstream open: gpt-4o-mini
OUT→ web_client, mobile, analytics
OK3 subscribers, 0 drops
[TOKENS]
READ
[ENGINEERING]2026-04-20

WEBHOOK CHAOS: NORMALIZE STRIPE + TWILIO + GITHUB IN ONE PLACE

Stripe sends `payment_intent.succeeded`. Twilio sends `CallStatus=completed`. GitHub sends `push`. Three shapes, three retry policies, three failure modes. One HZRelay session normalizes all of them.

EVTstripe: payment_intent.succeeded
NORM→ standard EventFrame
OUT→ CRM + Slack + AI agent
[EVENTS]
READ
[ENGINEERING]2026-04-12

762MS MOUTH-TO-EAR: BREAKING DOWN VOICE AI LATENCY

STT: 298ms. LLM first token: 370ms. TTS first audio: 75ms. Transport: 19ms. Total: 762ms — and that's good. Here's how to measure every stage and which provider swaps actually move the needle.

STT+298ms deepgram nova-2
LLM+370ms gpt-4o-mini first_token
TTS+75ms elevenlabs flash_v2
[VOICE · OBSERVABILITY]
READ
[ SUBSCRIBE_CHANNEL ]

Engineering updates.

New adapters, latency guides, and SDK releases — direct to your inbox. No spam.