CONNECT WITH US
Web3 & Blockchain

Web3 & Blockchain

AssemblyAI details Python voice agent build with tool calling

Blockchain.News logo

Published on

Add as a preferred source on Google
AssemblyAI details Python voice agent build with tool calling

AssemblyAI published a Python tutorial for a real-time voice agent that combines streaming speech recognition, LLM Gateway and text-to-speech.

AssemblyAI has published a tutorial showing how to build a real-time voice agent in Python that listens, reasons, calls functions and speaks back using three files and one API key. The guide centers on tool calling, and it uses Universal-3.6 Pro Realtime for streaming speech-to-text, an LLM through LLM Gateway, and the AssemblyAI Text-to-Speech API for spoken replies, according to the company’s Oct. 29, 2026 post.

The tutorial says the agent can listen through a microphone, decide when to invoke Python functions, speak the result and stop speaking when interrupted. AssemblyAI frames that as a production-style loop in which the script owns the orchestration: microphone audio goes to Universal-3.6 Pro Realtime, turn events trigger an LLM request with tools, tool results are fed back into the model, and the final response is streamed to text-to-speech.

AssemblyAI argues that the listening layer is a key differentiator for voice agents. In the company’s English voice-agent benchmark, which it describes as 12,460 scripted caller scenarios, Universal-3.6 Pro Realtime posted a 5.19% word error rate versus 7.78% for ElevenLabs Scribe v2, 8.64% for Deepgram Nova-3 and 13.50% for Deepgram Flux EN. For structured values, AssemblyAI says the model recorded a 14.4% entity error rate on the same benchmark, compared with 30.1% for Deepgram Flux EN. These are vendor-reported results from AssemblyAI, not independently verified measurements in this material.

The post also highlights agent_context, a parameter that lets the speech-to-text model ingest the agent’s own last line.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.