AWS releases open-source test harness for evaluating Amazon Nova Sonic voice agents at scale
Amazon has released an open-source testing framework for Nova Sonic voice agents that automates multi-turn conversation evaluation without requiring human testers. The harness uses LLM-as-judge techniques to assess voice agents across six metrics including goal achievement, response accuracy, and tool usage, addressing a critical QA bottleneck in voice AI development.
AWS Releases Open-Source Test Harness for Evaluating Amazon Nova Sonic Voice Agents at Scale
Amazon has released an open-source testing framework that automates quality assurance for Nova Sonic voice agents, eliminating the need for manual conversation testing. The Nova Sonic Test Harness addresses a critical bottleneck in voice AI development: the inability to systematically test bidirectional audio streaming applications.
Testing Voice Agents Without Human Testers
The framework runs complete multi-turn conversations with Amazon Nova Sonic automatically using an LLM-powered user simulator. According to AWS, teams previously needed to manually test voice agents by having someone physically talk to the system—a process that doesn't scale when evaluating 50 conversation scenarios across 3 user personas, requiring 150 manual tests taking several minutes each.
The test harness uses LLM-as-judge evaluation techniques to assess conversations across six built-in metrics organized into three tiers:
Critical tier:
- Goal Achievement (Did the conversation accomplish the user's objective?)
- Response Accuracy (Were facts, numbers, and claims correct?)
Important tier:
- Tool Usage (Were the right tools called with correct parameters?)
- Conversation Flow (Natural turn-taking, appropriate responses)
Additional metrics include audio-text consistency and general quality assessments.
Technical Architecture
The harness handles four challenges unique to speech-to-speech model testing:
- Bidirectional streaming: Manages persistent, full-duplex connections where audio and text flow simultaneously, unlike standard HTTP request-response patterns
- Non-deterministic responses: Evaluates against rubrics rather than exact string matching, since the same question produces different wording each time
- Session management: Automatically handles Nova Sonic's 8-minute connection timeout by creating new sessions and replaying conversation history
- Audio hallucination detection: Identifies cases where audio output diverges from text output (e.g., audio says "3:30 PM" while text reads "3:00 PM")
Test scenarios are defined in JSON configuration files that specify system prompts, voice IDs, available tools, user personas, and evaluation criteria. The framework supports both text input (faster) and synthesized audio via Amazon Polly for full speech recognition pipeline testing.
Evaluation Pipeline
Each test follows a four-phase pipeline:
- Configuration: Define scenario with JSON including Nova Sonic's role, user persona, tools, and success criteria
- Conversation execution: User simulator (powered by models like Claude Haiku on Bedrock) generates messages, Nova Sonic responds, tool calls execute in-stream
- Turn completion detection: Uses Nova Sonic's two-stage text production (speculative then final) to determine when turns end, more reliably than silence detection
- LLM judge evaluation: Separate LLM (e.g., Claude Opus) assesses full transcript against criteria without knowing test setup
All conversation artifacts—text transcripts, audio WAV files, tool calls, and timing metadata—are logged for analysis.
What This Means
The release addresses a fundamental gap in voice AI quality assurance. While text-based LLM testing has established frameworks, speech-to-speech models require different approaches due to their streaming, non-deterministic nature. By automating evaluation, the harness enables rapid iteration on system prompts and tool configurations—previously a manual bottleneck—and provides regression testing capabilities before production deployment. The open-source release suggests AWS is building developer tooling around Nova Sonic to support enterprise voice agent adoption, though the framework's effectiveness will depend on how well LLM judges can assess subjective qualities like conversation naturalness compared to human evaluators.
Related Articles
AWS Publishes Reference Architecture for Multimodal WhatsApp Ordering Agents Using Bedrock AgentCore and Nova 2
AWS published a reference architecture showing how to deploy a WhatsApp ordering assistant on Amazon Bedrock AgentCore, using Nova 2 Lite for text and Nova 2 Sonic for voice, with shared cross-channel memory and MCP-based tool access to backend systems.
t54 Processes 20 Million Autonomous Agent Payments Using Amazon Bedrock AgentCore
t54's x402-secure trust layer, running on Amazon Bedrock AgentCore payments, has processed over 20 million agent-initiated micropayments without human approval. The system uses a deterministic risk-scoring gate to block payments to unsafe endpoints before funds settle.
xAI's Grok Bot Turns Agent Setup Into a Login Screen, No Code Required
xAI's Grok Bot lets users connect agents to services like X, Google Calendar, and Freshdesk through a simple browser login instead of API keys or MCP configuration. A five-day hands-on report compares it to OpenClaw 2.0, released the same week, framing the two as a managed agent computer versus a user-owned agent platform.
Gemini Overlay on Android Adds Minimize Button for Multitasking Bubble
Google is widely rolling out a new Minimize button for the Gemini overlay on Android, which collapses conversations into a floating bubble users can drag or tap to expand. The feature currently supports six fixed positions and has a reported bug that resets bubble placement after each minimization.
Comments
Loading...