---
title: "Turning My 2015 Android Phone Into a Local AI Assistant"
summary: "My 2015 Android phone now runs a voice assistant that sets reminders, fully offline. The stock model could not do the job, so I fine-tuned a small LLM for a single task and used an old formant voice, because modern TTS models were too slow on this hardware."
date: 2026-11-25
topic: "Edge AI"
author: "Yogendra Manawat"
---

# Turning My 2015 Android Phone Into a Local AI Assistant

import CopyBlock from "@/components/articles/CopyBlock";
import BarChart from "@/components/articles/BarChart";
import StackedBars from "@/components/articles/StackedBars";
import PieCharts from "@/components/articles/PieCharts";
import VideoEmbed from "@/components/articles/VideoEmbed";

The assistant runs 100% offline on a CPU. It uses only about 255 MB of memory and responds 1.5 to 3.5 seconds after I stop talking.

## Demo

Here it is running on the phone: a voice command, a reminder, and no network connection.

<VideoEmbed
  src="/articles/android-assistant-demo.mp4"
  poster="/articles/android-assistant-demo.webp"
  caption="A 39-second demo, recorded on the phone."
/>

## The phone

My first phone was an Oppo A33f from 2015. It has a Snapdragon 410, four Cortex-A53 cores at 1.2 GHz, 32-bit only, 916 MB of RAM, and Android 5.1.1. By modern standards it is a museum piece. It cannot install a current build of Chrome, and most apps dropped support for Android 5 years ago.

I turned it into my desk voice assistant. I say "jumbo, remind me to write an article tonight 10", the phone vibrates, thinks for two seconds, and sets the reminder. No Wi-Fi is involved, and nothing leaves the device.

## What runs on it

Everything runs on the CPU, on the phone, with no network.

| Stage | What I used | Size |
| --- | --- | ---: |
| Wake word | Keyword spotter (3.3M-param zipformer, int8) | ~6 MB |
| Speech-to-text | Kroko streaming zipformer | 70 MB |
| Language model | SmolLM2-135M-Instruct, via llama.cpp | 92 MB |
| Text-to-speech | SVOX Pico (formant synthesis) | 1.7 MB |
| Glue | ~2,000 lines of Java + a 278 KB C TTS server | - |

Together they use about 255 MB of RAM, and 2-3% of one core while idle with the microphone open.

The memory budget on the 916 MB phone:

| Part | Memory |
| --- | ---: |
| Assistant process | 129 MB |
| LLM server | 126 MB |
| Android | 335 MB |
| Free | 326 MB |

The voice assistant's total is 255 MB.

<StackedBars
  title="Where the 916 MB of RAM goes"
  unit=" MB"
  rows={[
    {
      label: "Phone RAM",
      segments: [
        { label: "Assistant", value: 129, tone: "accent" },
        { label: "LLM server", value: 126, tone: "accent" },
        { label: "Android", value: 335, tone: "mid" },
        { label: "Free", value: 326, tone: "light" },
      ],
    },
  ]}
  note="The blue part is what the assistant uses: 255 MB, about 28% of the phone."
/>

## How it started: badly

I loaded the stock SmolLM2-135M and asked it to set a reminder. It did not.

| You said | The stock model replied |
| --- | --- |
| remind me to write an article tonight 10 (as a voice assistant) | I'm glad you're interested in writing an article tonight. I'll be happy to help you with that. |
| remind me to write an article tonight 10 (asked for XML) | 10. I'm glad you're interested in writing an article tonight. I'll start by sharing some of the most recent research on the impact of climate change on the Arctic… |

There was no reminder, no time, nothing. A model this small just chats, or rambles. It also gets facts wrong. Asked for the height of Everest, it stated a figure, contradicted itself, and invented a mountain in China. It sometimes echoed the wake word back as "Jumbo jumbo jumbo jumbo".

## The fix: teach it one job

Instead of a bigger model, I fine-tuned the small one for a single task: turn a spoken sentence into one small piece of XML.

The same phone, prompt, and sentences gave a very different result:

| You gave | Stock model | Fine-tuned |
| --- | --- | --- |
| remind me to write an article tonight 10 | 10. I'm glad you're interested in writing an article. | `<reminder><title>write an article</title><when>today 10:00 PM</when></reminder>` |
| tomorrow at 8:30 am turn off stove | repeats the sentence back | `<reminder><title>turn off stove</title><when>tomorrow 8:30 AM</when></reminder>` |
| i already finished clean ceiling fan | repeats the instructions it was given | `<done><item>clean ceiling fan</item></done>` |
| drop package at post office | You are Jumbo. You are not allowed to drop the package at the post office. | `<todo><item>drop package at post office</item></todo>` |

The system prompt is short. Here it is in full:

<CopyBlock label="System prompt" code={`You are Jumbo. Route the request to XML only: <reminder><title>...</title><when>...</when></reminder>, <todo><item>...</item></todo>, <done><item>...</item></done>, <note><text>...</text></note>, or <reply>...</reply>.`} />

It tells the model who it is, and that every answer must be one XML element from a fixed set:

- **Role:** "You are Jumbo." The assistant has one identity, so it does not describe itself or chat.
- **Output rule:** "Route the request to XML only." Nothing outside the XML is allowed.
- **Reminder:** `<reminder>` with a `<title>` for what to do and a `<when>` for the time.
- **To-do:** `<todo>` with an `<item>` for a task to add.
- **Done:** `<done>` with an `<item>` for a task to mark complete.
- **Note:** `<note>` with a `<text>` for anything worth keeping.
- **Fallback:** `<reply>` for a direct answer when none of the other formats fit.

