287 stories
·
1 follower

Quoth: A Local AI Speech to Text Tool for Linux That Picks Your Hardware

1 Share
Quoth local I speech to text tool

I keep testing voice typing tools on Linux, and most of them do the job. The annoying part is figuring out which model your computer can actually handle, and whether it should run on the CPU, the GPU or the NPU.

Quoth does that part for you. It's a new voice dictation app made exclsuively for Linux. It runs Whisper models locally, and it benchmarks your hardware to decide what runs where.

I tried it on my Ubuntu with GNOME and I am sharing my experience in this article. I have also recorded it in video format, but there is construction work going on in the neighborhood, so the voiceover recording is postponed. Hopefully, I will share the video in a few days. For now, read and enjoy 😄

Quoth website homepage

What is Quoth?

Quoth is a local AI, speech to text tool. You press a key, you speak, and your words get typed wherever your mouse cursor is. That could be a text editor, a browser, a chat app or even the terminal (although command typing is more miss than hit).

Everything is transcribed on your own machine with whisper.cpp. There's no need and scope for account creation. You can choose to share crash reports with dev, if you want to. It's disabled by default. Quoth says the reports never contain your audio or dictated text.

Here's a quick summary of what Quoth offers:

  • Four Whisper models: Tiny, Base, Small and Turbo (large-v3-turbo)
  • Hardware acceleration on Vulkan GPUs (AMD, Intel and NVIDIA) and Intel NPUs through OpenVINO
  • A built-in benchmark that picks the fastest device (CPU, GPU or NPU) for each model
  • Tap to talk or hold to talk modes
  • Translation from 10+ languages into English (except with Turbo)
  • Addition themes like Nord, Catppuccin and Dracula

It's free and open source under the GPL-3.0 license, and it's built by a single developer, Samuel Bullard. Samuel gave me an early access to the tool for trying out. It is available to public now.

For now, you need Wayland, as X11 is not supported. And you need a 64-bit x86 machine, as there are no ARM builds yet.

Installing Quoth

Quoth offers a deb package (recommended for Ubuntu 24.04 and Pop!_OS 24.04), an APT repository if you want automatic updates, and a Flatpak bundle. Arch users can build it with the PKGBUILD in the repository. It's not on Flathub or the AUR yet.

The install page on the Quoth website has the exact commands for each method. I used the deb package on Ubuntu.

Quoth installation

One thing for GNOME users: Quoth lives in the top panel as a tray icon, so you need an AppIndicator extension. Ubuntu ships one by default. On vanilla GNOME, you'll have to install it yourself.

First run and setup

On the first run, Quoth downloads the Base model. It's only 82 MB, so this takes a few seconds or minutes, depending on the internet connection. Then it asks you to try your voice.

Quoth asks you to try dictation during the first run

I said "I love private, local and open source transcription" and it got every word right. Then I tried something it was less likely to know: "Everyone should subscribe to It's FOSS YouTube channel." It got itsfoss.com correct, but It's FOSS became "its Forest". That's acceptable for such a small model, I think.

The benchmark is the best part

This is perhaps the most unique feature. Quoth offers to benchmark the model on your NPU, GPU and CPU. After that, its automatic mode picks the fastest device on its own.

Quoth benchmark result during setup showing the GPU as the fastest device

On my laptop, Asus Zenbook, the GPU came out on top at 22 times real time. That means it can transcribe 22 seconds of speech in one second. I didn't have to guess anything, and that's what I like most about Quoth.

First hiccup: one key shortcut only

Quoth then asks you to choose a dictation key. The default is Pause, and I wanted something else, like Ctrl+Alt+Space.

That didn't work. When I pressed the combination, Quoth only registered the Control key. You can set a single key, not a combination.

Quoth registers only Ctrl when trying to set a key combination

Quoth does warn you that Ctrl is a modifier key, so dictation would start every time you use it in a shortcut. I went with the Home key instead, because I use it less than other keys. But a single key is never ideal, because that key still does its normal job in other apps.

