Skip to content
All projects

Personal project · public or synthetic data

Voice agent

Press the microphone and speak French or English: Whisper transcribes, a LangGraph agent does the task, the answer is spoken.

Key results

median, end of speech to spoken answer
1.4 s
word error rate on the commands
8 %
language identified (French / English)
100 %
deletions or e-mails without confirmation
0
Spoken commands lose almost nothing against typed ones; what remains to fix is the agent, not the ear.

From the microphone to the action

The browser records; the server runs Whisper large-v3-turbo in int8 on the GPU, restricted to French and English. A LangGraph agent with 12 tools acts on a workspace (tasks, calendar, reminders, notes, e-mail drafts), and Piper speaks the answer in the language used. Every step is streamed to the page as it happens: transcript, LLM decisions, tool calls and results, and where the time went.

Deleting a task or sending an e-mail stops the graph (LangGraph interrupt) until the user confirms, in a node placed before the tools so that nothing runs twice on resume. The rule is in the graph, not in the prompt.

Checked on the state, not on the words

40 commands, 20 per language, each run on a freshly seeded workspace on a fixed date: success means the right row exists with the right date, the task is gone, the e-mail is sent or still a draft, and the agent asked for confirmation exactly when it had to. Spoken through four synthetic voices: 90 %, against 92.5 % from the exact text; with background talkers at 10 dB, still 90 %.

A turn takes 1.4 s (median): 0.72 s to transcribe with language detection (0.34 s when the language is fixed), 0.5 s for the agent’s two LLM calls, 0.12 s to synthesise the answer.

Task success by setting, French and English: text with qwen3.8-27b 85 % and 80 %, text with gpt-oss-20b 95 % and 90 %, voice 88 % and 92 %, voice with babble 90 % and 90 %.
40 commands, checked on the workspace state.Figure produced by the project code
Stacked bars for 12 spoken commands: about 0.7 s of speech recognition, 0.3 to 1.5 s of agent, about 0.1 s of speech synthesis; median 1.4 s.
Where a turn’s time goes.Figure produced by the project code

What the failures say

Speech recognition caused one real error in 80 runs ("un mail à Paul" heard "un *mélapol*"), and the agent asked who to write to instead of inventing a recipient. The agent’s own weak spot is notes that mention a date, which it turns into tasks or reminders; a French task searched for in English is not found, because the search is lexical.

Comparing two LLMs on the same commands, qwen3.8-27b said it had set dates it never stored: in 5 of its 7 failures the answer announced a due date the tool call left empty. Only checking the stored state catches that.

Limitations

The spoken commands come from synthetic voices: clear, no accent, no hesitation, so real users will raise the error rate (the interface is there to try with a real voice). 40 commands give a coarse estimate. One user, a demo workspace: e-mails are marked sent, nothing leaves the machine.

The interface: a spoken French request adds a meeting with Paul, an English question lists tomorrow, a deletion waits for confirmation; on the right, the live trace of each turn with its timings.
Speak, watch each step, confirm what cannot be undone.Figure produced by the project code