Because the set is closed, the device only has to parse one small XML element per request.

The fine-tuned model got the reminder right, with the time. The fridge question, which is not a task at all, still comes out wrong.

On 20 held-out test prompts:

- Stock model: **3 / 20**
- Fine-tuned model: **19 / 20**

<PieCharts
  items={[
    {
      title: "Stock model",
      slices: [
        { label: "Correct", value: 3, tone: "mid" },
        { label: "Wrong", value: 17, tone: "light" },
      ],
    },
    {
      title: "Fine-tuned model",
      slices: [
        { label: "Correct", value: 19, tone: "accent" },
        { label: "Wrong", value: 1, tone: "light" },
      ],
    },
  ]}
/>

Treat that as a sign the model learned the format, not as a benchmark. The test was written by the same script as the training data, and notes are still its weakest intent.

## Token speed

The assistant reaches roughly 13-14 tokens per second, including end-to-end voice input and output handling.

| Configuration | Tokens/s | First token |
| --- | ---: | ---: |
| 1 thread, model alone | 4.9 | 7.3 s |
| 2 threads, model alone | 8.9 | 3.7 s |
| 3 threads, model alone | 12.3 | 2.5 s |
| 4 threads, model alone | 14.6 | 1.9 s |
| 3 threads + 1 thread for the voice | 12.5 | 2 s |

<BarChart
  title="Tokens per second by thread count"
  rows={[
    { label: "1 thread", value: 4.9, display: "4.9" },
    { label: "2 threads", value: 8.9, display: "8.9" },
    { label: "3 threads", value: 12.3, display: "12.3" },
    { label: "4 threads", value: 14.6, display: "14.6" },
    { label: "3 threads + voice thread", value: 12.5, display: "12.5", active: true },
  ]}
  note="Higher is better. The last row keeps one thread free for the voice."
/>

The fine-tuned model is on Hugging Face, with a one-line command to run it: [jumbo-smollm2-135m](https://huggingface.co/yogendramanawat/jumbo-smollm2-135m).

## The voice was the other problem

I tried Piper and Supertonic, both strong small TTS models by current standards. On this phone, Piper produced speech at 2.3x slower than real time, and Supertonic at 4.9x slower. Three seconds of audio took 7 to 15 seconds to synthesize.

| Engine | CPU seconds per second of speech (lower is better) |
| --- | ---: |
| Neural TTS (Supertonic int8) | 4.92x |
| Neural TTS (Piper, full precision) | 2.28x |
| Neural TTS (Piper int8) | 3.93x |
| SVOX Pico (2012 formant) | 0.04x (25x faster than real time) |

<BarChart
  title="CPU seconds per second of speech"
  note="Lower is better. Anything above 1.0 is slower than real time."
  rows={[
    { label: "Supertonic int8", value: 4.92, display: "4.92x" },
    { label: "Piper, full precision", value: 2.28, display: "2.28x" },
    { label: "Piper int8", value: 3.93, display: "3.93x" },
    { label: "SVOX Pico (2012 formant)", value: 0.04, display: "0.04x", active: true },
  ]}
/>

The fix was to go backwards. SVOX Pico is a formant synthesizer from the Android 2.x era: 278 KB of C code and 1.4 MB of voice data. It produces 6.7 seconds of speech in 0.27 seconds, about 25 times faster than real time. It sounds like 2012, but it starts instantly. Because it renders faster than it plays, sentences can be piped into one continuous audio stream with no gaps.

A few more things the old phone did not make easy:

- Android 5.1 refused to load the modern ONNX Runtime, so I patched its ELF headers by hand.
- With the loudspeaker dead, the assistant speaks into the earpiece, with a speech-band boost and a soft limiter.
- Any beep gets picked up by the microphone, so "I heard you" is a 70 ms vibration instead.

## The numbers

| Measurement | Result |
| --- | --- |
| Speech-to-text speed | 0.57-0.69x real time (faster than you speak) |
| Speech-to-text accuracy | 6 of 6 test questions transcribed exactly |
| Model load time | 32 s for the recognizer, once at start-up |
| Wake word, 24 "jumbo" clips (8 synthetic voices) | 19 detected |
| Wake word, 18 look-alikes ("gumbo", "jumper", "number", "hello world") | 0 false positives |
| Always-on cost, quiet room | 2-3% of one core |
| Time from end of question to first spoken word | 1.5-3.5 s |

<StackedBars
  title="Wake word: does it respond to the right word only?"
  rows={[
    { label: "Saying \"jumbo\" (24 clips)", segments: [
        { label: "Woke up", value: 19, tone: "accent" },
        { label: "Missed", value: 5, tone: "light" },
    ] },
    { label: "Similar words like \"gumbo\" (18 clips)", segments: [
        { label: "Ignored", value: 18, tone: "accent" },
        { label: "False wake-ups", value: 0, tone: "light" },
    ] },
  ]}
/>

## Takeaways

- I wanted a voice assistant on a phone I already had, and the stock model could not set a reminder. So I trained a small model for one job, and it handled the reminders.
- The voice came from the same kind of trade-off: the modern voices were too slow on this phone, so I used an old one that starts instantly.
- An old phone can still do useful work if the job is small and everything runs on the device.
