11-20-2023, 06:28 PM | #1 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Read-aloud on Linux: Pied solution
Running 6.28.1 (and prior) on Ubuntu 23.10 (and prior) I was never able to get the text to speech working well in the Viewer. It sort of worked, but was just about unintelligible. I spent hours on it and finally gave up.
Today I saw a post for Pied, a solution to install Piper and get it working with Speech Dispatcher. I gave it a try, and now the Viewer Read-aloud feature works perfectly for me. And I got several very pleasant voices. (Note, this is Beta, but I have had no problems.) If other Linux users want to try it: https://pied.mikeasoft.com and installation at https://snapcraft.io/pied The author is on Mastodon: @mikesheldon@octodon.social Last edited by retiredbiker; 11-20-2023 at 06:31 PM. |
11-24-2023, 09:03 PM | #2 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2017
Device: Dell XPS laptop with Ubuntu Linux, Android tablets and smartphones
|
Thanks for sharing this experience. I too have been unable to get speech-dispatcher to work despite trying on multiple previous versions of Calibre. These days I'm using a Calibre 7.1 via flatpak on Ubuntu 20.04 and don't believe there is a way to install speech-dispatcher given the sandboxed nature of flatpak. The only ppa I found for Calibre on Ubuntu ( 20.04 & 22.04 ) seems to have Calibre 5.11.
|
11-25-2023, 12:35 PM | #3 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Why use flatpak for Calibre? Anything other than the binary install provided by Kovid has proven to be buggy or lacking something over the years.
(Any time I've messed with flatpak, some roadblock has happened, and I've gone back to apt install or even the "configure, make, make install" routine.) |
11-25-2023, 06:00 PM | #4 | |
the rook, bossing Never.
Posts: 12,352
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I only use flatpak if no deb.
If the author writes "Don't use packages with the Distros, use my script", then that's what I do. For years I downloaded the Windows version and now run the script for Linux on the Calibre web site. See what Kovid writes on the download page: https://calibre-ebook.com/download_linux Quote:
Code:
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin |
|
11-25-2023, 09:30 PM | #5 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2017
Device: Dell XPS laptop with Ubuntu Linux, Android tablets and smartphones
|
Quote:
|
|
11-26-2023, 12:18 AM | #6 |
creator of calibre
Posts: 44,539
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It will indeed be nice if Linux finally gets some good voices.
|
11-26-2023, 10:02 PM | #7 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
|
12-04-2023, 12:48 AM | #8 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2023
Device: none
|
Quote:
As a new bie, I have just one question, how to change the speed? caliber doesn't allow that. (or it's just not working) |
|
02-11-2024, 07:21 AM | #9 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Feb 2024
Device: none
|
Quote:
The permanent solution would be to create proper config files in your Code:
/home/.config/speech-dispatcher Code:
/etc/speech-dispatcher/ read: how to lower speed Piper as speech-dispatcher plugin module request: piper |
|
02-13-2024, 01:02 PM | #10 |
Junior Member
Posts: 9
Karma: 10
Join Date: Feb 2024
Device: none
|
This piper.conf works for me:
Code:
GenericExecuteSynth "if command -v sox > /dev/null; then\ PROCESS=\'sox -r 22050 -c 1 -b 16 -e signed-integer -t raw - -t wav - tempo $RATE pitch $PITCH norm\'; OUTPUT=\'$PLAY_COMMAND\';\ elif command -v paplay > /dev/null; then\ PROCESS=\'cat\'; OUTPUT=\'$PLAY_COMMAND --raw --channels 1 --rate 22050\';\ else\ PROCESS=\'cat\'; OUTPUT=\'aplay -t raw -c 1 -r 22050 -f S16_LE\';\ fi;\ GenericRateAdd 1 GenericPitchAdd 1 GenericVolumeAdd 1 GenericRateMultiply 1 GenericPitchMultiply 1000 GenericExecuteSynth "printf %s \'$DATA\' | piper --length_scale \`echo \'($RATE * 0.65) + 1\' \| bc\` --sentence_silence 1 --model ~/.local/share/piper/voices/$VOICE --output-raw | aplay -r 22050 -f S16_LE -t raw -" # only use medium quality voices to respect the 22050 rate for aplay in the command above. GenericCmdDependency "piper" GenericCmdDependency "aplay" GenericCmdDependency "printf" GenericCmdDependency "bc" GenericSoundIconFolder "/usr/share/sounds/sound-icons/" GenericPunctNone "" GenericPunctSome "--punct=\"()<>[]{}\"" GenericPunctMost "--punct=\"()[]{};:\"" GenericPunctAll "--punct" #GenericStripPunctChars "" GenericLanguage "en" "en_US" "utf-8" AddVoice "en" "MALE1" "en_US-libritts_r-medium.onnx -s 7" AddVoice "en" "FEMALE1" "en_US-amy-medium.onnx" DefaultVoice "en_US-libritts_r-medium.onnx -s 7" Code:
$RATE * 0.65 |
02-14-2024, 03:21 AM | #11 | |
Connoisseur
Posts: 57
Karma: 2378
Join Date: Jul 2018
Location: CA, USA.
Device: Kindle Paperwhite Signature Edition and Samsung 10.1 tablet
|
Quote:
https://snapcraft.io/pied Looking forward to checking this out, next time i am booted up in my linux distro at home, now in calibre in linux do you need any plugins for the text to speech installed for the viewer or does it just work with Pied? p.s. is the calibre gettings any HDR support for when kde plasma 6 makes its way to all the linux distros, so far I think KaOS-2024.01-x86_64 has plasma 6, and is stable, I don't know if it has the supported HDR for monitors yet feature, not sure about KDE neon yet, I know testing builds of KDE neon have plasma 6 but I don't know if its in its stable version yet, since both have snap I think installing Pied on either of them should be easy maybe. I have a have a M28U 4k display that supports 144 Hz with HDR included, its a gigabyte monitor, in linux when I use it with my 4k display besides the Fedora linux distro of kde plasma I find that I have to go to 1080 with Fedora's Gnome linux distro, both linux distro's like silverblue distro does not detect my monitor correctky, but its kinoite has a better setting for my 4k monitor so far it's been the best one I used with my older desktop and Linux, my newer desktop I still use windows with currently for my video games. https://fedoraproject.org/atomic-desktops/kinoite/ https://neon.kde.org/download https://kaosx.us/ -- plasma 6 is already on this linux distro if anyone wants to know that. I look at distrowatch for news about new linux distro features and stuff like that. https://distrowatch.com/ Last edited by KindleAZWorKFX; 02-17-2024 at 04:00 AM. Reason: asking if the Calibre Viewer for KDE Plasma 6 will get a new features like HDR when Plasma 6 has it, have a M28U 4k display |
|
02-18-2024, 05:20 AM | #12 | ||
Connoisseur
Posts: 57
Karma: 2378
Join Date: Jul 2018
Location: CA, USA.
Device: Kindle Paperwhite Signature Edition and Samsung 10.1 tablet
|
Quote:
Quote:
Last edited by KindleAZWorKFX; 02-18-2024 at 05:34 AM. Reason: added more detail, and KDE Neon Plasma 6 Specs from neofetch app in KDE |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Read-Aloud suggestion | ElectricOutcast | Viewer | 0 | 05-12-2023 11:05 PM |
Read Aloud in Japanese | magphil | Calibre | 1 | 02-07-2023 12:27 PM |
Center read text when auto scrolling and Read Aloud | Revolving Pixel | Viewer | 1 | 07-17-2021 10:04 PM |
Read Aloud support for Kobo | ralphiedee | Kobo Reader | 0 | 08-22-2012 11:23 AM |
KF8 and read-aloud | marcelo2605 | Kindle Fire | 5 | 04-12-2012 02:34 PM |