Skip to main content
All work
LOG-07Open lab · synthetic dataShipped2026

Spoken entities: when an Italian voice agent mishears a code, does it notice?

A small benchmark for the values an Italian utility's voice agent has to catch, from customer codes to IBANs, run through synthetic speech, a phone line and a real recogniser. It scores the one outcome that hurts: a wrong value the agent accepts and acts on.

Demo
Context
Open-source benchmark · synthetic speech, real speech recognition
Role
Everything: entity set, Italian number and spelling parser, audio pipeline, extractors, scoring, CI
Shows
Reading a voice deployment by the failure that costs money, and reporting a benchmark's own flaws as findings instead of hiding them.
0 of 9
wrong IBANs and fiscal codes acted on, across 3 recognisers × 3 extractors (synthetic speech). On codes with only a format check, 5 of 8 got through
50 → 90
of 96 realistic IBANs and fiscal codes Opus got right first time: its own 'unsure' flag decides → the checksum overrules the flag (rule found on the first test set)
50% → 91%
IBANs and fiscal codes the rules normaliser got right once my artificial test values were replaced by realistic ones

Problem

A voice agent on the line of Brezzaluce Energia, the fictional utility of LOG-04, has to catch values read aloud: customer codes, delegation codes, birth dates, meter readings, amounts, POD codes, IBANs, fiscal codes. When it mishears one, two things can happen. The value fails a check and the agent asks again: that costs a turn. Or the value passes and the agent acts on it, with the wrong account looked up and the wrong reading billed. Dashboards count the first; the second only shows up later, as a complaint.

Sierra's τ-Entity (October 2026) tests whether whole voice agents capture, verify and repair entities over a call, in six languages; Italian is not one of them. This repo is narrower: one recognition and extraction pass and what the validator does with it, no repair over turns.

Constraints

  • Synthetic speech. Two ElevenLabs voices play the caller, so there are no accents, no hesitation and no self-correction. The pipeline takes recorded human speech; these numbers are not a forecast for it.
  • Unassignable values. No value can belong to anyone. IBANs carry a deliberately wrong national check letter, fiscal codes a day of birth no one has. A production validator that also checked those would reject them before the checksum; mine use only mod-97 and the check letter. My first attempt used patterns that shaped the results (see What broke).
  • Small and correlated. 32 values, 128 distinct recordings, three channels that mostly agree.

Architecture

32 values × natural / spelled × 2 voices × clean / phone / noisy phone = 384 recordings
text ─► ElevenLabs TTS ─► ffmpeg phone line ─► Scribe ─► extractor ─► validator ─► outcome
  • Ways of saying them. "ci, sessantatré, zero, cinque" or digit by digit with the city alphabet ("D come Domodossola").
  • Phone line. 8 kHz, 300–3400 Hz, G.711 μ-law, with and without pink noise.
  • Recognition. ElevenLabs Scribe v1, batch, Italian, no keyterms, for the headline numbers; the same audio also through Scribe v2, with and without keyterms. None of them is the streaming recogniser a live agent uses.
  • Three extractors. A rules normaliser for Italian number words and spelling, and Claude Haiku 5.5 and Opus 5.5 with structured output (one run each, low effort), which can return nothing or mark a value unsure.
  • Validators. IBAN mod-97 and the fiscal-code check letter are real checksums; the other six types only have a format check.
  • Outcomes. Correct, re-ask (no value, unsure even if right, or rejected), or silent wrong: wrong, accepted by the validator, and not marked unsure.
  • Cached and reproducible. Transcripts and Claude extractions are committed, and the rules extractor runs at scoring time, so CI rebuilds every table without keys or audio.

What I did

Built the pipeline end to end, then read the results for what a deployment team would change.

  • Right first time: rules 97%, Opus 86%, Haiku 83%. With Scribe v1, no extractor let a wrong value through. The rules normaliser wins here, but it was fixed on most of these transcripts (see What broke).
  • Opus doubts right answers, and the checksum can settle it. Opus marked 41 of 48 fiscal codes unsure, 38 of them right. Accepting a value that passes the checksum even when Opus is unsure takes it from 86% to 97% right first time (Haiku from 83% to 86%), with no wrong value let through. I found the rule on the first test set and it held on a second one it had not seen. It holds on this set only: a fiscal code's check letter accepts about 1 in 26 random corruptions, an IBAN's mod-97 about 1 in 97. The extractor's doubt and the validator should be designed together.
  • The checksum caught two values a format check would have let through. "K come kappa" came back from the recogniser as a nonsense word starting with C. Haiku wrote C and was sure, and the IBAN's mod-97 rejected it. With only a format check the agent would have used that IBAN.
  • The zero did not carry over to a newer recogniser, and the misses landed where there is no checksum. The same audio through Scribe v2, with and without keyterms (the spelling alphabet and field names, never a test value), moved accuracy by a few points, within the noise. It also let five wrong values through in 2,304 extractions (three recordings), all on delegation codes and PODs, which only have a format check. In the worst one Scribe v2 heard a G as a D and kept the length: all three extractors accepted the wrong code, sure of it. On the same clip Scribe v1, and Scribe v2 with keyterms, dropped a letter instead, and every extractor returned nothing or marked it unsure. An error that keeps the format needs a read-back or a checksum. Recogniser comparison.

What broke

  • My first test values made the long codes hard. To keep them unassignable, every IBAN had ten nines in a row and every fiscal code the place code Y999. 19 of the rules normaliser's 20 wrong values sat on those two quirks; "Y" came back as "X" or "I". With realistic values the rules normaliser went from 50% to 91% right on those codes. The first version stays in the repo as a comparison, because it shows how far synthetic values can bend a benchmark.
  • "Correct" first counted values the extractor was unsure of. An agent asks again whenever its extractor is unsure, so those are re-asks. Fixing the scoring lowered Opus and turned up the checksum rule above.
  • The rules parser was fixed on the transcripts it is scored on. It had three bugs: it did not rejoin a number Scribe split into four words ("cinquantasette mila novecento trentuno"), it read "3D come Domodossola", where Scribe glued a digit to a letter, as two D's, and it read "doppia vu" as V. With those bugs it let two wrong values through. The realistic IBANs and fiscal codes came later and act as a small held-out check: 91% right, no wrong value. The other six types have no held-out set, so the rules numbers are optimistic.
  • Keyterms changed how the recogniser spells, and the parser broke again. With keyterms, Scribe v2 wrote "effe come Firenze" instead of "F come Firenze" in 23 of 384 transcripts, and the rules normaliser read two letters. It scored 92% until I added the pattern, then 98%, which is therefore not a held-out number. Changing the recogniser's settings is a change to the parser's input.

What I would do differently

I would test the test values first: listen to one clip of each pattern before generating hundreds. Next: the streaming recogniser a live agent would use, a recogniser from a second vendor, harder channels, consented human recordings, and repair rather than re-ask, because asking for the same audio again gives the same error.