npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

voice-type-cli

v2.1.0

Published

System-wide Speech To Text dictation tool

Downloads

349

Readme

Voice Type

System-wide speech-to-text for Linux. Press a key, speak, and text appears wherever your cursor is.

Runs Chrome's Web Speech API quietly in the background — no local models, no paid service, no startup delay. Works in editors, terminals, browsers, and most other apps. If the transcript changes mid-sentence, Voice Type backspaces and retypes the corrected text.

Requirements: Linux with a desktop environment, a working microphone, and Chrome or Chromium installed system-wide.


Installation

Flatpak

Installs system dependencies automatically. Requires flatpak-builder.

git clone https://github.com/eriknovikov/voice-type.git
cd voice-type
chmod +x ./flatpak/build.sh && ./flatpak/build.sh

npm

npm install --global voice-type-cli@latest

System dependencies (npm only)

| Package | Purpose | Install | |---|---|---| | dotool | Types text into the system. | See dotool docs | paplay | Audio notifications | Usually pre-installed. If missing: pulseaudio-utils (Ubuntu/Debian/Fedora) or libpulse (Arch) |

Sound Assets (optional)

To use sound notifications (--sound flag) when transcription starts or stops:

sudo mkdir -p /usr/local/share/voice-type/sounds
curl -L -o /usr/local/share/voice-type/sounds/start.oga https://github.com/eriknovikov/voice-type/raw/main/assets/sounds/start.oga
curl -L -o /usr/local/share/voice-type/sounds/stop.oga https://github.com/eriknovikov/voice-type/raw/main/assets/sounds/stop.oga

Browser symlink (required)

Voice Type expects browser binaries named google-chrome and chromium respectively. If your browser uses a different name (e.g. google-chrome-stable), add a symlink:

sudo ln -s /usr/bin/google-chrome-stable /usr/bin/google-chrome #similar for chromium

Usage

You start the daemon once (F9). It sits idle in the background without consuming resources nor listening through the mic. When you want to dictate something, press F10, and whatever you speak gets transcribed into the currently active window in the system. Once you are done, press F10 again to stop listening. If for some reason you no longer want the daemon running idly in the background, kill it via F9.

Options

| Flag | Description | Default | |---|---|---| | --lang, -l | Language for recognition, supported languages | en-US | | --browser, -b | Browser to use | chrome or chromium | | --browser_path, -p | Path for custom installs (e.g. google-chrome-beta) | - | | --sound, -s | Enable sound notifications | off | | --text | Enable text notifications | off | | --detached, -d | Run in detached mode | - |


Keyboard Shortcuts (recommended)

Bind these in your desktop environment's shortcut settings. If you're in GNOME, go to Settings -> Keyboard -> View and Customize Shortcuts.

| Key | Action | Command | |---|---|---| | F9 | Toggle daemon | sh -c "curl http://127.0.0.1:3232/exit 2>/dev/null \|\| START_COMMAND" | | F10 | Toggle dictation | curl http://127.0.0.1:3232/toggle |

npm

Replace START_COMMAND with the output of echo "$(which node) $(which voice-type)". For example, in my case, START_COMMAND would be /home/nkv/.nvm/versions/node/v25.9.0/bin/node /home/nkv/.nvm/versions/node/v25.9.0/bin/voice-type

Flatpak

Replace START_COMMAND with flatpak run org.github.eriknovikov.VoiceType


Uninstalling

| Installation | Command | |---|---| | Flatpak | flatpak uninstall org.github.eriknovikov.VoiceType && flatpak uninstall --unused | | npm | npm uninstall --global voice-type-cli |


Troubleshooting

dotool issuesCheck the docs. After its installation, make sure that you run sudo udevadm control --reload && sudo udevadm trigger. Also, dotool requires that your user is in the input group. Specifically, if your user does not appear in the output of running groups, make sure to add it via sudo usermod -aG input $USER. You have to reboot for the changes to take effect.

voice-type: command not found — Add /usr/local/bin to your PATH in ~/.bashrc or ~/.zshrc:

export PATH="$PATH:/usr/local/bin"

npm installation works properly via cli but not via shortcut: GNOME (or Desktop Environments in general) don't know about your PATH defined in .bashrc or .zshrc; to fix it, make sure you are sending the full paths in your system of both node and voice-type. So, the command should be the result of running this $(which node) $(which voice-type), and CANNOT be just voice-type.

Microphone not detected or no results in dictation — Check your system audio settings. Make sure you have configured your mic as the system's default mic. In most distros, you should use pavucontrol(in your package manager).


Contributing

Voice Type is totally free and open source. Bug reports, fixes, documentation improvements, and feature suggestions are all welcome. The codebase entry point is src/index.ts. The HTTP server, CDP communication, and dotool integration are each fairly self-contained, so it's not hard to find your way around.

Open an issue first for anything non-trivial — good to align before putting work into a PR.

Final notes

You can read my blog about voice-type, or check INTERNALS.md to see in greater depth how voice-type works.