Dictating with Quoth in everyday apps

Once set up, Quoth sits in the top panel. The icon turns red/orange while it's recording. Unlike Ubuntu's Myna, it doesn't show a pill or some other visual feedback that recording is in progress. It does have a small audio feedback when dictation starts.

In a text editor

I opened Gedit text editor, pressed Home, spoke, and pressed Home again. The text appeared at my cursor.

Text dictated with Quoth in a text editor

The Base model wrote "It's forz.com" this time. But the rest of the sentence was correct, even with my accent. Later, I tried the same kind of sentence with the Turbo model, and it got "itsfoss.com" right (the last line in the screenshot above).

In the terminal

Quoth does paste in the terminal. But "sudo apt update" became "sudo app update", twice.

Quoth dictation in the terminal turns apt into app

So I wouldn't use it for commands. To be fair, that's true for every dictation tool I've tried. Commands are short, and typing them is faster anyway, and safer too.

In chat and AI prompts

For casual chat on Discord, it works well as hort sentences come out right. I think chats are one of the best places to use the speech to text tools.

Message dictated with Quoth in Discord
Speech to text in Discord

Another place where I find dictation most useful is for creating long prompts for AI tools. I asked Lumo AI from Proton to go through my Proton Mail inbox (connected via Proton Bridge) and find software coverage requests in the past 24 hours. Quoth misheard Proton as "Praton" (did I speak that badly?), but Lumo understood the request anyway and correctly listed six requests.

A long prompt dictated into Lumo with Quoth
Used Quoth in Proton Lumo AI desktop app

Speaking a long prompt is much faster than typing it, and small errors don't matter much because the AI model works around them.

Second hiccup: the panel menu

Click the Quoth icon in the top panel and you get a small menu. It has Language and Model options, along with Copy last dictation, Settings, About and Quit.

Quoth panel menu with Language and Model options

Clicking on Language and Model could not open a submenu. I had to go to Settings to change either of them. This is a bug and I have notified Samuel about it. Hopefully he will take care of it in the next update.

Exploring the settings

Quoth interface is clean, uses libadwaita, and blends well with GNOME.

In the Dictation tab, you can switch between tap to start and stop, or hold while you talk. You also pick your model here.

Model Download size Translation to English
Tiny 44 MB Yes
Base 82 MB Yes
Small 264 MB Yes
Turbo 874 MB No
Quoth model settings with Tiny, Base, Small and Turbo

Even the largest model is under 1 GB. That's small compared to what other tools offer. Keep in mind that if you use the NPU, Quoth downloads an extra encoder for it. When I downloaded Turbo, the download was 1.3 GB (because of the encoder), and the NPU cache took 1.4 GB on disk afterwards.

You can also set the language you speak and turn on translation to English. The Feedback tab has recording sounds, the volume for them, and notifications while recording.

The Performance tab lets you force the NPU, GPU or CPU if you don't like the automatic choice, or run the benchmark again.

Quoth Performance settings with NPU, GPU and CPU options

There's also an option to keep the model loaded in memory. By default, it stays loaded for 300 seconds after your last dictation. That uses more RAM, but you get a faster response.

In the General tab, you can change the app skin. The themes change the colors of the settings window, and I quite like the Catppuccin one.

Quoth themes: Default, Catppuccin, Dracula and Nord

Running the full benchmark

After downloading Turbo, I ran the benchmark again from settings. This time it tested both models.

Quoth measuring Base and Turbo on NPU, GPU and CPU

For the Base model, my laptop managed 15 times real time on the NPU, 23 on the GPU and 5.6 on the CPU. Turbo took much longer to test.

The final results surprised me. Base is fastest on the GPU at 23 times real time. But Turbo is fastest on the NPU, at 4.8 times real time.

Benchmark results: Base fastest on GPU, Turbo fastest on NPU

I wouldn't have guessed that. And when I switched to Turbo, the automatic mode moved to the NPU on its own. This is exactly the kind of decision most of us would not make on our own.

Testing Turbo model

