Debian Codegraph @

docs/markup.md

raw symbols SCIP
1 # SSML and HTML Support
2
3 - [SSML (Speech Synthesis Markup Language)](#ssml-speech-synthesis-markup-language)
4 - [speak](#speak)
5 - [voice](#voice)
6 - [prosody](#prosody)
7 - [say-as](#say-as)
8 - [mark](#mark)
9 - [s](#s)
10 - [p](#p)
11 - [sub](#sub)
12 - [tts:style](#ttsstyle)
13 - [audio](#audio)
14 - [emphasis](#emphasis)
15 - [break](#break)
16 - [HTML](#html)
17 - [References](#references)
18 - [SSML](#ssml)
19 - [HTML](#html-1)
20
21 -----
22
23 ## SSML (Speech Synthesis Markup Language)
24
25 SSML consists of XML-like tags, for example: `Did you mean the <emphasis level="strong"><prosody pitch="75">green</prosody></emphasis> beans?`
26
27 The following markup tags and attributes are recognised:
28
29 ### speak
30
31 * xml:base (the value is just passed back as a parameter with the UriCallback() function)
32 * xml:lang
33
34 ### voice
35
36 * xml:lang
37 * name
38 * age
39 * variant
40 * gender
41
42 ### prosody
43
44 * rate (`x-slow`, `slow`, `medium`, `fast`, `x-fast` or a percentage such as `125%`)
45 * volume (`silent`, `x-soft`, `soft`, `medium`, `loud`, `x-loud`, `+1dB` or `-1dB`)
46 * pitch (a number, for example "75")
47 * range (`default`, `x-low`, `low`, `medium`, `high`, `x-high`)
48
49 ### say-as
50
51 * interpret-as="characters"
52 * interpret-as="characters" format="glyphs"
53 * interpret-as="tts:key"
54 * interpret-as="tts:char"
55 * interpret-as="tts:digits"
56
57 ### mark
58
59 * name
60
61 ### s
62
63 * xml:lang
64
65 ### p
66
67 * xml:lang
68
69 ### sub
70
71 * alias
72
73 ### tts:style
74
75 * field="punctuation" mode=none,all,some
76 * field="capital\_letters" mode=no,spelling,icon,pitch
77
78 ### audio
79
80 * src
81
82 ### emphasis
83
84 * level (`none`, `reduced`, `moderate`, `strong` or `x-strong`)
85
86 ### break
87
88 * strength
89 * time
90
91 ## HTML
92
93 eSpeak can speak HTML text directly, or text containing both SSML and HTML markup.
94 Any unrecognised tags are ignored.
95
96 The following tags cause a sentence break:
97
98 * `br`
99 * `dd`
100 * `li`
101 * `img`
102 * `td`
103
104 The following tags cause a paragraph break:
105
106 * `h1`
107 * `h2`
108 * `h3`
109 * `h4`
110 * `hr`
111
112 Text between the following tags is ignored:
113
114 * `script`
115 * `style`
116
117 ## References
118
119 ### SSML
120
121 1. [Speech Synthesis Markup Language (SSML) Version 1.0](https://www.w3.org/TR/2009/REC-speech-synthesis-20090303/).
122 W3C Recommendation, 3 March 2009. W3C.
123 1. [Speech Synthesis Markup Language (SSML) Version 1.1](http://www.w3.org/TR/2010/REC-speech-synthesis11-20100907/).
124 W3C Recommendation, 7 September 2010. W3C.
125 1. [SSML 1.0 say-as attribute values](http://www.w3.org/TR/2005/NOTE-ssml-sayas-20050526).
126 W3C NOTE, 26 May 2005. W3C.
127
128 ### HTML
129
130 1. [HTML 5.2](https://www.w3.org/TR/2017/REC-html52-20171214/).
131 W3C Recommendation, 14 December 2017. W3C.
132 1. [HTML Living Standard](https://html.spec.whatwg.org/multipage/).
133 Continually updated. WHATWG.