Filip Valica

Projects

Wakelark

Android app

TL;DR. An Android app that puts a voice on the AI command-line tool you already run on your own computer, through earbuds, in the car or at the workbench. It ships with a bridge for Claude Code, and any backend that speaks the OpenAI Responses API streaming endpoint can stand in for it.

Problem:
The assistant with my notes and tools runs on my own computer. The phone's assistants can't reach it, and the apps that can need a tap and a look at the screen.
For:
People who run their own AI assistant on their own computer and want to talk to it with their hands busy.
Result:
Version 0.85 runs on my own phone, at the bench and in the car. The source goes public on GitHub once I've read it through.

How a question travels

  1. 1. You

    Earbuds, car or phone mic

    Say the wake phrase and ask.
  2. 2. Phone

    Wakelark

    Hears the wake phrase, turns speech into text, decides when you have finished.
  3. 3. Your network

    Text only

    One streaming request over your home network or a private VPN. No audio.
  4. 4. Your computer

    Bridge

    A small server in the repository. Swap it for anything that speaks the same request.
  5. 5. Your computer

    Your harness

    Claude Code, or another, with your files, notes and tools. It does the thinking.

The reply streams back the same way and the phone speaks it sentence by sentence, so you hear the start before the end is written.

Handled on the phone

  1. Sound

    Wake phrase on the phone; speech uses the phone's Google and Android engines. No audio goes to your server.
  2. Phone commands

    Timers, alarms, music, calls. These work with no server at all.
  3. Text messages

    Read aloud and answered on the phone. The server sees them only if you allow it.

Why it exists

I was driving to a meetup, talking to ChatGPT in voice mode about deal structures for buying a small business with an SBA loan. It went in loops, never got to the detail I wanted and knew nothing about what I’d already read. Next I had deep research reports read aloud to me on drives, which worked but didn’t let me ask anything. NotebookLM was better, and I switched to it from podcasts and audiobooks for the hours I spend in the yard or the workshop. But what I learned stayed in the notebook, not in my own files, and asking a follow-up or making a note with my hands busy was hard.

The assistant I use most runs on my own computer, with my notes, files and tools. The phone’s built-in assistants can’t reach it, and the apps that can expect a tap and a look at the screen. That rules them out in the car, with gloves on, or halfway through a repair. With Wakelark I say the wake phrase, ask, and hear the answer in my earbuds.

Not a harness

A harness is the program that runs the model: it keeps the conversation, calls tools and works on your files. Claude Code is one. Wakelark is the voice in front of one.

The phone handles the sound and the harness you already run does the thinking. They meet at one streaming endpoint in the same shape as OpenAI’s Responses API. The repository includes a small bridge for Claude Code, and any other harness or gateway that speaks that endpoint can stand in for it.

How it works

  • A small keyword model on the phone listens for the wake phrase. It doesn’t take over the audio, so music and audiobooks keep playing while it waits.
  • A quick command is sent after a short pause. A longer answer, or a sentence that sounds unfinished, gets more time.
  • Speech recognition and speech use the phone’s own Google and Android engines, so only text goes to your server. The one exception is an optional setting that sends wake-phrase clips for tuning.
  • The reply streams back and is spoken sentence by sentence. Follow-up questions need no wake phrase until the conversation goes quiet.
  • Timers, alarms, music and calls are handled on the phone and work with no server at all.
  • A new text message can be read aloud and answered by voice. The reply is read back and sent only after a spoken yes, and by default the message never goes to the server.
  • You can ask about a photo, or keep the back camera open and ask about what it sees. The answer draws boxes on the picture.

What didn’t work, and what fixed it

Most changes to the app started with something that failed in real use: in the car, in the shop or on a walk.

Audiobooks kept pausing

The first wake listener used the phone’s speech recognizer, which takes over the audio each time it starts. It restarted every few seconds, so an audiobook paused and played all day.

I replaced it with a keyword model that reads the microphone directly. On a bench test it caught the wake phrase eight of eight times, at full and at 15% volume, and ignored all 16 look-alike phrases. The app also dropped from 51 MB to 23 MB.

Texts were read over a phone call

A new message was announced in full over the caller’s voice. In the car it was worse: the app took the car’s audio link in the middle of the call.

The app now reads the phone’s audio mode to tell when a call is on, holds texts and timers until it ends, and announces them two seconds later.

It sent half a thought

A ten-word sentence went out after a 0.9 second pause, because every turn had the same short wait.

The wait now depends on what you’re saying: short for a command, longer for an answer, longer still for a sentence that sounds unfinished.

The wake phrase stopped working with earbuds

The idle listener opened on a Bluetooth link that was already closing. In one day it opened 185 listening windows and woke in none of them.

The idle listener now uses the phone’s own microphone, and the earbuds are taken only once a conversation starts.

The car kept reconnecting

One car dropped the idle Bluetooth link about a second after the app took it, and the app took it back every two to three seconds. The car showed reconnect pop-ups and all sound moved to the phone speaker.

A link that drops that quickly is now left alone until the device disconnects.

Talking over a reply threw it away

You can talk over a reply to stop it and ask something else. In the first two days, a reply was cut short 14 times, and three of those were a cup, a car muffler and noise in the shop, all as loud as a voice.

First, an interrupted reply is held: “keep going” resumes it and “wait” keeps it for 15 minutes. Walking past traffic still stopped replies 12 times in three minutes, so the trigger now listens only in the voice band, adjusts to the noise around it, and resumes the reply if no words follow within a second or two.

Still open

A loud noise can still pass for a voice. If you’ve separated speech from noise on a phone without sending the audio anywhere, I’d like to hear how you did it: me [at] filipvalica.com.

How it’s tested

Every build runs about 1,600 app tests, the bridge’s own test suite and an emulator smoke test that boots Android without a window, installs the app and runs it against a scripted server. A desk rig then runs written test plans on a real phone: a speaker plays the spoken commands, and each step is judged from the app’s own log and a microphone that confirms the reply was heard in the room.