
voice-lab
Open-source Python framework for testing LLM prompts, models and personas for voice agents
voice-lab is an open-source agent framework for ai models and llm tooling. It is available on CLI, API and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- GitHub stars
- 175
- Last commit
- Language
- Python
- License
- Apache-2.0
Similar agents
About voice-lab
Voice Lab is a Python toolkit for running repeatable experiments on the language model layer behind a voice agent. You describe a scenario with a system prompt, an opening message, a simulated persona and success criteria, then run it against different models or prompt variants and compare the results side by side.
Scoring is driven by metrics you define in JSON. An LLM acts as judge to grade each conversation against those metrics, and the framework can produce comparison tables across configurations, which makes it easier to see whether a cheaper or faster model holds up before switching.
It suits developers and teams maintaining voice agents who want to replace manual review of call transcripts with structured checks. At present it covers the text side of an agent only, and it requires an OpenAI API key to run.
What it does
- Custom JSON metrics
- Define evaluation metrics in JSON and have an LLM judge score conversations against them.
- Model comparison tables
- Generate side-by-side comparisons of results across different language models.
- Prompt variation testing
- Run several prompt versions through the same scenarios to see which performs best.
- Persona-based simulation
- Simulate callers with defined names, moods, traits and response styles.
- Scenario configuration
- Write test scenarios in test_details.json or generate them with a web configuration editor.
- Tool call support
- Include function-style tool definitions such as ending a conversation in test scenarios.
Good for
- Check whether a cheaper model keeps voice agent quality acceptable
- Compare prompt variations before deploying a change
- Test how an agent handles different caller personalities
- Replace manual review of call logs with scored evaluations
Pricing
Open source
Free and open source; you pay for your own model API usage.
voice-lab FAQ
What does Voice Lab currently test?
It supports only the text part of a voice agent, meaning the underlying language model and prompt, not audio.
What do I need to run voice-lab?
Clone the repository, install the requirements in a Python virtual environment, and add an OpenAI API key to a .env file.
How are test scenarios defined?
Each scenario is a JSON entry in test_details.json with a system prompt, initial message, optional tool calls, success criteria and a persona.
What license is voice-lab released under?
The repository is licensed under Apache-2.0.
Is voice-lab free?
Yes. voice-lab is open source, so you can use and self-host it for free.
What are the best alternatives to voice-lab?
The closest alternatives to voice-lab are dspy, llama-cpp-agent, future-agi, agentic-context-engine and llm_agents.
Where this comes from
- Description: written from the project's README.



