Local Speech-to-Text Explained: From Sound to Text on Your Own Computer

Learn how local speech-to-text works, explore the architecture behind NVIDIA's Parakeet Unified English 0.6B, and try offline dictation on your own computer using Handy.

Local Speech-to-Text Explained: From Sound to Text on Your Own Computer

Imagine you're jotting something down in your notepad. Instead of typing every sentence, you speak into your microphone and watch your words appear.

Voice typing like this often works by sending your audio to a server on the internet. A speech recognition model there turns it into text and sends the result back.

But what if your voice never had to leave your computer?

That's what local speech-to-text makes possible. You download a model once, and your computer does the work itself. Your words turn into text right there, even without an internet connection.

Here's a glimpse of what you'll be able to do by the end:

alt text

We'll start with the big picture of why turning speech into text is tricky, then see how models solve it, look inside one of them, and finish by running it on your own computer.

Dictation Without the Cloud

alt text
With cloud speech-to-text, your voice travels to another computer and back before you see your words. That means relying on your internet connection, someone else's server, their prices and their rules for your data.

Running the model on your own computer changes that:

  • Privacy: With a fully local app, your audio isn't sent anywhere. A private note or a work discussion stays with you.
  • Offline use: On a flight or with patchy Wi-Fi, you can keep dictating.
  • Cost: There's no fee per minute or per request, so you can dictate as much as you like.

Keep in mind that your own computer now does all the work. An older machine may be slower, and you can only do what your chosen model supports. Parakeet Unified, for example, only handles English.

Why Can't a Model Just Match Sounds to Letters?

At first, speech recognition might seem like a simple problem. We speak words, the computer hears the sounds, and it converts them into letters. But speech is not that straightforward.

Take the word "hello". You might say it quickly, slowly, loudly, or softly. Different people might pronounce it slightly differently. Yet, the written output should remain the same: hello.

This creates a challenge for speech recognition models. They need to recognise the word regardless of how it sounds.

There are a few reasons this is difficult:

1. Audio is much longer than text

alt text

When you speak, your microphone records thousands of tiny audio samples every second. At 16,000 samples per second, 3 seconds of speech gives you 48,000 samples. But the text might be just three words: "How are you?"

The model has to turn all that audio into a few words. This isn't simple, because people speak at different speeds and pause in between. The model must work out which part of the audio matches which part of the text.

2. Speech doesn't have clear boundaries

alt text

Written language has spaces between words. Audio doesn't.

When you say "How are you?", the words often run together, with no pause between them. The same happens inside a word. In "hello", each sound flows into the next. There are no clear markers telling the model where one letter ends and another begins, or even where one word ends and the next starts.

3. The same sound can have different interpretations

alt text

People speak with different accents and pronunciations, often with noise in the background. Some words also sound exactly alike, such as "right" and "write". A model cannot always identify a word from its sound alone. The surrounding words help: "Turn right" and "Write a letter" make the choice clear.

So, speech recognition isn't simply about matching sounds to letters. It's about learning how patterns in audio correspond to written language. Different model architectures approach this problem in different ways.

Three Ways to Solve It

Speech recognition models use different architectures to solve the problem of turning a long audio signal into a short sequence of text.

Three common approaches are:

  • Connectionist Temporal Classification (CTC)
  • Transducers
  • Attention-based Decoders.

Let's use the word "hello" to understand how each approach works.

CTC (Connectionist Temporal Classification)

Audio is long, but text is short. CTC handles this by splitting the audio into many small time steps and making a guess at each one.

At every step, the model predicts either a character or a special blank symbol (Ø), which means "no character here".

CTC decoding of the word

Imagine someone saying "hello". The model makes a guess for every tiny slice of audio. Since one sound can stretch across several slices, you often see the same letter twice:

h h Ø e e l Ø l o o

Here, Ø is a blank, meaning "no letter".

CTC cleans this up in two steps:

  1. Squash repeats into one. h h becomes h, e e becomes e, and o o becomes o. This gives h Ø e l Ø l o.
  2. Erase the blanks. What's left is hello.

But "hello" has two l's, so why didn't they get squashed? Because there is a blank between them, so they aren't next to each other. Without that blank, the two l's would merge and you'd get "helo".

CTC is simple and fast. Its weakness is that it doesn't look back at the letters it has already guessed when choosing the next one. It relies mainly on what it hears.

For example, "right" and "write" sound the same. Because CTC doesn't use its earlier output to guide each new guess, it can be more likely to pick the wrong spelling. A separate language model is often added to help with this.

Transducer

A Transducer works differently from CTC. When choosing the next letter, it looks at two things: what it hears and what it has already written.

