epubjs
Version:
Render ePub documents in the browser, across many devices
33 lines (25 loc) • 1.69 kB
HTML
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Tell It Like It Is: Text-to-Speech (TTS)</title>
<link rel="stylesheet" type="text/css" href="css/epub.css" />
<link rel="stylesheet" media="speech" href="css/synth.css" />
<link rel="pronunciation" href="lexicon/en.pls" type="application/pls+xml" hreflang="en" />
<link rel="pronunciation" href="lexicon/fr.pls" type="application/pls+xml" hreflang="fr" />
<meta name="dat-origPath" value="/html/body" /><link rel="prev" href="./ch03s03_10.html" /><link rel="next" href="./ch03s04_0.html" /></head><body>
<pre class="screen" data-origPath="/html/body/section/section[3]/pre[13]">@media speech {
.spell {
-epub-speak-as: spell-out
}
}</pre>
<p data-origPath="/html/body/section/section[3]/p[27]">As I noted earlier, reading systems will typically have their own defaults, and
separating your aural instructions will allow them to be ignored and/or turned
off on systems where they’re unwanted.</p>
<p data-origPath="/html/body/section/section[3]/p[28]">For completeness, you should also indicate the correct media type for the style
sheet when linking from your content document:</p>
<pre class="screen" data-origPath="/html/body/section/section[3]/pre[14]"><link rel="stylesheet" media="speech" href="synth.css" /></pre>
<p data-origPath="/html/body/section/section[3]/p[29]">And that covers the full range of synthetic speech enhancements. You now have a
whole arsenal at your disposal to create high-quality synthetic
speech.</p>
</body>
</html>