04-20-2023, 10:32 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2023
Device: none
|
Name pronunciation
Is there a way to code, perhaps in Python, phonetic pronunciation into and epub file? I'm working on a book with a character named Sethe (Seth-uh), and Calibre's reader just spells out the word with no attempt to pronounce it. I had Read&Write read it and it worked correctly, is there anything that can be done to help it?
|
04-20-2023, 10:46 AM | #2 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The calibre viewer's TTS engine just passes the book text to yhe operating system. There is no facility for pronunciation guides.
|
Advert | |
|
04-21-2023, 01:10 AM | #3 |
Fanatic
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
|
04-21-2023, 01:16 AM | #4 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No the engine supports only plain text not HTML. Some of them support SSML, but its spotty and doesnt work well.
|
04-25-2023, 12:57 AM | #5 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
There's 2 methods:
but, like Kovid said, the support on actual devices is effectively nonexistent. Quote:
You can feed a list of words + pronunciations, then regenerate the final audio files... but it's more something at the Amazon/Microsoft/Google paid Text-to-Speech level. I first found out about that in this podcast interview:
(He speaks about it ~20 mins in.) But to have pronunciations you can mark up in your EPUB files and have it work well, in the current day... no. Quote:
And, by marking your HTML languages properly TODAY, there's already lots of other advantages too! See my list of benefits: and how to mark the HTML lang + xml:lang: So if you used this HTML: Code:
<p>“I eat tacos?”</p> <p><span class="spanish" lang="es" xml:lang="es">“¿Como tacos?”</span></p> The 2nd "tacos" would be spoken in Spanish. Last edited by Tex2002ans; 04-25-2023 at 01:29 AM. |
|||
Advert | |
|
04-25-2023, 09:34 AM | #6 |
Guru
Posts: 930
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
The android app '@Voice Aloud Reader' lets you add corrections to your TTS engine: you can expand abbreviations (e.g.: Mme -> Madame), prevent pauses on abbreviations with a period, and correct mispronounced words by providing a more 'phonetic' alternative. Over the time I've added a lot of these, and most of it is perfect now, with a few exceptions popping up once in a while, which is promptly corrected with a new entry.
Last edited by thiago.eec; 04-25-2023 at 09:44 AM. Reason: info about pauses |
04-25-2023, 04:47 PM | #7 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Yeah, some readers may have a manual "pronunciation" override list too. I think that's a much better way to go compared to clogging up the code inside the books. (I think TTS would be WAY better handled at the OS/reader/browser level instead of baked in—see that 2021 linked thread for some more specifics.) - - - Side Note: Even since that 2021 thread, there's been enormous quality jumps in Text-to-Speech generation. A few new tools came out which are generational leaps above the stuff before. The more data it can process, the better it can figure out context... automatically handling cases like "Madame" vs. "Mme." (Abbreviation) vs. "MME" (Acronym) better. Speech-to-Text (SST) had huge jumps too. Before, you needed a ton of training data just for a specific language... then you needed to repeat that for Languages B, C, and D... Each language was in its own silo. Now, you mash them all together, and the network deduces patterns across nearby languages too. (So while you're training better Spanish data... Portuguese and French and Italian are all going along for the accuracy ride too!) SST is also auto-detecting Proper Nouns based on emphasis/speed of how the person is speaking + surrounding words. Even handling:
... and spelling/capitalizing them perfectly. - - - Wow, I looked at their site and it links to ~10 year old Android videos... lol. Is there any more recent screenshots and things showing off those specific options/functionality? |
|
04-25-2023, 08:44 PM | #8 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
As I recall, the pronunciation editing feature is supplied via also installing the FBReader TTS+ Plugin app (free). |
|
04-25-2023, 10:40 PM | #9 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Would you be able to take a few screenshots showing off the latest menus? (Like the pronunciation editor, etc.) |
|
04-26-2023, 09:48 AM | #10 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Disclaimer: I have no idea how "Ammar ibn Khairan of Aljais" is supposed to be pronounced, I used it merely for illustrative purposes. The Ivona Amy voice I use may have had it correct without me needing to change anything. A general comment on user interface, I don't think @VAR will win any designer award for beauty and style, but I have found it fairly straightforward to find what I need to get the job done. Then again, I am an old IT person (function beats style ). Last edited by jackie_w; 04-26-2023 at 09:51 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Audio for pronunciation in dictionary | nontrovoilnome | Onyx Boox | 1 | 11-04-2023 01:39 AM |
Kindle should have a talking (pronunciation) dictionary | Barty | Amazon Kindle | 7 | 08-29-2011 08:41 PM |
Pronunciation of foreign/unusual names in books | Ea | Reading Recommendations | 28 | 05-12-2011 02:47 PM |
Pronunciation? | bjones6416 | Calibre | 6 | 10-27-2010 05:36 AM |