How a Transducer works, using the word

It has three main parts:

  • Encoder: Listens to the audio and picks out useful features.
  • Prediction Network: Looks at the letters written so far.
  • Joint Network: Combines both and decides what to do next.

The model cuts the audio into tiny slices called audio steps. These are t1 to t6 in the diagram. At each step, the Joint Network can:

  • Write a letter, and keep listening to the same step.
  • Output a blank (Ø), which means "I'm done with this step, move to the next one".

Follow the "hello" example in the diagram:

Audio step What the model does Text so far
t1 Writes h, then outputs a blank to move on h
t2 Has nothing new to write, so only outputs a blank h
t3 Writes e, then moves on he
t4 Writes l, then moves on hel
t5 Writes another l, then moves on hell
t6 Writes o, then moves on hello

Each time a letter is written, it goes back to the Prediction Network. This is the long arrow in the diagram. So at t5, the model already knows it has written "hel".

How is this different from CTC?

CTC gives exactly one answer at each step and then merges repeated letters. A Transducer can write nothing, one letter or several letters at a step, and it doesn't merge them. That's why both l's in "hello" are kept.

Why is this useful?

A Transducer can start writing before you finish speaking. This is called streaming speech recognition. Live captions are a good example.

Attention Decoder

An attention-based model listens to a chunk of audio first, and then writes the text bit by bit.

How an attention decoder generates the word

It has two main parts:

  • Encoder: Listens to the whole chunk of audio and turns it into a form the model can work with (the "audio representations" in the diagram).
  • Decoder: Writes the text one token at a time. A token is a small unit of text, such as a word or part of a word.

What does "attention" mean?

When writing each token, the decoder doesn't treat all the audio equally. It focuses more on the parts that matter right now. The orange highlight in the diagram shows this.

Follow the "hello" example in the diagram:

Step What the decoder does Text so far
1 Starts, focuses on the beginning of the audio and writes h h
2 Looks at h and the audio, then writes e he
3 Writes l hel
4 Writes another l hell
5 Writes o hello
6 Writes <end>, which means "I'm finished" hello

At every step, the decoder uses both the audio and what it has already written. For simplicity, this example uses one letter per token.

A real example: Whisper

Whisper, made by OpenAI, works this way. It processes audio in chunks of up to 30 seconds and writes the text for each chunk.

How is this different from a Transducer?

A Transducer can write while you are still speaking. Whisper normally waits for a chunk of audio before it starts writing. This makes it less naturally suited to live captions, although extra techniques can adapt it for that.

Inside Parakeet

So far, we've seen three ways to turn speech into text: CTC, Transducers and attention decoders. Now let's look at a real model, Parakeet Unified English 0.6B from NVIDIA.

Parakeet is a Transducer model. In the Transducer section, we saw three parts: the Encoder, the Prediction Network and the Joint Network. Parakeet has the same three, grouped into two:

Part of Parakeet What it contains Its job
FastConformer Encoder The Encoder Listens to the audio
RNN-T Decoder The Prediction Network and Joint Network Writes the text

The names are new, but the idea is the same. FastConformer is the type of encoder Parakeet uses. RNN-T is short for Recurrent Neural Network Transducer.

So the flow is:

Audio → FastConformer Encoder → RNN-T Decoder → Text

Because it is built this way, Parakeet can transcribe a finished recording, or write text while you are still speaking.

Let's look at each part, starting with the encoder.

The FastConformer Encoder

The encoder is the listener. Its job is to take in the audio and pick out useful information for the decoder.

How the FastConformer encoder works

Step 1: Make the audio shorter

The audio is first split into small slices called frames. There are a lot of them, about 100 for every second of audio.

The encoder shrinks this sequence by 8 times, so 100 frames become about 13. This is called downsampling. Fewer frames means less work for the rest of the encoder.

Step 2: Understand the audio

Next, the model goes over the audio slices 24 times, one round after another. Each round is called a layer, and each one helps the model understand a little more.

In every layer, the model looks at the audio in two ways.

1. Look close: Convolution

Convolution looks at neighbouring slices through a small window

Each blue square is a slice of audio. The orange box is a small window that looks at only a few neighbouring slices at a time, to spot a short sound pattern. Then it slides along to the next ones.

It's like reading a few letters together to recognise part of a word.

For example, take the word "ship". The window looks at a few neighbouring slices and may notice the hissing "sh" sound. It then slides along to pick up the "i" sound, and then the "p".

2. Look wide: Self-attention

Self-attention connects the current slice with near and far slices

Here, the model takes one slice (the current slice) and compares it with other slices. The short arcs reach its neighbours. The long arcs reach slices much earlier or later in the audio.

