Docs

    Voice

    Test a voice bot

    Call your voice bot over its WebSocket with callers written from what it does, from your machine or CI, and read how fast it answered, whether it got the caller what they wanted and how it sounded.

    evalkit voice-test calls your voice bot the way a caller would. It connects to the bot's WebSocket and talks to it: by default each caller has a goal, hears what your bot says and decides what to say next, until the goal is met or it gives up. A caller can also say exact lines you wrote. Both sides of each call are recorded and the call is measured from the recording, then reported to SyntropyLabs, where the voice evaluators score it, and the run passes or fails as a whole.

    What it does and does not do

    • It calls a bot over a WebSocket, in one of two formats: a Twilio media stream or raw PCM.
    • It needs no file to start. From a few sentences on what your bot does (--about), SyntropyLabs writes the callers for the run, each with a persona, a goal, the facts it keeps back until asked, an opening line and success criteria. To play the same callers on every run, keep them in a scenarios file: each has a goal, or exact lines.
    • A caller with a goal listens. After each answer of the bot, the caller sends that answer's audio to SyntropyLabs; a model that hears audio (Gemini by default) writes down what the bot said and decides the next line as the persona would, and the caller says it. The caller runs no model itself. See How a caller with a goal talks.
    • It measures each call from its recording after the call: response delay, talk-over, how fast the bot stopped when interrupted, and silence. Voice Task Success judges whether the bot got the caller what they came for. The caller also measures the pitch, pace and pauses of the bot's voice; two evaluators are opt-in: Voice Prosody, which holds those figures to limits, and the AI listener, which rates how natural the bot sounds. See How a voice call is scored.
    • It does not dial phone numbers, join SIP calls or connect over WebRTC, and it cannot join a LiveKit room yet. A LiveKit Agents bot can be traced (see Trace a voice bot), not called.

    Two ways to run

    From your machine or CIFrom the console
    Started byevalkit voice-test runRun voice test on a voice agent's Scenarios page
    Calls placed fromyour process, so a bot on localhost or a private network worksSyntropyLabs, so the bot needs a public URL
    Callerswritten from --about, a scenarios file beside your code, or a scenario set saved in the consolewritten from the agent's description, or a scenario set saved in the console
    Needsthe Python SDK and an Environment keya voice agent in the console

    Both play callers the same way, measure with the same code and land on Simulations → Voice runs with the same scorecards. The rest of this page is the SDK route; Run from the console covers the Run button.

    Before you start

    • Voice tests for your organization. Voice test runs are set up for each organization with SyntropyLabs: talk to us. A run from an organization whose plan does not include them is refused with a 403 before any call is placed, in these words: Voice tests are not included in your organization's plan. To add them, contact us at https://syntropylabs.ai/contact. evalkit voice-test check and the reference bot (evalkit voice-test refbot) need no account.
    • An Environment key (tk_live_…). The run reports to that Environment, and each call's trace lands in it. See Create an environment and get its key.
    • Keys for the caller's model and its voice: yours, stored in the console or passed from the environment. Where your organization has none, SyntropyLabs' Gemini can stand in, once SyntropyLabs has set up model minutes for it. Your own key is always used first. See Your keys, and SyntropyLabs' Gemini.
    • Python 3.9 or later, and syntropylabs-evalkit 0.3.9 or later. 0.3.8 has run --scenario-set, check, call and refbot; --about, callers with goals, scenarios files, init and --tts-provider came with 0.3.9.

    Which format your bot speaks

    The test caller plays the other end of your bot's WebSocket, and it has to speak the bot's format. --format picks it.

    FormatOptionOn the socketYour bot speaks it when
    Twilio media streamtwilioJSON text messages as Twilio Media Streams sends them: connected, start, then a media message every 20 ms with 8 kHz mu-law audio in base64, and stop at the end. The bot answers with media, mark and clear messages.it takes calls from a Twilio number through <Stream>, or reads event, streamSid and media.payload. A Pipecat bot that calls parse_telephony_websocket and uses TwilioFrameSerializer speaks it.
    Raw PCMpcm16Binary messages of 16-bit little-endian mono PCM in both directions, at 8,000, 16,000 or 24,000 Hz (--sample-rate, 16,000 by default). The caller first sends the text message {"type": "start", "session": "<token>", "sample_rate": 16000}, which --no-start turns off. The bot may send {"type": "clear"} to drop audio it already sent.it reads binary audio frames from the socket. Use the sample rate the bot expects.

    To find out, run check with the format you think it is. It needs no key and sends nothing to SyntropyLabs. It makes one short call: it waits for a greeting, says one recorded line, "Hello, can you hear me?", and waits up to 8 seconds (--timeout) for an answer. The line is a person's voice, so a bot that detects speech with a neural detector such as Silero, as many Pipecat and LiveKit Agents bots do, hears it as speech.

    Shell
    evalkit voice-test check --url ws://localhost:8765/ws --format pcm16 --sample-rate 16000
    Output
    connected:   yes
    bot audio:   75 chunks, 47 kB, speech heard
    answered:    yes, after 800 ms
    format:      no errors
    result:      ok
    • check exits with 0 when the bot answered with no format errors, and with 1 otherwise. --format is pcm16 when left out.
    • A bot that sends JSON events to a pcm16 check gets the hint try --format twilio, and one that sends binary frames to a twilio check gets try --format pcm16.
    • Many bots send nothing in the wrong format, because they wait for a start message they never get. That reads bot audio: 0 chunks, and the first hint names the other format, the other pcm16 sample rates and the URL's path, for example nothing usable came back in pcm16 at 16000 Hz: try --format twilio, or another --sample-rate (8000 or 24000); then check the endpoint path (/ws). A hint about the headers follows.
    • bot audio with chunks but no speech heard gets the same first hint: the format or, for pcm16, the sample rate is wrong.

    Quickstart

    1. 1

      Install the SDK with the voice extra

      The voice extra adds numpy, websockets, webrtcvad and PyYAML. import evalkit never loads them, so your app does not pay for them.

    2. 2

      Check the bot

      evalkit voice-test check confirms the URL, the format and that the bot answers.

    3. 3

      Say what your bot does, and run

      Set the Environment key in the environment and pass a sentence or two on your bot with --about. SyntropyLabs writes five callers from it (--callers takes 1 to 20), and the command prints each call as it ends and exits with the verdict. No file is needed. To decide the caller's lines on a Gemini key of your own, set GOOGLE_API_KEY and add --caller-provider google: a key in the environment is sent only with a caller flag.

    4. 4

      Keep the callers, if you want the same ones every run

      evalkit voice-test init writes voice-tests.yaml, with two callers that have goals and one with exact lines. Edit them into your own callers and run the file with --scenarios. Voice test scenarios file has every field.

    Install
    pip install "syntropylabs-evalkit[voice]>=0.3.9"
    Environment
    export EVALKIT_API_KEY=tk_live_...     # Settings → This project → Environments → Copy key
    export GOOGLE_API_KEY=...              # optional: a Gemini key for the caller's model, sent with --caller-provider google
    Run
    evalkit voice-test check --url ws://localhost:8765/ws --format pcm16 --sample-rate 16000
    evalkit voice-test run --url ws://localhost:8765/ws --format pcm16 --sample-rate 16000 \
        --about "A refund desk for an online shop. It looks up orders, refunds duplicate charges and explains the 30-day return policy."
    Or run a scenarios file
    evalkit voice-test init    # writes voice-tests.yaml
    evalkit voice-test run --url ws://localhost:8765/ws --format pcm16 --sample-rate 16000 \
        --scenarios voice-tests.yaml

    A run sends the description with the run's create request. SyntropyLabs writes the callers, plans one call per caller and repeat, each with its own session token and its opening line as synthesized audio, and answers with the plan. The SDK downloads each opening once, checks it against its sha256, and places the calls, as many at once as the plan allows (2 by default). During a call it sends each bot answer to SyntropyLabs and says the line that comes back. After the call it analyses the recording, uploads it through a signed URL, sends the call's voice.call trace and posts the call's result. Once every call is reported, it completes the run and waits up to 10 minutes (--wait-timeout) for the evaluators' verdict.

    Exactly one of --about (or --about-file), --scenarios and --scenario-set says where the callers come from. A scenario set saved in the console runs with --scenario-set <scenarioSetId>, and --scenario <id> plays only some of it; its scenarios with lines are said as written and those with a goal are played by the live caller.

    The caller flags

    FlagDefaultWhat it does
    --about TEXTnoneWhat your bot does, in a few sentences. SyntropyLabs writes the callers for the run from it.
    --about-file FILEnoneThe same, read from a text file.
    --callers N5With --about: how many callers to write, 1 to 20.
    --scenarios FILEnoneA YAML or JSON file of callers with goals or exact lines. evalkit voice-test init writes one.
    --scenario-set IDnoneA scenario set saved in the console.
    --max-turns N8Caller lines after the opening, 1 to 20, for each caller with a goal whose scenario sets no maxTurns of its own.
    --caller-provider NAMEgoogleThe provider of the model that hears your bot and decides the caller's lines, on your own key.
    --caller-model IDthe API's: gemini-3.8-flash on googleThe caller's model. It must take audio.
    --caller-key-env VARGOOGLE_API_KEY, then GEMINI_API_KEY, for google; <PROVIDER>_API_KEY otherwiseThe environment variable the caller model's key is read from. The key is read only when one of the caller flags is given.

    The text-to-speech flags, --tts-provider, --tts-model, --tts-voice and --tts-key-env, set the caller's voice as before; see The caller's voice.

    How a caller with a goal talks

    1. 1

      The opening

      Its first line, written with the callers or by you as opening, is synthesized before the call and said after the first line's wait (see Who speaks first).

    2. 2

      Each turn

      Once the bot's answer is over (700 ms of quiet after at least 100 ms of its speech, giving up after 15 seconds), the caller sends that answer's audio, its last 60 seconds at most, to POST /v1/voice-tests/:runId/calls/:callIndex/turns. SyntropyLabs hears it, writes down what the bot said, and asks the caller's model, playing the persona with the goal and the facts, for the next line. The line comes back spoken, and the caller says it. While it waits it sends silence.

    3. 3

      A bot that speaks again

      If the bot speaks for a second or more while the line is being decided, the caller drops that line and asks once more with the longer audio.

    4. 4

      A cut-in

      After a line that cut into the bot's answer, the caller sends the bot's audio from the end of its line before the cut-in, with the point where it cut in, so what the bot said before it was interrupted is heard and kept in the conversation as well as its reply.

    5. 5

      The end

      The model answers that the goal is met or that the caller would give up, with an optional last line; or the caller reaches its turn limit (8 by default, at most 20), the call's time budget, or the bot hangs up. The bot's last answer is still heard and kept, so the conversation ends with what it last said.

    • Every figure is still the bot's, measured from the recording. The caller's own deciding time, from the end of the bot's answer to its next line, is not response delay, not silence and not the bot's fault: it is reported in caller health as think time.
    • A provider's rate limit or overload is asked again while the call's budget lasts; then the call ends with the error caller_turn_failed, a failure of the testing side, not of the bot, and the command exits with 2. A key the provider refuses ends the call the same way at once.
    • Each turn's heard text and the caller's lines are the call's conversation, kept on the call and in its scorecard, shown on the call's page and judged by Voice Task Success.

    Your keys, and SyntropyLabs' Gemini

    A voice test uses a model in four places: the caller's model, which hears each answer, decides the next line and writes the callers from --about; the caller's voice, which speaks the lines; the AI listener; and Voice Task Success. Every one of them can run on a key of yours, and yours always comes first. For the caller's model, SyntropyLabs takes, in this order:

    • a key sent with the run, read from the variable --caller-key-env names (GOOGLE_API_KEY, then GEMINI_API_KEY, for Google). It is never stored, so the SDK sends it again with each turn, and it is masked out of every message;
    • your organization's provider connection for --caller-provider, under Settings → Organization → Providers;
    • with no caller flag, your organization's own audio-capable model: a Model saved for audio, else your Google AI Studio connection with gemini-3.8-flash;
    • where SyntropyLabs has set up model minutes for your organization and some are left this month, SyntropyLabs' Gemini: gemini-3.8-flash on our key.

    The caller's model must take audio: any Gemini chat model, or one the model catalog marks as taking audio input. A key in the environment is read only with a caller flag: GOOGLE_API_KEY set on its own is not sent, so add --caller-provider google or --caller-key-env GOOGLE_API_KEY to use it. With none of the four, the run is refused with a 400 that names the fixes, such as adding a Gemini connection or passing a key with the run. The run records whose key paid (request, organization or platform), never the key.

    Everything on your own keys
    evalkit voice-test run --url ws://localhost:8765/ws --format pcm16 --sample-rate 16000 \
        --about-file about-bot.txt --callers 8 \
        --caller-key-env GOOGLE_API_KEY \
        --tts-provider openai --tts-key-env OPENAI_API_KEY

    SyntropyLabs model minutes

    Where your organization has no key for a part of the run, SyntropyLabs' Gemini can stand in for it: the caller's model, the caller's voice (Gemini text-to-speech), the AI listener and Voice Task Success. It is used only where SyntropyLabs has set up model minutes for your organization; talk to us to set it up. A run that uses it for any part counts its calls' minutes against your organization's minutes for the month.

    • Minutes count per organization and calendar month (UTC), and start again on the first of the next month.
    • A run is refused before it starts when its planned minutes, its calls' time budgets added up, are more than what is left: a 403 that says how many are left and how to bring a key. Each call is then charged its actual length, rounded up to the second.
    • A call is charged its whole length when any one part of it ran on SyntropyLabs' Gemini. Voice Task Success uses your organization's own judge first (the judge model the evaluator names, the project's default judge, a text model, then an audio-capable model or your Google AI Studio connection), so a run that passes keys for the caller and its voice still uses SyntropyLabs' Gemini for the judge, and is charged, when your organization has none of these. A run with every part on your own keys costs no minutes.
    • The run dialog's setup list says which parts use SyntropyLabs' Gemini, the task judge included, and how many minutes your organization has left this month; the usage line shows the minutes used, left and the reset date, and a run's page shows the caller's model, whose key paid and the minutes the run was charged.

    The caller's voice

    The caller's lines are synthesized on the SyntropyLabs side: the openings and every line written out before the calls start, and a caller's later lines as each is decided. The text-to-speech key is taken in this order.

    1. From the environment, sent with the run. For CI with nothing stored in the console. --tts-provider names the provider, and the key is read from the provider's usual variable, or from the one --tts-key-env names. --tts-model and --tts-voice are optional.
    2. Stored in the console. Connect the provider under Settings → Organization → Providers, and add a text-to-speech Model under Settings → This project → Models, with a voice in its default parameters. A run with no voice option speaks with that Model and its voice. --voice PROVIDER:MODEL:VOICE, such as --voice openai:tts-1:alloy, picks another voice on your stored connection.
    3. Your Google AI Studio connection, with no voice option and no text-to-speech Model: Gemini text-to-speech, gemini-3.8-flash-tts with the voice Kore, on that connection's key. It is the connection the caller's model and the AI listener fall back to as well.
    4. SyntropyLabs' Gemini text-to-speech, voice Kore, when your organization has none of these and SyntropyLabs has set up model minutes for it.
    ProviderKey read fromModel and voice when left out
    openaiOPENAI_API_KEYtts-1, alloy
    google (or gemini)GOOGLE_API_KEY, then GEMINI_API_KEYgemini-3.8-flash-tts, Kore
    elevenlabsELEVENLABS_API_KEYnone: name them
    cartesiaCARTESIA_API_KEYnone: name them

    A model or voice left out is taken from the project's text-to-speech Model on that provider first, then from the defaults above. For ElevenLabs and Cartesia with no such Model, the run is refused, asking for them.

    • A key is never taken on the command line, where your shell history would keep it. No option takes it: --tts-key-env and --caller-key-env take the name of a variable in capitals, and a value that looks like a key is refused without being printed.
    • A key sent with the run goes over TLS and is used for that run only. It is not stored, logged or returned, and the SDK keeps it out of everything it prints and writes.
    • When the variable is not set, the command says so, sends no key, and your stored key for that provider is used.
    • With no key anywhere and no SyntropyLabs model minutes, the run is refused with a message that names the fixes, and the command prints it and exits with 2.
    • A line already synthesized for the same voice and text is not synthesized again. The SDK keeps downloaded lines in ~/.cache/evalkit/voicetest/audio, or EVALKIT_VOICETEST_CACHE, or --cache-dir.

    The Environment key is read from EVALKIT_API_KEY, then EVALKIT_SUBSCRIPTION_KEY, then the key evalkit coding install stored. --key takes it on the command line; prefer the variable. It goes only to the SyntropyLabs API, never to the bot or the storage URLs. --api-url or EVALKIT_API_URL points at another API base than https://api.syntropylabs.ai.

    The bot's own credentials go in --header K=V, repeatable up to 10 times. Read them from a variable too: --header "Authorization=Bearer $BOT_TOKEN". Headers and the URL's query are sent to the bot only. SyntropyLabs keeps the URL's scheme, host and path as the run's label.

    Who speaks first

    The first line's wait depends on whether your bot greets the caller. --first-speaker sets it for every call of a run, and a voice agent's Who speaks first setting does the same for runs from the console.

    First speakerBefore the first lineUse it for
    auto (the default)If a greeting starts within 3 seconds, the caller hears it out and speaks 700 ms after it ends, at most 15 seconds after the call opens. If none starts, the caller speaks at 3 seconds.a bot whose habit you do not know
    botThe caller waits for the greeting however late it starts, and speaks 700 ms after it ends, giving up after 15 seconds.a bot that always greets
    callerThe caller speaks as soon as the call opens.a bot that waits to be spoken to, so no call starts with silence

    The greeting is not a turn: turn 0 is the caller's first line and the bot's answer to it. The time to the bot's first word is shown on the call page as First word. A line in the scenarios file with a wait of its own keeps it, the first line included.

    Planned interruptions

    To test how the bot handles being cut off, give a line interruptAfterBotMs. The caller then says that line while the bot is answering the previous one, once the bot has spoken for that many milliseconds. Voice Interruption Stop measures how long the bot went on talking after the caller cut in.

    voice-tests.yaml
    - name: Caller cuts in during a long answer
        lines:
          - Can you explain your refund policy?
          - text: Sorry, I only need to know how long a refund takes.
            interruptAfterBotMs: 1500
    • A caller with a goal plans one with interrupt: { turn: N, afterBotMs: M }: before its line N it cuts into the bot's answer M ms in, with a short line its model wrote the turn before. A generated IMPATIENT caller plans { turn: 1, afterBotMs: 1500 }.
    • The caller cuts in only while the bot is still speaking. Pick a value well inside the bot's usual answer to the line before.
    • Bot speech that overlaps the interrupting line is not counted as talk-over.
    • A call with no planned interruption skips Voice Interruption Stop.

    Run it in CI

    The command exits with the run's verdict, so a CI step can gate on it.

    Exit codeMeaning
    0The run passed: every planned call reported and passed its evaluators.
    1The run failed. A call that failed its evaluators, ended with an error on the bot's side (it refused the connection, hung up early or ran past its time budget) or never ran fails the run.
    2A setup or network failure, or a failure of the testing side: a bad option, a scenarios file that breaks a limit, a missing key or extra, a run the API refused to create (its reason is printed), a result that could not be sent, caller audio that could not be fetched or did not match its sha256, a call that failed on the caller's side (caller_error, analysis_failed, or caller_turn_failed for a caller with a goal whose next line could not be had), or a verdict not read within --wait-timeout. Such a run says nothing about the bot.
    130The run was interrupted.
    • A call that fails does not stop the run: a bot that refuses the connection, hangs up before the caller is done or runs past the call's time budget is reported with its error, and the next call goes on.
    • Calls to the SyntropyLabs API that fail on the network or with a 5xx are retried with backoff. A create whose answer was lost is sent again with the same Idempotency-Key, so it never opens a second run.
    • Ctrl-C stops new calls and lets the calls in progress finish. A second Ctrl-C or a SIGTERM ends them at once. Either way every call is reported, calls that never started are reported as not run, and the run is completed.
    .github/workflows/voice-tests.yml
    # .github/workflows/voice-tests.yml
    name: Voice tests
    on: [pull_request]
    
    jobs:
      voice:
        runs-on: ubuntu-latest
        timeout-minutes: 30
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-python@v5
            with:
              python-version: "3.12"
          - run: pip install "syntropylabs-evalkit[voice]>=0.3.9" -r requirements.txt
          - name: Start the bot
            run: |
              python bot.py &   # your bot, serving ws://localhost:8765/ws
              timeout 60 bash -c 'until (echo > /dev/tcp/127.0.0.1/8765) 2>/dev/null; do sleep 1; done'
          - name: Check that the bot answers
            run: evalkit voice-test check --url ws://localhost:8765/ws --format pcm16 --sample-rate 16000
          - name: Voice tests
            env:
              EVALKIT_API_KEY: ${{ secrets.EVALKIT_API_KEY }}
              GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
              CALLER_TTS_KEY: ${{ secrets.CALLER_TTS_KEY }}
            run: >
              evalkit voice-test run --url ws://localhost:8765/ws --format pcm16 --sample-rate 16000
              --scenarios voice-tests.yaml --caller-key-env GOOGLE_API_KEY
              --tts-provider openai --tts-key-env CALLER_TTS_KEY
              --name "PR ${{ github.event.pull_request.number }}" --out voice-results
          - uses: actions/upload-artifact@v4
            if: always()
            with:
              name: voice-results
              path: voice-results/

    A gate plays the same callers on every run, so this workflow runs the scenarios file init wrote; --about works the same in CI and writes new callers each time. Store the Environment key as the repository secret EVALKIT_API_KEY, the Gemini key for the caller's model as GOOGLE_API_KEY, which --caller-key-env GOOGLE_API_KEY sends, and the OpenAI key for its voice as CALLER_TTS_KEY. Where SyntropyLabs has set up model minutes for your organization, either key may be left out and SyntropyLabs' Gemini stands in. --tts-key-env CALLER_TTS_KEY reads the voice's key from a variable of your choosing, so the bot's own OPENAI_API_KEY, if it has one, can stay separate. --out voice-results keeps each call's recording.wav, events.jsonl, call.json and scorecard.json under voice-results/<runId>/call-NNN/, and the run's summary in voice-results/<runId>/run.json; without it they are deleted when the run ends.

    A run places at most 50 calls (callers times --repeats, which is at most 10), an organization at most 200 SDK calls a UTC day, and an Environment at most 30 run creations a minute. A caller with a goal takes at most 20 turns a call, one retake a turn and 60 seconds of bot audio a turn. Past a limit, the run is refused with a 429.

    From Python

    Python
    import os
    import sys
    
    import evalkit.voicetest
    
    result = evalkit.voicetest.run(
        "ws://localhost:8765/ws",
        format="pcm16",
        sample_rate=16000,
        about="A refund desk for an online shop. It looks up orders, refunds duplicate charges and explains the 30-day return policy.",
        callers=5,
        caller={"provider": "google", "model": "gemini-3.8-flash", "api_key": os.environ["GOOGLE_API_KEY"]},
        headers={"Authorization": f"Bearer {os.environ['BOT_TOKEN']}"},
    )
    print(result.verdict, result.console_url)
    for call in result.calls:
        print(call.call_index, call.scenario_name, call.error)
    sys.exit(result.exit_code)

    evalkit.voicetest.run() takes the options of the command as keyword arguments and returns the run, with passed, verdict, exit_code, console_url and one outcome per call. about= writes callers= callers from what your bot does (5 when left out), and scenarios= plays a file's path, what load_scenarios() returns, or a list in the file's shape instead. caller={"provider", "model", "api_key"} and voice={"provider", "model", "voice", "api_key"} pass your own keys; without them your stored keys are used, else SyntropyLabs' Gemini where SyntropyLabs has set up model minutes for your organization. It raises VoiceTestSetupError when the run cannot start. run_async() is the same for code already inside an event loop.

    A scenarios file from Python
    scenarios = evalkit.voicetest.load_scenarios("voice-tests.yaml")  # raises ScenarioError
    result = evalkit.voicetest.run(
        "ws://localhost:8765/ws",
        format="pcm16",
        scenarios=scenarios,
        voice={"provider": "openai", "api_key": os.environ["OPENAI_API_KEY"]},
    )

    Read the result

    The command prints each call's figures as it ends, then each call's evaluators (name, score, passed or failed, and the reason), the console link and the verdict. A skipped evaluator reads not scored with the reason it was skipped. For example, a run of three callers with exact lines, with --first-speaker caller for a bot that does not greet:

    Output
    run 6a2f3c...: 3 call(s), up to 2 at once; https://syntropylabs.ai/o/<org>/p/<project>/simulations/voice/6a2f3c...
    caller audio: 9 of 9 clips ready (9 downloaded, 0 from the cache)
    call 0: Refund for a duplicate charge (repeat 0), 11.0 s: ok
      response delay   p50 801 ms, p95 806 ms; 3 of 3 turns answered; per turn 800 ms / 806 ms / 801 ms
      talk-over        none
      interruptions    none planned
      longest silence  0 ms
      caller           healthy (no late frames)
      recording        uploaded (690 kB)
    ...
    run 6a2f3c...: 3 calls, 3 ok, 0 failed
    evaluators:
      call 0:
        Voice Response Delay  1.00  passed  p95 806 ms, limit 1,200 ms, 0 of 3 turns over
        Voice Talk-Over  1.00  passed  no talk-over, limit 300 ms a turn, 0 of 3 turns over
        Voice Interruption Stop  not scored  no planned interruption in the scored turns
        ...
    console: https://syntropylabs.ai/o/<org>/p/<project>/simulations/voice/6a2f3c...
    verdict: passed (exit 0)
    LineWhat it says
    response delayp50 and p95 over the answered turns, how many turns the bot answered, and each turn's delay.
    talk-overHow long and how often the bot talked over the caller, or none.
    interruptionsHow many were planned, how fast the bot stopped (p50 and p95), and how many the bot finished its answer before (not reached). A - means the bot was not speaking when the caller cut in.
    longest silenceThe longest gap over 3 seconds inside the bot's reply where neither side spoke, or 0 ms.
    callerWhether the test caller kept time. Turns where it ran late are left out of the scores, and this line says how many.
    recordingWhether the recording was uploaded, and its size. --timing-only uploads none.

    --json prints one object instead: runId, consoleUrl, passed, verdict, exitCode, interrupted, problems, calls (each with its error, figures, recording, traceId and sessionToken) and run, the API's own summary. GET https://api.syntropylabs.ai/v1/voice-tests/<runId> with the X-Subscription-Key header returns that summary at any time: status, passed (null until the run is completed), and each call's status, error and evaluators.

    In the console, Simulations → Voice runs lists every run, from the SDK and the console alike, with its gate, the calls that passed and the slowest p95 response delay against its limit. A run's page says where its callers came from (written from the bot's description, a file or a saved set) and lists the callers it kept with their persona and goal, names the caller's model, whose key paid for it and for the voice, and the SyntropyLabs model minutes the run was charged. It has the calls reported, passed, failed and with no verdict, the slowest p95, and a row per call with its verdict, how its caller spoke (with exact lines, or goal-based with the turns it took), its length, its evaluators and, when the run's evaluators include Voice Naturalness, the AI listener's rating. An SDK run is stopped from the process that runs it; the page cannot cancel it.

    A call's page has the evaluators with their figures; Task success on a goal-based call, with the caller's goal, each success criterion met or missed and the judge's reason; the recording as two lanes you can play, with each problem the AI listener named marked on it; the Conversation of a goal-based call, the caller's lines and what the bot was heard to say in order, each a click away on the recording, with the caller's thinking time before a line marked as the caller's, not the bot's; How it sounds with the measured pitch, pitch range, rate, longest pause, loudness and clipping, and the listener's rating per turn when the run's evaluators include Voice Naturalness; the turns table, the caller's health and the plan or script. Open trace and Open session lead to the call's trace and to your bot's, joined by the call's session token. The session token is in the header, with a copy button.

    Run from the console

    Teams without the SDK can let SyntropyLabs place the calls. The bot then has to be reachable from the internet.

    1. 1

      Add the bot as a voice agent

      In Simulations → Agents, create an agent with the connection Voice (WebSocket). Fill in the WebSocket URL, the Audio format (Twilio media stream, or Raw PCM with its sample rate), Who speaks first, and any Handshake headers the bot needs, such as Authorization. Header values are stored encrypted and never shown again. Say what the bot does in its Description and What the agent does: the callers are written from them.

    2. 2

      Run it

      Click Run voice test on the agent's Scenarios page. Generate from this bot's description is the default, with 1 to 20 callers (5 by default); Saved set plays a scenario set instead, its scenarios with lines as written and those with a goal through the live caller. Pick the repeats and the Environment the calls are traced into, then click Run.

    3. 3

      Read it

      Each call lands on Simulations → Voice runs as it reports.

    • The URL must be public. It is checked when you save the agent and again when each call connects: wss:// or ws:// only, no credentials in the URL, and a host that resolves to public addresses only. Private, loopback, link-local and CGNAT addresses and cloud metadata endpoints are refused. Test a bot on localhost or a private network with the SDK.
    • The dialog's setup list shows the caller's model, the speech model and voice, the AI listener and the task judge, and for each whether it is yours or SyntropyLabs' Gemini, with the minutes left this month; where neither is there, it says how to add one. The AI listener is listed as not in this run while the Voice collection a run is scored with leaves Voice Naturalness out.
    • The caller's model is your organization's audio-capable model, else its Google AI Studio connection, else SyntropyLabs' Gemini where it is set up for your organization. The caller speaks with your project's text-to-speech Model, or with a provider, model and voice you pick under Caller voice, on your stored key, else with your Google AI Studio connection, else SyntropyLabs' Gemini. A run from the console cannot take a key from your environment.
    • Hosted calls count against your organization's hosted call minutes for the UTC day. A run whose calls' time budgets do not fit in what is left is refused before it starts. The dialog shows the limit and today's use.
    • At most 2 hosted calls run at once in an organization, a run places at most 24 calls with at most 10 repeats, and a call lasts at most 10 minutes.
    • Timing only: keep no recording measures and scores the calls without keeping any audio; the AI listener is then skipped. Otherwise both sides of each call are kept under the Environment's retention.
    • A run from the console can be cancelled from its page: calls not yet placed are marked not run, and a call in progress is ended and reported.
    • The dialog's Run from code or CI section gives the same run as an SDK command.

    EvalKit is built by SyntropyLabs. Published on PyPI and npm.