PROJECT STUDY
Call Quality AI
Check every call, and hear the evidence behind each flag.
A QA workspace for Indonesian contact centres that redacts spoken numbers from transcript and audio, scores every call on a YAML rubric with timestamped evidence and measures its agreement with QA labels item by item.
Explore the build
At a glance
- Industry
- Financial services
- Capabilities
- 8
- Technologies
- 12
- Year
- 2026
The challenge
A contact centre records every call, but its QA team can listen to only a small sample.
Required disclosures, misleading promises, greetings, empathy and script adherence go unchecked on most calls, and a transcript that does exist can leak the NIK, card, phone, account and OTP numbers that customers read aloud.
Call Quality AI is built for the contact centres of banks, insurers, multifinance companies and telcos in Indonesia, and for the outsourced centres that serve them. It transcribes and redacts each recording, scores it against the team's own rubric and takes a reviewer straight to the moment behind every flag.
What we built
Call Quality AI joins a Python speech pipeline to QA studio, a reviewer workspace in React.
Speakers from the recording
WAV and MP3 recordings are decoded through libsndfile, and stereo calls are split by channel into agent and customer, as many contact-centre recorders keep the two legs, so no diarisation model is needed. A pair that is really one mix written twice is detected and treated as mono, and mono calls are segmented by an energy voice activity detector and marked lower confidence
Indonesian transcription
A recogniser adapter runs faster-whisper on CTranslate2 in Indonesian over voice-activity regions only, with word timestamps and a guard against decoding loops, and a deterministic fixture recogniser stands in for tests and demos
Redaction before storage
Numbers read aloud in Indonesian, digit by digit, as words or split across two turns, are labelled NIK, card, phone, account or OTP and replaced by a typed placeholder in the transcript and by a tone over the same span on both audio channels, before anything is stored
A rubric engine in YAML
A versioned rubric of required and forbidden phrases with Indonesian normalisation, synonyms, wildcards and negation, timing and order rules such as a greeting within the first 15 seconds and a recording disclosure before the closing, critical items and a weighted score against a pass mark
Conversation measures
Dead air with announced holds excluded, the agent's share of talk time, interruptions found in overlapping turns with backchannels such as iya and oke excluded, and a lexicon-based Indonesian sentiment trajectory for the customer
Judged items with verified quotes
Items such as empathy and a confirmed resolution go to an LLM judge through an adapter, and a verdict counts only when its quotes are found in the cited line, from the right speaker, at the right time
Calibration against QA labels
The engine's results are compared with QA labels on the same calls using Cohen's kappa per rubric item, beside raw agreement and counts, with a recommendation of which items can be scored automatically, which only suggested and which kept with reviewers
QA studio
An overview, a filtered call list, a call view with a two-lane waveform, flags and redacted spans, a transcript whose timestamps play the audio, a scorecard whose evidence jumps to the moment, overrides with a required reason, an append-only audit trail and a calibration report, in English and Bahasa Indonesia
Speakers from the recording
WAV and MP3 recordings are decoded through libsndfile, and stereo calls are split by channel into agent and customer, as many contact-centre recorders keep the two legs, so no diarisation model is needed. A pair that is really one mix written twice is detected and treated as mono, and mono calls are segmented by an energy voice activity detector and marked lower confidence
Indonesian transcription
A recogniser adapter runs faster-whisper on CTranslate2 in Indonesian over voice-activity regions only, with word timestamps and a guard against decoding loops, and a deterministic fixture recogniser stands in for tests and demos
Redaction before storage
Numbers read aloud in Indonesian, digit by digit, as words or split across two turns, are labelled NIK, card, phone, account or OTP and replaced by a typed placeholder in the transcript and by a tone over the same span on both audio channels, before anything is stored
A rubric engine in YAML
A versioned rubric of required and forbidden phrases with Indonesian normalisation, synonyms, wildcards and negation, timing and order rules such as a greeting within the first 15 seconds and a recording disclosure before the closing, critical items and a weighted score against a pass mark
Conversation measures
Dead air with announced holds excluded, the agent's share of talk time, interruptions found in overlapping turns with backchannels such as iya and oke excluded, and a lexicon-based Indonesian sentiment trajectory for the customer
Judged items with verified quotes
Items such as empathy and a confirmed resolution go to an LLM judge through an adapter, and a verdict counts only when its quotes are found in the cited line, from the right speaker, at the right time
Calibration against QA labels
The engine's results are compared with QA labels on the same calls using Cohen's kappa per rubric item, beside raw agreement and counts, with a recommendation of which items can be scored automatically, which only suggested and which kept with reviewers
QA studio
An overview, a filtered call list, a call view with a two-lane waveform, flags and redacted spans, a transcript whose timestamps play the audio, a scorecard whose evidence jumps to the moment, overrides with a required reason, an append-only audit trail and a calibration report, in English and Bahasa Indonesia
How it works
Split and recognise
The ingest stage decodes each recording, checks its channel layout and splits stereo calls into agent and customer legs. An energy voice activity detector finds speech on each leg, ignoring headset bleed 20 dB or more below the other leg, and the recogniser adapter transcribes only those regions, keeping word timestamps.
Redact before storing
The redactor finds digit runs in the Indonesian transcript, joins a number read across two turns of the same speaker, labels it from the words before it and its structure, and replaces it with a typed placeholder. A 1 kHz tone covers the same time span on every channel, so the transcript and audio that reach storage are already redacted.
Score against the rubric
The rubric engine runs every item of the YAML rubric over the redacted lines and the speech regions measured before the tone: phrases, timing and order, dead air, talk ratio, interruptions, sentiment and judged items. Each result keeps the timestamps of its evidence, and a failed critical item fails the call whatever its score.
Review and calibrate
A FastAPI service over SQLite backs the QA studio, where a reviewer plays the evidence behind each flag and overrides a result with a written reason, kept beside the engine's decision in an append-only audit trail. Calibration compares the engine with QA labels on the same calls and reports kappa for every rubric item.
Engineering insights
The pipeline is built around evidence: every score points to a moment in the call, and personal data is redacted before anything is kept.
Stack by layer
- Frontend
- React
- TypeScript
- Vite
- TanStack Router
- TanStack Query
- ts-pattern
- ts-belt
- CSS Modules
- Lucide icons
- SVG charts
- Backend
- Python 3.12
- FastAPI
- Pydantic
- Uvicorn
- httpx
- Data
- SQLite
- NumPy
- libsndfile
- YAML rubrics
- AI
- faster-whisper
- CTranslate2
- Energy voice activity detection
- Indonesian phrase matching
- Lexicon-based sentiment
- OpenAI-compatible judge adapter
- Cohen's kappa
- Infrastructure
- uv
- pytest
- Ruff
- mypy
- Vitest
- Testing Library
- Biome
- Playwright
Privacy by construction
Raw recogniser output is its own type, and only the redaction step can turn it into the lines that storage accepts, so the database cannot receive an unredacted transcript even by mistake. Redacted spans keep the kind, line and time, never the value, and a test scans the seeded SQLite files byte by byte for every number spoken in the synthetic calls
Checksums label numbers, they do not gate redaction
A NIK and many card numbers are both 16 digits, and a recogniser that mishears one digit breaks a card's Luhn checksum. So context and structure only choose the label: every run of eight or more digits is redacted whatever its label, shorter runs are redacted when the words before them name an OTP, PIN, card, ID, phone or account, and a misheard card is stored as a card with a failed checksum
Phrase rules that read Indonesian
Phrases match on canonical tokens, so informal forms such as gak and udah count as tidak and sudah, patterns allow alternatives, opt-in prefixes, any-word slots and synonym groups, and a negator just before a forbidden phrase turns it into a disclosure. Stemming is opt-in per word, because a stemmer would fold dijamin, a misleading guarantee, and jaminan, collateral, into one root
Verdicts must quote the transcript
The judge sees only redacted lines with ids, speakers and timestamps and must answer with quotes. Each quote has to appear in the cited line, come from the speaker the item is about and fall within a second of that line, or the item goes to a reviewer instead of counting; the adapter speaks the OpenAI-compatible API, and a deterministic keyword judge runs the tests
Kappa decides what can run unattended
Calibration reports Cohen's kappa per rubric item beside raw agreement and counts, because raw agreement flatters items that nearly every call passes. It recommends automatic scoring for an item at a kappa of 0.8, suggestion to a reviewer from 0.6 and manual review below that, and makes no recommendation for an item with fewer than 10 decided pairs or labels without contrast
A fixture recogniser and a keyword judge run the test suite offline, with no GPU, model download or API key, and two setup commands add faster-whisper and download a model for real transcription.
Design system
QA studio is a calm, readable interface for reviewers who listen while they read, in which each colour keeps one meaning and no colour carries a meaning alone.
Colour palette
- Slate white
#f8fafcPage background behind white panels - Ink
#0f172aText, timestamps and the waveform playhead - Teal
#0e7490Primary buttons, links, timestamp buttons, focus rings and the tint on the line being played - Agent blue
#2563ebThe agent's waveform lane and line rule, always with the word Agent - Customer magenta
#be185dThe customer's waveform lane, line rule and sentiment line, always with the word Customer - Pass green
#15803dPassed items and calls, with a check icon and the word - Flag red
#b91c1cFailures, critical items and flags, with a cross or shield icon and the word - Attention amber
#b45309Items waiting for a reviewer, with a warning or hourglass icon and the word
Colour
Slate-white surfaces and near-black ink keep long transcripts easy on the eyes, teal is kept for controls, agent blue and customer magenta mark who spoke, and green, red and amber mean only pass, flag and needs attention, each beside an icon and a word. Colour-vision separation between those pairs is measured in a test, which is why flags get their own track instead of a red tint on the customer lane
Typography
Inter Variable, bundled through Fontsource, with transcript lines held to about 70 characters at a 1.6 line height, and tabular numerals for timestamps, durations and scores, so columns align and digits do not jump during playback
Evidence
A flag on the waveform, a quote in the scorecard and a line in the transcript are the same moment, and one selection plays it from a second and a half before. Redacted spans show as dark chips with a lock and the number's kind, and as hatched bands on both waveform lanes
Accessibility and language
Real buttons and native dialogs with visible focus, a table view for every chart, a labelled waveform slider that works with the arrow keys, reduced motion respected, contrast tested in code, and every string in English and Bahasa Indonesia with a parity test
Where this fits
Contact centres in banking, insurance, multifinance and telecoms can apply the same pipeline to their own recordings and rubrics. Explore our AI solutions, business systems and data dashboards, see our insurance work, or talk to us about reviewing every call.
Inside the project
Screens from the production build serving the seeded demo: 160 synthetic calls between fictional agents of an invented financial group and fictional customers, with fictional numbers and speech-shaped audio.
The overview: every call scored and redacted, the score distribution against the pass mark, the rubric items calls fail most and the calls that need attention.View larger Call review: agent and customer waveform lanes with a flag and hatched redacted spans, a transcript with redaction chips, and the failed scorecard item whose evidence plays the moment.View larger An override: the reviewer changes a result with a written reason, recorded beside the engine's decision and in the audit trail.View larger Calibration: Cohen's kappa per rubric item against synthetic QA labels for the same calls, with the recommendation each item earns.View larger
KEEP EXPLORING
Another problem. A different approach.

Store & Workforce Vision
A privacy-aware store operations platform for occupancy, queue and zone events, with configurable alerts, manager review and aggregate reporting.

Mining Haul Dispatch
Haul dispatch for open-pit mines: a linear program plans haul flows inside the coal-quality band, and each truck goes to the excavator furthest behind plan, with the reason logged.
Let’s connect the dots
Let's put these ideas to work.
Share a process, product, or problem you want to improve. We will work through the possibilities together.