With Turbo selected, I switched to hold while you talk mode. It feels nicer for short dictations, because you don't have to remember to press the key a second time.

Turbo got every word I said, with proper punctuation. In the second test, I fumbled and repeated myself, and it cleaned that up too. It also wrote "itsfoss.com" correctly, which the Base model had missed.

I would say that if your hardware can run Turbo at a decent speed, use it. The accuracy difference is noticeable.

Translation is hit and miss

Quoth can translate what you say into English. The toggle is greyed out with Turbo, because Turbo can't translate. Tiny, Base and Small can.

Translate to English is disabled with the Turbo model

So I switched to Base, turned translation on, and tried three languages.

My French produced "Bonjo, Jean-Marc Alabichek, Azordry..." which is not a translation of anything. I'll blame my French accent here.

My Italian did better. It got my introduction right.

Translation results in the text editor

Then I tested my mother tongue Hindi. I said that I'm demonstrating an AI tool. Quoth translated it as "I am a artificial intelligence tool". Close, but wrong in an amusing way.

This is the Base model, so I didn't expect much. Small might do better but I am not going to use the translation feature for serious work.

What's missing

There's no dictation history in Quoth. You can only copy the last dictation from the panel menu. Hex keeps a history of your dictations for 7 days, which is handy when a paste goes to the wrong window.

Hex keeps a dictation history

To be fair, Ubuntu's Myna doesn't keep a history either, so Hex is the exception here.

The other gaps are the ones I already mentioned: single-key shortcuts, the broken panel menu items, and no floating indicator on GNOME.

Final thoughts

Text to speech is perhaps the simplest way to explore local AI on your system. And Quoth is a pretty decent tool for this tasl.

It's local, it's open source, the models are small, and it looks modern on GNOME. It automatically chooses between CPU, GPU and NPU.

It's version 0.1.0, so there are rough edges. The shortcut needs to accept key combinations, and the Language and Model options in the panel menu need fixing. But the dictation itself works well, and it's not every day that we get a polished app made only for Linux.

If you find it useful, consider supporting the developer. You can get Quoth from its website and find the source code on GitHub.

Which voice typing tool do you use on Linux? Let me know in the comments.

Read the whole story
jhunorss
4 hours ago
reply
Share this story
Delete

Your Linux Laptop Won't Suspend? Here's What You Can Do

1 Share
Linux laptop suspend issue

You close the lid and the laptop keeps running. Or you leave it alone for an hour and it never goes to sleep. Often nothing is broken. The cause is a program that asked systemd to hold off sleep.

That request is called an inhibitor lock. In this article, you'll list the locks on your system, read what each one blocks, tell a lock that stops a suspend from one that only delays it, and close the program that holds it.

Every command here works on any distribution that uses systemd. I ran them on an Ubuntu 26.04 desktop virtual machine with GNOME, which ships systemd 259.

What an inhibitor lock is

A program takes an inhibitor lock from systemd-logind, the systemd service that handles sleep, shutdown and the power keys. The lock says what the program wants to hold back, why, and for how long.

A backup tool might hold a lock while it copies files, so the laptop doesn't suspend halfway through. A video player might hold one so the screen doesn't go idle during a movie. When the program exits, its lock goes away with it.

The problem starts when a program holds a lock it no longer needs, or holds a stronger lock than it should.

List every inhibitor lock

The systemd-inhibit command lists the active locks. It needs no root.

systemd-inhibit --list

To have a lock to clear later in this article, I first started a stand-in backup job wrapped in systemd-inhibit. It holds a block lock on sleep and shows up as "Backup script". Everything else in the list below came from the system itself.

