Skip to content

About

Silent speech for people who lost their voice box. Cal Hacks 13.0.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

 

History

158 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silent Voice

Silent Voice gives a voice back to people who lost their voice box. You mouth the words without a sound, and Silent Voice speaks them in your own voice while you're still mouthing, even on a phone call.

We built it at Cal Hacks 13.0, where it placed 2nd overall and won Cartesia's voice AI challenge. The story of the weekend is in Thai's writeup.

Who it's for

A laryngectomy removes the voice box, usually after throat cancer. People keep their lips, tongue, and jaw, so the words are still there, only the sound is gone. Many of them speak through an electrolarynx, a handheld buzzer that sounds robotic and ties up a hand. We think they deserve a voice that sounds like them, keeps up with a real conversation, and works on an ordinary phone call, and that's what we're building.

Our demo speaker is Austin, who's healthy, and no patients take part in the demo.

How it works

Silent Voice has one mode, open mouth, no sound, in real time. Three readers work together, because each one sees what the others can't. Every 100 ms one joint search combines them and locks in each word as soon as they're confident enough.

Webcam and EMG pads feed Auto-AVSR and SVR-1. A joint search with Claude locks each word, which goes to live captions and to Cartesia Sonic in Austin's cloned voice, into the Twilio call. Cartesia Ink turns the judge's speech into text for Claude.
  • The camera reads the lips and does most of the work. It also reads the facial expression, which sets the voice's emotion.
  • The EMG model reads the electrical signals of the face muscles, so it sees the tongue and jaw that no camera can. It settles words that look alike on the lips ("bat", "mat", "pat"), proposes its own guesses, and keeps going when the face is hard to see.
  • Claude follows the whole conversation, both sides. It predicts likely words before you start mouthing and repairs look-alike mistakes ("bills" → "pills" after a question about medicine). It only swaps look-alike words and never adds ideas.
  • Cartesia speaks each word in your cloned voice as soon as it locks, without waiting for the end of the sentence.
  • When the system can't tell what you said, it shows "Please repeat" instead of guessing.

Read on for the details.

What we demo

The demo is two minutes, live, at our table.

  1. Austin calls the judge standing in front of us, through Twilio. The judge talks normally, and their words appear in the captions.
  2. Austin mouths his side of the conversation. His words appear as he mouths and play into the call in his cloned voice while he's still going.
  3. His facial expression sets the voice's emotion.
  4. The dashboard shows the real latency, which reader settled each word, and what Claude changed.

Stack

Part Tool
Live lip reading Ours (lipread/), built on the open Auto-AVSR model. We turned a clip-by-clip reader into a live one that streams word guesses as Austin mouths, knows when he starts and stops, and feeds every guess into one joint search with the EMG model and Claude.
Face, mouth crop, expression MediaPipe FaceLandmarker
Muscle signals BioAmp EXG Pill boards and an Arduino Uno, see HARDWARE.md
EMG model SVR-1, ours: PyTorch, pre-trained on Berkeley's silent speech data, fine-tuned on Austin
Context and repairs Claude, through the Claude API
Voice clone and speech Cartesia Sonic 3.6, Instant Voice Clone
The other person's speech to text Cartesia Ink
Phone call Twilio
Compute One laptop, RTX 5060

Code and data

All code lives in this repo. Datasets, checkpoints, results, and Python environments live in a working directory outside it, and the code finds them through the environment variable RECLAIM_WORKDIR (datasets in silent_speech/ and data/, plus checkpoints/, benchmark_results/, recordings/, third_party/). Without it, the code expects data next to itself, which is how the cluster copy works. Data folders are in .gitignore.

Folder What it is
svr/ SVR-1, the EMG model: model, training, fine-tuning, preprocessing (docs/SVR1_SPEC.md)
fusion/ The fusion process: the joint search over camera + EMG + Claude (search.py), the lock model (lock.py), on the bus (run.py), offline fitting and tests on the recordings (offline.py), and its language model: a conversational 4-gram with a cache of the call (lm.py, built by build_lm.py)
bench/ Benchmarks and their frozen test splits
cluster/ H100/H200 job scripts (PBS), smoke tests, runbook
camera/ Camera-only baselines (Auto-AVSR, BRAVEn, LipLearner)
rig/ EMG rig: Arduino firmware, serial reader, live hum filter, signal check, emg.raw publisher (publish.py)
recorder/ The recording app: camera + EMG + the session sentences (recorder/README.md)
bus/ The team bus: ZeroMQ wire format, the camera's topics (__init__.py) and every other endpoint and port (team.py); a fake camera (stub.py) and a typed stand-in for the judge (type_judge.py) for tests
buslog/ Logs every bus message to $RECLAIM_WORKDIR/logs/ (record.py) and replays a session (replay.py)
claude_service/ The Claude service: predicts Austin's next words and repairs look-alikes (brain.py), on the bus (service.py)
dashboard/ The live dashboard judges watch, from Thai's Figma v5, fed by the bus (dashboard/README.md)
demo/ The demo launcher (launch.py, DEMO.md); demo/dashboard/: the captions dashboard prototype (demo/dashboard/README.md)
call/ The phone call: Twilio, Austin's cloned voice (Cartesia Sonic) and the judge's captions (Cartesia Ink) (call/README.md)
figures/ The SVR-1 architecture figure, the SVR-1 vs Gaddy & Klein results (svr1_vs_gaddy_4ch*), and the scripts that draw them
tests/ Smoke and unit tests
docs/ Plans and specs, Markdown with PDF copies

Known limitations

  • This is a prototype, not a medical device.
  • Lip reading gets about 1 in 5 words wrong even on normal speaking video, and silent mouthing is harder. The EMG model and Claude are there to close that gap.
  • The EMG model is trained for one person (Austin), from three recording sessions, see RECORDING.md.
  • The voice runs a little behind the lips, because a word is spoken only once it's confident enough to lock.

Built on

Team

Thai (EMG hardware and the Claude service), Austin (EMG model and fusion, and the speaker in the demo), Frank (Cartesia voice, the Twilio call, and the captions dashboard), and Evan (real-time lip reading and facial emotion).

License

Silent Voice is open source under the MIT license. Bundled third-party files keep their own licenses, which are Mermaid (MIT, docs/vendor/mermaid.LICENSE), the Liberation Sans and Atkinson Hyperlegible Next fonts (SIL Open Font License 1.1), and MediaPipe's face mesh data (Apache-2.0).

About

Silent speech for people who lost their voice box. Cal Hacks 13.0.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages