Debian Codegraph @

docs/intonation.md

raw symbols SCIP
1 # Intonation
2
3 - [Clauses](#clauses)
4 - [Tune Definitions](#tune-definitions)
5 - [tune](#tune)
6 - [endtune](#endtune)
7 - [prehead](#prehead)
8 - [headenv](#headenv)
9 - [height](#height)
10 - [head](#head)
11 - [headextend](#headextend)
12 - [nucleus](#nucleus)
13 - [nucleus0](#nucleus0)
14 - [onset](#onset)
15 - [headlast](#headlast)
16
17 ----------
18
19 In eSpeak NG (eSpeak) standard intonation model, a "tune" is applied to each
20 clause depending on its punctuation. Other intonation models may be used
21 for some languages, such as tone languages.
22
23 Named tunes are defined in the text file `phsource/intonation`. This file
24 must be compiled for use by eSpeak by using:
25
26 espeak-ng --compile-intonations
27
28 ## Clauses
29
30 The tunes which are used for a language can be specified by using a
31 `tunes` statement in a voice file in `espeak-ng-data/voices`. e.g.:
32
33 tunes   s1  c1  q1  e1
34
35 It's parameters are four tune names which are used for clauses which end
36 in:
37
38 1. Full-stop.
39 2. Comma.
40 3. Question mark.
41 4. Exclamation mark.
42
43
44 A clause consists of the following parts:
45
46 1. __Pre-head__ are any unstressed syllables before the first stressed syllable.
47 1. __Head__ is the part from the first stressed syllable up to the last syllable before the nucleus.
48 1. __Nucleus__ is stressed syllable which is the focus of the clause. eSpeak chooses the last stressed syllable of the clause.
49 1. __Tail__ are the syllables after the nucleus.
50
51 ## Tune Definitions
52
53 Here is an example tune definition from the file `phsource/intonation`:
54
55 tune s1
56 prehead 46 57
57 headenv fall 16
58 head 4 80 55 -8 -5
59 headextend 0 63 38 13 0
60 nucleus fall 70 18 24 12
61 nucleus0 fall 64 8
62 endtune
63
64 ### tune
65
66 `tune <tune name>` Starts the definition of a tune. The `tune name` can be used in a `tunes` statements in voice files.
67
68 ### endtune
69
70 `endtune <tune name>` Ends the definition of a tune.
71
72 ### prehead
73
74 `prehead <start pitch> <end pitch>` Gives the pitch path for any series of unstressed
75 syllables before the first stressed syllable.
76
77 ### headenv
78
79 `headenv <envelope> <height>` Gives the pitch envelope which is used for stressed syllables in the head (before the nucleus), including `onset` and `headlast` syllables if these are specified.
80
81 ###height
82
83 `height` gives a pitch range for the envelope.
84
85 ### head
86
87 head <steps> <start pitch> <end pitch> <unstressed start> <unstressed end>
88
89 `start pitch` give a pitch path for the stressed syllables of the head.
90
91 `steps` is the maximum number of stressed syllables for which this applies. If
92 there are additional stressed syllables, then the `headextend` statement is used
93 for them.
94
95 `unstressed start` give a pitch path for unstressed syllables between two stressed
96 syllables. Their values are relative to the pitch of the previous stressed syllable.
97 Values are usually negative, meaning that the unstressed syllables have lower pitch
98 than the previous stressed syllable.
99
100 ### headextend
101
102 headextend <percentage list>
103
104 If the head contains more stressed syllables than is specified by `steps` is used.
105 It contains up to 8 numbers which are used repeatedly for the additional stressed
106 syllables. A value of 0 corresponds to the lower the `start pitch` values of the
107 `head` statement. 100 corresponds to the higher value.
108
109 Negative values and values greater than 100 are allowed.
110
111 ### nucleus
112
113 nucleus <envelope> <top pitch> <bottom pitch> <tail start> <tail end>
114
115 This gives the pitch envelope and pitch range of the last stressed syllable of
116 the clause. `tail start` and `tail end` give a pitch path for the unstressed
117 syllables which are after the last stressed syllable.
118
119 ### nucleus0
120
121 nucleus0 <envelope> <top pitch> <bottom pitch>
122
123 This is used instead of `nucleus` if there are no unstressed syllables after
124 the last stressed syllable. In this case, the pitch changes of the nucleus and
125 the tail and both included in the nucleus.
126
127 ### onset
128
129 onset <pitch> <unstressed start> <unstressed end>
130
131 This specifies the pitch for the first stressed syllable of the head. If the
132 `onset` statement is present, then the `head` statement used for the stressed
133 syllables after the first.
134
135 ### headlast
136
137 headlast <pitch> <unstressed start> <unstressed end>
138
139 This specifies the pitch for the last stressed syllable of the head (i.e. the
140 stressed syllable before the nucleus).