Enable Speech to Text in Linux with This Simple App
In this article
Yes, you can enable speech-to-text on Linux using a free, open-source app called Speech Note (available via Flatpak or Snap). It works offline, supports multiple languages, and lets you dictate into any text field. This guide walks you through installing and using it.
What You'll Need
- A Linux distribution (Ubuntu, Fedora, Debian, etc.) with internet access for installation.
- Flatpak or Snap support enabled on your system (most modern distros have one or both).
- A working microphone (built-in or external).
- Optional: A text editor or any app where you want to insert dictated text.
Step-by-Step
- Install Speech Note – Open your terminal and run one of the following commands, depending on which package system you prefer:
- If you use Flatpak:
flatpak install flathub com.github.melchips.SpeechNote - If you use Snap:
sudo snap install speech-note
sudo apt install flatpakon Ubuntu). - If you use Flatpak:
- Launch the App – Find Speech Note in your application menu, or run
flatpak run com.github.melchips.SpeechNote(orspeech-notefor Snap) in the terminal. - Choose Your Language – In the app's main window, look for a language dropdown (usually at the top). Select your language (e.g., English, Spanish, French). If your language isn't listed, you may need to install a speech recognition model – see the FAQ below.
- Configure the Microphone – Click the microphone icon (or the settings gear) and ensure the correct input device is selected. If you have multiple microphones, pick the one you intend to use. Test by speaking – the volume meter should react.
- Start Dictating – Click the red microphone button to start listening. Speak clearly and naturally. The app will convert your speech to text in real-time in its text area.
- Copy or Insert Text – Once you're done, highlight the text and copy it (Ctrl+C), then paste it into any application (Ctrl+V). Alternatively, use the "Insert" button in the app to automatically paste the text into the last focused window (this works on X11; on Wayland it may require additional permissions).
- Stop Listening – Click the microphone button again to stop. The app saves your session automatically.
Common Mistakes
- Not installing the language model – Speech Note uses open-source models (like Vosk). If you pick a language that isn't downloaded yet, it will prompt you to download it. Skipping this step means no recognition.
- Using the wrong microphone – If you have multiple input devices, the app might default to the wrong one. Always check the input device in the settings.
- Speaking too fast or too quietly – The recognizer works best with clear, moderate-paced speech. Mumbling or rushing leads to errors.
- Expecting punctuation automatically – By default, Speech Note does not insert commas or periods. You can say "period" or "comma" to insert them, but only if the model supports it.
- Running on Wayland without proper permissions – Some Wayland compositors block global shortcuts or clipboard integration. If the "Insert" button doesn't work, use manual copy-paste.
Tips
- Use a headset – A headset microphone reduces background noise and improves accuracy.
- Train the model – Some models allow you to add custom words (like names or technical terms) via a vocabulary file. Check the app's documentation for details.
- Adjust the silence threshold – In the app's settings, you can set how long a pause should be considered the end of a sentence. Lower it for faster response, higher for longer pauses.
- Use keyboard shortcuts – Speech Note supports global hotkeys (e.g., Ctrl+Alt+S to start/stop listening). Set them in the app's preferences to speed up your workflow.
- Keep the app updated – Speech Note is actively developed. Update via Flatpak (
flatpak update) or Snap (sudo snap refresh) to get improvements and new languages.
Troubleshooting
If dictation isn't working, try these in order:
- Restart the app – Close and reopen Speech Note. This often fixes temporary glitches.
- Check microphone permissions – On some systems, the app needs permission to access the mic. In your system settings (e.g., Settings > Privacy > Microphone), ensure Speech Note is allowed.
- Verify the microphone works elsewhere – Test with another app (like a voice recorder) to confirm the mic itself is functional.
- Reinstall the language model – In Speech Note's settings, go to "Models" and remove the language model, then re-download it. Corrupted downloads can cause silent failures.
- Update the app – Run
flatpak updateorsudo snap refreshto get the latest version. Bugs are often fixed quickly. - Try a different model – If you're using a large model and it's slow or inaccurate, switch to a smaller one (e.g., "vosk-model-small-en-us-0.15") for better performance on modest hardware.
- Check system audio settings – Ensure the microphone isn't muted or set to zero volume in your system's sound settings.
Frequently Asked Questions
Does Speech Note work offline?
Yes, once the language model is downloaded, recognition runs entirely on your device. No internet connection is needed.
Which languages are supported?
Speech Note supports many languages, including English, Spanish, French, German, Italian, Portuguese, Russian, and more. The exact list depends on the available Vosk models. You can see the full list in the app's model download screen.
Can I use it with any application?
Yes, you can dictate into Speech Note and then copy the text to any app. The "Insert" button works with most X11 apps, but on Wayland you may need to paste manually.
Is there a way to add custom words or names?
Yes, Speech Note allows you to create a custom vocabulary file (a plain text list of words). You can load it in the app's settings to improve recognition of specialized terms.
Does it work with a Bluetooth microphone?
Yes, as long as the Bluetooth device is properly paired and selected as the input device in the app's settings. Bluetooth mics can have higher latency, so a wired mic is recommended for real-time dictation.
Is Speech Note available for other operating systems?
It's primarily developed for Linux, but you can also run it on Windows and macOS via Flatpak or Snap with some extra setup. This guide focuses on Linux, which is the primary target.