It's like using the rest of a sentence to understand one word.

What comes out?

The result is called audio representations: a set of numbers describing what the model heard. These go to the RNN-T decoder, which turns them into text.

The RNN-T Decoder

The decoder is the writer. The encoder listens to the audio, and the decoder turns what it heard into text.

How the RNN-T decoder writes the word

This works just like the Transducer we saw earlier. It has two parts:

  • Prediction Network: Remembers what has been written so far.
  • Joint Network: Looks at that and at the encoder's output, then decides what to do.

The Joint Network has two choices:

  • Write a token (a small piece of text), and stay on the same audio step.
  • Output a blank (Ø), and move to the next audio step.

Follow the "hello" example in the diagram:

  1. At t1, it writes h, then outputs a blank to move on.
  2. At t2, there is nothing new to write, so it only outputs a blank.
  3. From t3 to t6, it writes e, l, l and o, one at each step, followed by a blank each time.

Each new letter is passed back to the Prediction Network, so the decoder knows what it has already written.

For simplicity, this example uses one letter per token. Real tokens can also be longer pieces of text.

In streaming mode, the decoder doesn't wait for the whole recording. It writes text as each small chunk of audio is processed, so words can appear while you are still speaking.

Why It Can Be Fast

Parakeet's speed comes from both the listener (encoder) and the writer (decoder).

1. There is less audio to work through

As we saw earlier, the encoder shrinks the audio sequence by 8 times. About 100 frames become 13, so the 24 layers have much less work to do.

2. It can write while you speak

In streaming mode, Parakeet doesn't wait for you to finish. It takes in a small chunk of audio, writes the text for it, and moves on to the next.

One model, two modes

  • Offline: The recording is already complete, so the model can use more of the surrounding audio to understand each part. This suits saved recordings.
  • Streaming: The model works with a chunk and only a limited amount of audio around it. This suits live captions.

In streaming, you have to choose between speed and accuracy:

alt text

  • Wait less: Words appear sooner, but the model has fewer clues, so it may make more mistakes.
  • Wait more: The model hears more before writing, so it can be more accurate, but words appear later.

This waiting time is called latency. With NVIDIA's fastest setting, it can be as low as 160 milliseconds, which is less than a fifth of a second. It may feel slower depending on your computer.

Fitting the Model on a Computer

Parakeet Unified English 0.6B has about 600 million parameters, the numbers it learned during training. Storing all of them in full detail takes about 2.3 GB. So how can we make it lighter?

Quantization

Quantization stores these numbers with less precision, so each one takes up less space. It's a bit like writing 3.14 instead of 3.14159265.

The version I'm using takes up just 697 MB, less than a third of the full-detail size.

Do you need a graphics card?

No. Parakeet can run on your computer's main processor, the CPU. A compatible graphics processor, or GPU, can make it faster, but it isn't required.

This also means speech-to-text can happen entirely on your computer. With a fully local app, it works without the internet once downloaded, and your audio never has to leave your computer.

Trying It With Handy

Now that we know how Parakeet works, let's try it ourselves.

A model can't do much on its own. We need an app that records our voice, passes the audio to the model and shows us the text. We'll use Handy, a free, open-source dictation app for Windows, macOS and Linux. It runs speech recognition on your own computer.

Setting It Up

  1. Download Handy from handy.computer or its releases page, and install it.
  2. Open Handy and allow the permissions it asks for, such as microphone access.
  3. Go to Settings → Models.
  4. Find Parakeet Unified English 0.6B and download it.
    alt text
  5. Once the download finishes, select it.

Your First Dictation

Now for the fun part: let's speak and watch the words appear.

  1. Pick a spot. Open a notepad (or anything you can type in) and click where you want the text to go.

  2. Start talking. Press Handy's keyboard shortcut and speak naturally. Not sure what the shortcut is? You can check or change it in Settings.

    Handy's keyboard shortcut setting

  3. Finish up. Release the keys, or press the shortcut again, depending on your shortcut mode. Handy turns your speech into text and pastes it right at your cursor.

    Dictating into a notepad with Handy

That's it! You've just turned speech into text on your own computer. Try a longer sentence, a technical word or a bit of background noise, and see how well it does.

Conclusion

A few seconds of speech is thousands of audio samples, with no clear gaps to show where words begin or end. Yet your computer can turn it into a sentence, without sending your voice anywhere.

It won't get everything right. Names, unusual words and noisy rooms can still trip it up, and the model we used only handles English.

The best way to find out if it works for you is to try it. Next time you're about to type a quick note, say it instead.