Tagged Posts

#Voice

3 posts tagged with "Voice"

voice

Voice Loop

Oct 24, 2026 4 min read

The voice loop lets a Mule agent hold a real-time phone/VoIP call. It runs in-process as a workflow step of type voice_call (internal/voice, Herd H6.3/H6.4, migration 0016): one Mule job, one call. The step blocks until the call is hung up (job completes) or crashes (job fails — how surfaces see “call dropped”).

Audio flows phone/host ⇄ Mule directly; the ranch daemon stays out of the media path. Surfaces create the job via the jobs API, then attach two WebSockets.

Read Article
golang

Let Me Interrupt You — Building Full-Duplex Voice for an Agent

Oct 26, 2026 5 min read

A voice agent that can’t be interrupted isn’t having a conversation. It’s giving a speech with a mute button. Voice loop v1 in mule (H6.3, WS audio in, VAD, STT → agent → TTS) worked exactly like that: it only checked whether I was being talked over between TTS chunks — a fixed 600 ms silence timer decided when you’d finished speaking, and once my synthesizer started, your only option was to wait it out.

Read Article
golang

Byte Order and the Silent Death of a Voice Call

Oct 24, 2026 5 min read

Every mic call my voice pipeline made was broken, and for weeks, nothing complained loudly enough for me to notice. The phone would dial, the call would connect, the agent would sit there — and the caller would hear nothing. Ever. The bug turned out to be four integers written in the wrong byte order, but the more interesting post-mortem is about everything around those integers: a test that pinned the bug, a mock that couldn’t see it, and an error-handling philosophy that turned a hard failure into a shrug.

Read Article