View Single Post
Old 04-25-2023, 12:57 AM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Lghtnup View Post
Is there a way to code, [...] phonetic pronunciation into and epub file?
See the discussion in:

There's 2 methods:
  • CSS Speech
  • SSML

but, like Kovid said, the support on actual devices is effectively nonexistent.

Quote:
Originally Posted by Lghtnup View Post
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.
Within the past few years, there's been some work on more specialized tools for audiobook generation.

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:
Originally Posted by nqk View Post
I wonder if that is wrapped in <span lang="abc"> tag, will the engine read it the "right" way?
Yes, some TTS engines already support multi-language markup. (Most won't though, but some do!)

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 1st "tacos" would be spoken in English.

The 2nd "tacos" would be spoken in Spanish.

Last edited by Tex2002ans; 04-25-2023 at 01:29 AM.
Tex2002ans is offline   Reply With Quote