Adding Real-Time Voice Capabilities to AI Agents with Cloudflare Agents SDK
- Agents SDK
- Workers AI
- Deepgram Flux
- Deepgram Nova 3
- Deepgram Aura
- Twilio
AI Summary
Cloudflare has introduced an experimental voice pipeline for its Agents SDK, allowing developers to add real-time voice interactions directly into existing Durable Object-backed agent architectures without managing a separate voice framework. The package supports full conversation agents and voice-input use cases over WebSockets, leveraging built-in Workers AI and providers like Deepgram for speech-to-text and text-to-speech. By sharing the same state, conversation history, and toolsets between text and voice, developers can build truly multimodal applications with reduced latency and simpler infrastructure.
Key Takeaways
- Introduces experimental @cloudflare/voice package for the Agents SDK.
- Handles audio transport via WebSockets, streaming 16 kHz mono PCM.
- Supports integration with external services like Twilio for phone calls.
Why it matters
Integrating voice into AI agents typically requires separate, complex microservices and fragmented infrastructure. By extending Durable Objects and WebSockets to handle real-time audio streams, Cloudflare simplifies building multimodal agents with unified state and lower latency.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.