Hindi collections call checker (Gemma 4 E2B, MLX)
Listens to a recorded loan-recovery call in Hindi or Hinglish and writes a short JSON report:
- Harsh methods: which ones the agent used, out of seven types, each with the agent's sentence as evidence.
- Who picked up: the borrower or someone else.
- Recording notice: whether the agent said the call is recorded.
- Follow-up details: what the borrower promised to pay and by when, any hardship or dispute, and when they asked to be called back.
Built by Mnemio AI for a client, and open-sourced so any lender can use it. More in our blog post.
- One 3.4 GB file, fine-tuned from Google's Gemma 4 E2B.
- Needs under 5 GB of memory and takes about 2 seconds per call on an Apple M5 Pro.
- Runs on Apple silicon Macs through MLX. No audio leaves the machine.
There are two versions, both fine-tuned on the same 3,300 calls:
| File | Memory | Calls sorted right | |
|---|---|---|---|
| This one, quantized (recommended) | 3.4 GB | under 5 GB | 96% |
| Full precision (16-bit) | 9.9 GB | about 13 GB | 96% |
The full-precision version is the fine-tuned model with no rounding. Use it to convert the model to other formats, for example for Linux servers.
Why lenders need this from 1 January 2027
On 6 August 2026 the Reserve Bank of India issued amendment directions on recovering loan dues and engaging recovery agents. There is one for each kind of lender:
- commercial banks (RBI/2026-27/223);
- NBFCs (RBI/2026-27/230);
- small finance banks, local area banks, regional rural banks, urban and rural co-operative banks, all-India financial institutions and housing finance companies.
All of them come into effect on 1 January 2027. For calls, the lender must:
- Record and log. Note the time and number of recovery calls to each borrower or guarantor. Record the calls both ways, and keep the recordings for six months, or until a court case is disposed of.
- Tell the borrower that the conversation is being recorded.
- Call only between 08:00 and 19:00, unless the borrower asked otherwise. Honour a request not to be called at a particular time.
- Talk about the dues only with the borrower or guarantor.
- Stay away from inappropriate occasions: a bereavement in the family, a medical emergency, a marriage function or another calamity.
- Never use harsh methods. The directions list them:
- threatening or abusive language;
- excessive calls, or calls outside the hours;
- threatening or anonymous calls;
- intimidating or harassing the borrower, or their relatives, referees, friends or co-workers, including public humiliation;
- posting their details on social media;
- violence or threats of it;
- false or misleading claims about the debt, or about what happens if it isn't paid.
- Monitor and answer for its agents. The lender must run a management structure to monitor and control its recovery agencies, with inspection and audit. It must make sure targets and incentives don't push agents towards harsh methods, and compensate borrowers for losses caused by recovery that breaks the directions.
Every call has to be recorded, but nobody can listen to thousands of calls a day. This model screens every recording, so people spend their time on the calls that need it.
| What the directions ask | What this checks |
|---|---|
| No harsh methods | Seven types: threat_violence, shaming_threat, abusive_language, false_claim, third_party_disclosure, persistent_calling, insensitive_to_crisis, each with the agent's sentence |
| Tell the borrower the call is recorded | recording_disclosed |
| Discuss dues only with the borrower | answered_by, third_party_disclosure |
| Avoid bereavement and medical emergencies | insensitive_to_crisis, hardship |
| Honour the borrower's preferred time | callback_time (model); --asked-after (script) |
| Calling hours, no excessive calls | --time, --calls-today (script, from your call log) |
Not legal advice. Read the directions for your type of lender.
Use it
pip install mlx-vlm soundfile scipy
hf download VkrntD/hindi-collections-call-checker --local-dir call-checker
python call-checker/check_call.py call.wav --date 2027-01-12 --time 13:15 --calls-today 2
check_call.py cuts the recording into clips of 30 seconds or less. It asks the model with the exact prompt the model was trained on, then adds the checks that come from your call log. Use the same prompt if you call the model yourself: it is in check_call.py.
The report for a sample call. The borrower says his son had surgery, and the agent tells him to pay the EMI before the doctor's bill:
{
"heard": {
"answered_by": "borrower",
"recording_disclosed": false,
"violations": [{"type": "insensitive_to_crisis", "quote": "एक बात समझ लीजिए, Doctor का bill बाद में भरिए, पहले हमारी EMI clear कीजिए।"}],
"promise_to_pay": {"amount": 12500, "date": "2027-01-13"},
"hardship": "medical",
"dispute": false,
"callback_time": null
},
"breaches": [
{"type": "insensitive_to_crisis", "quote": "एक बात समझ लीजिए, Doctor का bill बाद में भरिए, पहले हमारी EMI clear कीजिए।"},
{"type": "recording_not_disclosed", "detail": "the agent did not say the call is recorded"}
],
"needs_review": true
}
Results
On 1,000 held-out calls with voices, names and wordings the model never saw in training:
| Calls sorted right: needs review or clean | 96% |
| A readable JSON report | 100% |
| Who picked up | 99.7% |
| Recording notice given or not | 99.8% |
| Callback time | 99.8% |
| Hardship reason | 97% |
| Calls with a violation caught | 96% |
| Evidence is the right sentence | 96% |
| Dispute | 95% |
| Promise to pay | 93% |
| Promise amount | 92% |
| Clean calls passed with no flag | 92% |
Calls sorted right means the report's needs_review was correct: it flagged the calls with a harsh method or no recording notice, and passed the calls with neither.
Details
- Base: Gemma 4 E2B instruction-tuned, as
mlx-community/gemma-4-e2b-it-4bit. - Fine-tuning: LoRA, rank 16, on the audio of 3,300 labelled Hindi and Hinglish recovery calls. The calls include borrowers, relatives and wrong numbers; short and long calls; calls that end midway; and phone-line and internet-call audio.
- Weights:
- the 276 fine-tuned text layers are stored at 6 bits;
- the token and per-layer embeddings stay at 4 bits, as released;
- the audio encoder is at 8 bits;
- the image encoder is removed.
- Input: up to 30 seconds of audio per clip, several clips per call.
- Output: one JSON object. Answer greedily (temperature 0).
Limitations
- It hears Hindi and Hinglish phone calls. Other Indian languages need more training.
- Promise dates said relative to the call ("परसों", "this Saturday") are worked out from the
--dateyou pass. Check them before acting.
License
Apache 2.0, the same as Gemma 4.