As of today, my computer can __nicely__ read aloud for me !

I'm lazy, i read slowly, so i don't like reading, i skip a lot of articles

I have been looking for a solution for several months

#Accessibility #A11y #Orca #WebBrowser #ZenBrowser #Firefox #Piper #Pied #SpeechAI #AI #Nix #NixOS

I use #ZenBrowser, since it's a fork of #Firefox, it has a [reader view](http://mzl.la/1cHarCP), which has a "Read aloud" mode

This allows you to read aloud the content of articles

This mode uses the [Web Speech API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API#speech_synthesis), which is a standard API for web browsers

Firefox Reader View for clutter-free web pages | Firefox Help

Firefox Reader View removes web page clutter to improve readability. Recent Firefox versions can also read pages out loud.

Sometimes, i want to test the #accessibility of content using a screen reader

I use #Linux, i use [Orca](https://orca.gnome.org) as a screen reader

Orca

Orca is a free, open source, flexible, and extensible screen reader for open desktops.

Orca

The Web Speech API and Orca both use [speech-dispatcher](https://github.com/brailcom/speechd) to generate synthetic voices (Text To Speech AKA #TTS)

Speech-dispatcher can use several voice generators, i used to use [espeak-ng](https://github.com/espeak-ng/espeak-ng), which was the less bad

GitHub - brailcom/speechd: Common high-level interface to speech synthesis

Common high-level interface to speech synthesis. Contribute to brailcom/speechd development by creating an account on GitHub.

GitHub

I played with espeak about 10 years ago, the voice was robotic and saturating

It was fun to play but unpleasant to use

Since then, there has been the boom of #BigData, Machine Learning and #AI

Now, espeak-ng seems to give me the same feeling as before

There are newer tools that generate voices than feel good, like [piper](https://github.com/rhasspy/piper), some voices are really great

You can [try listening to it here](https://rhasspy.github.io/piper-samples/)

GitHub - rhasspy/piper: A fast, local neural text to speech system

A fast, local neural text to speech system. Contribute to rhasspy/piper development by creating an account on GitHub.

GitHub

For several months, i have been looking for a solution to plug Piper into speech-dispatcher

Today, i have found it !

Thanks to @mike, all i had to do was simply use [Pied](https://pied.mikeasoft.com)

Pied

If you are using #NixOS, just use this configuration

```nix
{ pkgs, ... }:
{
services.orca.enable = true; # for screen reader
environment.systemPackages = [
pkgs.pied # only available on unstable at time of writing
]
}
```

Then :
1. execute Pied
2. select your language
3. download a voice
4. select a voice
5. enjoy
To summary :
@pinage404 Oh, wow, this is soo much better! Thank you.
@pinage404 cool, I've been looking for something like this for a while now.

@pinage404 for anyone following this in the future: I had to install two more packages
```
environment.systemPackages = [
pkgs.killall
pkgs.piper-ts
];
```
Pied assumes killall is installed, and pioer-ts is the actual text to speech needed. After adding those two I was able to get orca to work.

However, after these changes Firefox option to narrate in Reader mode (little headphones) disappears. Do you have any idea to why?

@reshi hum, i have the same behavior with Zen

I use to use the Read aloud mode

When i tested, i did it with the read aloud mode of Open WebUI, so i didn't noticed that the Read aloud mode from the Reader mode disappeared

It seems related to this issue https://github.com/Elleo/pied/issues/23

firefox build in tts doesn't show reading-icon anymore · Issue #23 · Elleo/pied

In firefox reader-mode speechdispatcher worked fine up to last week. Also after I've installed your wonderful pied (thank you!). But now it doesn't anymore, the icon for reading in firefox disappea...

GitHub

@reshi the issue mention this

> If you do not see the narrator icon, try setting narrate.filter-voices to false in about:config.

from the ArchWiki

It solves my issue

@pinage404 It worked! Thanks for the help :)

@reshi maybe we should add those two dependencies as dependencies of the pied package in nixpkgs ?

do you want to do it ?

@pinage404 sure thing, never contributed to nixpkgs before, but seems like a good place to start!
@reshi you can ask for help if you need =)
@pinage404 thank you! Already got it going, waiting for a review right now but I imagine with 25.05 so close people are busy, you can find it in the PR list by looking for "pied"
@pinage404 Glad you found it useful!