09-15-2024, 04:40 PM | #1 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
TTS in calibre v7.18
With the introduction of the new Piper speech engine in v7.18 my 'TTS to MP3' plugin no longer works. It fails on
Code:
from calibre_extensions.winsapi import ISpVoice |
09-15-2024, 10:42 PM | #2 |
creator of calibre
Posts: 44,422
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, the entire old TTS infrastructure is gone. No, there is currently no such method for piper but you can implement it yourself fairly easily, piper is a standalone executable bundled with calibre, you can run piper.exe --help to learn how to use it to convert text to speech.
You can also access the windows/macos/linux speech engines via the Qt Text to Speech classes (this is what calibre uses now for TTS with system speech engines). Finally I could add a method to the new TTSEngine classes in calibre to generate wav output, however, since calibre itself has no use for this, it's not a priority for me. |
Advert | |
|
09-17-2024, 08:42 AM | #3 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Thanks for the info. After a brief look at commandline piper.exe it does appear that creating a WAV file from a text file may be more straightforward than reading aloud from the same text file. Whether that would extend to mass creation of WAVs from a whole book, or even multiple books, simultaneously, is hard to predict without testing.
I think it's possible my plugin *could* be made to work with Piper instead of winsapi but unfortunately it would need a lot of changes and a time commitment my current home situation won't allow. I don't think the creation of an "official" Piper method to generate WAV would significantly reduce the effort required. I've already suggested, in the main plugin thread, that anyone who wants to continue using the existing plugin should install a copy of calibre Portable <= v7.17, independent of their main calibre. It should continue to work in the short term unless/until MS remove the old SAPI speech engine in a Windows update. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[HELP] Calibre TTS services... | momoe | Viewer | 5 | 08-13-2022 06:05 PM |
How to install "incompatible" apps to Boox M96+T68. IVONA TTS, ACAPELA TTS etc. | Booxtor | Onyx Boox | 24 | 04-19-2017 05:08 AM |
TTS Calibre Reader | jmesar | Calibre | 0 | 08-13-2013 06:14 PM |
GUI Launcher greyed out when TTS is on and does not come back when TTS is off | jmseight | Kindle Developer's Corner | 4 | 07-28-2012 02:48 AM |
Calibre? Reenable TTS? | Anarel | Calibre | 0 | 05-10-2010 09:47 PM |