Danil Sharov - ~/portfolio/cases open for projects

danil@agent:~/portfolio$ cat cases/voice.md

Review of a test call: second-by-second transcript on the left, the agent's phrases one by one on the right
Review of a test call on the test bench: on the left, the transcript with pauses and agent actions; on the right, each of its phrases separately

AI voice agent for phone calls

My own product, MVP stage · I handle the whole technical side

A clinic or car service administrator spends hours on the same calls: remind about an appointment, move a visit, tell people the price and where to park. The agent does this on its own: it calls or picks up, speaks in a natural voice, understands free-form speech and updates the booking in the schedule.

# listen

Calls are in Russian.

Reminder and reschedule

The agent calls to remind about an appointment, the person asks for another day. The agent moves the visit and answers a question about parking

Inbound call to a car service

Price of an oil change, a booking for the evening, and the agent offers a free diagnostic on its own

Call to a past client

The agent invites the person to a routine checkup, the person asks about the price, the agent mentions a special offer and books the visit

Real calls over a phone line: I call or answer from my mobile, the agent is on the other end. Clinics, names and prices are made up for the test.

# what it can do

  • Makes and answers calls. Three scenarios: a reminder with rescheduling, a call to a warm client and an inbound line. On outbound calls the agent waits for "Hello", detects voicemail, leaves a short message and hangs up.
  • Does not interrupt and does not get lost. The agent ignores "uh-huh" and "yeah" while it is speaking, but if the person starts talking for real, it stops and listens.
  • Works with the schedule. Checks free slots, books, moves and cancels visits. It reads the phone number back out loud and asks again if digits are missing.
  • Its own voice. Three voices, one male and two female. The agent's name and grammatical gender follow the voice.
  • Data stays in Russia. Speech recognition and the voice run on my own server, the language model runs in Yandex Cloud.

# how I tuned the sound

The agent voices its answer in chunks, and at the joins the voice easily starts to sound robotic. For each such problem I built a listening page: the variants sit side by side, play in phone quality, and a rating by ear is saved right away. The call got the variant that was rated "natural" most often.

Phrase lab: one line in different wordings with measurements and a rating
Phrase lab: one line in different wordings. Under each: tempo, pauses, the intonation at the end and what speech recognition heard on the phone version
Comparing equalizer variants on phrases from a call
Timbre: five equalizer variants on phrases from a real call
Comparing pauses at the join between synthesized chunks
Joins between chunks: which pause sounds natural and which gives away a robot

# what the tests caught

After every change the agent goes through a set of test conversations. A second model grades the answers, while code checks numbers, action calls and the gender matching the voice. I turn every failure I find into a new test.

  • The patient's husband picked up. The agent told him about her teeth cleaning and the doctor. Now it does not share details and asks him to pass the message on.
  • "I'm driving, call me back." The agent promised twice to call back and did not hang up. Now it says goodbye and ends the call.
  • "Booked", but no booking. The agent said it had booked the visit but did not call the action. Now it books first and talks second.
  • A complaint and "let me talk to your manager". The agent transferred the call without apologizing. Now it apologizes and connects.

# what is not perfect yet

The voices come from an open dataset of recordings, and it is conversational speech, not an administrator's speech. Letter codes such as license plates sometimes come out blurred in synthesis, so the agent does not read them out. To sell it, I need my own voice actor with a voice contract.

# result

The agent works over a carrier's phone line and has been tested on real calls from a mobile phone. It replies about a second after the person stops talking, which is the normal pace of a conversation. Next step: the first client and my own voice actor.

Need an agent like this for a clinic or a service business? Let's go through your calls. Message me on Telegram

danil@agent:~/portfolio$ ls cases/

# client work

# side projects