WHO                          UID  USER     PID  COMM            WHAT                                                     WHY                                                         MODE
Backup script                0    root     4952 systemd-inhibit sleep                                                    Copying files to the NAS                                    block
ModemManager                 0    root     1322 ModemManager    sleep                                                    ModemManager needs to reset devices                         delay
NetworkManager               0    root     1196 NetworkManager  sleep                                                    NetworkManager needs to turn off networks                   delay
Realtime Kit                 0    root     1497 rtkit-daemon    sleep                                                    Demote realtime scheduling and stop canary.                 delay
UPower                       0    root     2006 upowerd         sleep                                                    Pause device polling                                        delay
Unattended Upgrades Shutdown 0    root     1365 unattended-upgr shutdown                                                 Stop ongoing upgrades or perform upgrades before shutdown   delay
GNOME Shell                  1000 demouser 3538 gnome-shell     sleep                                                    GNOME needs to lock the screen                              delay
GNOME Shell                  1000 demouser 3538 gnome-shell     sleep                                                    GNOME needs to save screen time data                        delay
demouser                     1000 demouser 3683 gsd-power       handle-lid-switch                                        External monitor attached or configuration changed recently block
demouser                     1000 demouser 3682 gsd-media-keys  handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses                                   block
demouser                     1000 demouser 3682 gsd-media-keys  sleep                                                    GNOME handling keypresses                                   delay
demouser                     1000 demouser 3683 gsd-power       sleep                                                    GNOME needs to lock the screen                              delay

12 inhibitors listed.
systemd-inhibit --list showing the twelve inhibitor locks on a GNOME desktop

Here is what each column tells you.

  • WHO is the name the program gave itself.
  • PID and COMM are the process that holds the lock. You'll use the PID later to find and close it.
  • WHAT is what the lock holds back.
  • WHY is the reason the program gave.
  • MODE says whether the lock blocks the action or only delays it.

Read the WHAT column

The WHAT column tells you which problem a lock can cause. These are the values that matter for suspend and idle.

  • sleep covers suspend and hibernate. A block lock here stops the laptop from suspending at all.
  • idle stops the system from treating your session as idle. That blocks anything that waits for idle, such as automatic suspend after a timeout. This is the usual reason a laptop ignores its idle timer.
  • handle-lid-switch takes over the lid. While a program holds it, systemd doesn't act when you close the lid.
  • handle-power-key, handle-suspend-key and handle-hibernate-key do the same for those keys. Desktops often hold them because they handle the keys themselves, so these locks are normal.
  • shutdown covers power off and reboot.

A lock can list more than one value, separated by colons, such as sleep:shutdown.

Tell a block lock from a delay lock

The MODE column has two values.

A block lock stops the action for as long as the program holds it. Only a privileged user can override it. This is the kind that leaves a laptop awake.

A delay lock only holds the action back for a short time, so the program can finish something first. A chat app might save its state before the laptop sleeps. When the time runs out, systemd suspends anyway. The limit is InhibitDelayMaxSec= in /etc/systemd/logind.conf. The commented default in that file is 5 seconds.

Delay locks exist only for sleep and shutdown. When I tried to take one for idle, systemd refused it.

systemd-inhibit --what=idle --mode=delay --who=test --why=test true
Failed to inhibit: Delay inhibitors only supported for shutdown and sleep

Most of the list above is delay locks from GNOME, NetworkManager, ModemManager, Realtime Kit and UPower. They rarely cause trouble. When your laptop won't sleep, look for a block lock on sleep, idle or handle-lid-switch.

Show only the block locks

On a desktop, the list can run to a dozen lines. Add --mode=block to see only the locks that can stop an action.

systemd-inhibit --list --mode=block
WHO           UID  USER     PID  COMM            WHAT                                                     WHY                                                         MODE
Backup script 0    root     4952 systemd-inhibit sleep                                                    Copying files to the NAS                                    block
demouser      1000 demouser 3683 gsd-power       handle-lid-switch                                        External monitor attached or configuration changed recently block
demouser      1000 demouser 3682 gsd-media-keys  handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses                                   block

3 inhibitors listed.
systemd-inhibit --list --mode=block showing three block locks

Here is what each of the three does.

Backup script is the stand-in job. It holds a block lock on sleep, so the laptop can't suspend while it runs.

gsd-power is GNOME's power manager. It holds a block lock on handle-lid-switch. Its reason reads "External monitor attached or configuration changed recently". GNOME takes this lock while an external monitor is attached and for a short time after the display setup changes, so the laptop keeps running when you close the lid. If your laptop stays on when you close the lid, check for this lock first.

gsd-media-keys is GNOME's key handler. It blocks systemd from acting on the power, suspend and hibernate keys because GNOME handles those keys itself. This lock is normal on a GNOME desktop.

You might expect --what=sleep to narrow the list the same way. On systemd 259 it doesn't. systemd-inhibit --list --what=idle printed every lock on my test machine, including the ones on sleep and shutdown. The man page doesn't say that --list filters by WHAT, so read the WHAT column yourself.

Find and close the program that holds a block lock

Take the PID from the lock you want to clear. Look at the full command line of that process.

ps -p 4952 -o pid,comm,args
    PID COMMAND         COMMAND
   4952 systemd-inhibit systemd-inhibit --what=sleep --who=Backup script --why=Copying files to the NAS --mode=block sleep 300

In this case the lock comes from a script that wraps a job in systemd-inhibit, so the command line shows the job it's running. When COMM shows a normal application, such as a browser or a media player, that application holds the lock itself.

The cleanest fix is to close the program the way you normally would, or to change its own power setting. Some programs have their own setting that keeps the system awake. If the program is stuck, end it with its PID.

sudo kill 4952

List the locks again to confirm the lock is gone.

systemd-inhibit --list --mode=block
WHO      UID  USER     PID  COMM           WHAT                                                     WHY                                                         MODE
demouser 1000 demouser 3683 gsd-power      handle-lid-switch                                        External monitor attached or configuration changed recently block
demouser 1000 demouser 3682 gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses                                   block

2 inhibitors listed.
The Backup script lock is gone after its process was ended

If the lock belongs to a system service, stop that service with systemctl instead of killing the process, so it doesn't start again and take a new lock.

Check whether a lock is really the cause

Inhibitor locks only apply when a suspend goes through systemd. That covers systemctl suspend, the suspend option in your desktop's menu, the lid and the idle timer.

To find out whether a lock is what keeps your laptop awake, suspend once with the lock checks turned off.

sudo systemctl suspend --check-inhibitors=no

If the laptop suspends now, a lock was the cause, and the steps above will find it. If it still doesn't suspend, the cause is outside systemd's locks. The kernel log from the failed attempt is the next place to look.

Conclusion

When a Linux laptop refuses to sleep, start with systemd-inhibit --list. Look for a block lock on sleep, idle or handle-lid-switch, find its process from the PID, and close that program or change its power setting. A delay lock only holds the suspend for a few seconds and is rarely the problem.

This is just one of the many systemd tools you can use for troubleshooting your Linux system.

Next time your laptop stays awake with the lid closed, run the list before you start digging through power settings.

✍️
Christopher Smith has worked in IT operations for 15 years, more than ten of them in enterprise endpoint management. He builds ET Ducky, a remote monitoring and management platform for Windows and Linux.
Read the whole story
jhunorss
5 hours ago
reply
Share this story
Delete

Fotos zu ASCII Art

1 Share

Kleiner Snack für zwischendurch: TypeArt macht aus ganz normalen Fotos hübsche ASCII-Grafiken. Keine Ahnung, wer das unbedingt brauchen könnte, geil ist’s trotzdem.

(via Zwentner)
Read the whole story
jhunorss
7 days ago
reply
Share this story
Delete

Hi

1 Comment


(Direktlink, via MeFi)

Read the whole story
jhunorss
7 days ago
reply
Did not know bill wurtz until now.
Share this story
Delete

Montag

1 Share
Read the whole story
jhunorss
8 days ago
reply
Share this story
Delete

Checking Module Boundaries in a Java Monolith

1 Share
Use an ArchUnit test to check a Java module boundary, examine a violation and move the dependency behind the module's API.
Read the whole story
jhunorss
8 days ago
reply
Share this story
Delete
Next Page of Stories