| 1 |
/* manual_Artsynth.cpp |
| 2 |
* |
| 3 |
* Copyright (C) 1992-2005,2007,2010,2011,2014-2017,2020,2021,2023,2025 Paul Boersma |
| 4 |
* |
| 5 |
* This code is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 3 of the License, or (at |
| 8 |
* your option) any later version. |
| 9 |
* |
| 10 |
* This code is distributed in the hope that it will be useful, but |
| 11 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
* See the GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
#include "ManPagesM.h" |
| 20 |
|
| 21 |
void manual_Artsynth_init (ManPages me); |
| 22 |
void manual_Artsynth_init (ManPages me) { |
| 23 |
|
| 24 |
MAN_BEGIN (U"Articulatory synthesis", U"ppgb", 20211016) |
| 25 |
INTRO (U"This is a description of the articulatory synthesis package in Praat. " |
| 26 |
"For a detailed description of the physics and mathematics behind the model, " |
| 27 |
"see @@Boersma (1998)@, chapters 2 and 3. " |
| 28 |
"For examples of how to synthesize utterances, consult https://www.fon.hum.uva.nl/paul/diss/ch5/.") |
| 29 |
ENTRY (U"How to start (after reading the @Intro)") |
| 30 |
NORMAL (U"We are going to have the synthesizer say [əpə]. We need a @Speaker and an @Artword object.") |
| 31 |
NORMAL (U"1. Create a speaker with @@Create Speaker...@ from the @@New menu@.") |
| 32 |
NORMAL (U"2. Create an articulation word of 0.5 seconds with @@Create Artword...@.") |
| 33 |
NORMAL (U"3. Edit the Artword by selecting it and clicking ##View & Edit#.") |
| 34 |
NORMAL (U"4. To set the glottis to a position suitable for phonation, use the ArtwordEditor to " |
| 35 |
"set the %Interarytenoid activity to 0.5 throughout the utterance. You set two targets: " |
| 36 |
"0.5 at a time of 0 seconds, and 0.5 at a time of 0.5 seconds.") |
| 37 |
NORMAL (U"5. To prevent air escaping from the nose, close the nasopharyngeal port " |
| 38 |
"by setting the %LevatorPalatini activity to 1.0 throughout the utterance.") |
| 39 |
NORMAL (U"6. To generate the lung pressure needed for phonation, you set the %Lungs activity at 0 seconds to 0.2, " |
| 40 |
"and at 0.1 seconds to 0.") |
| 41 |
NORMAL (U"7. To force a jaw movement that closes the lips, set the %Masseter activity at 0.25 seconds to 0.7, " |
| 42 |
"and the %OrbicularisOris activity at 0.25 seconds to 0.2.") |
| 43 |
NORMAL (U"8. Select the Speaker and the Artword and click ##Play movie#; " |
| 44 |
"you will see a closing-and-opening gesture of the mouth.") |
| 45 |
NORMAL (U"9. Select the Speaker and the Artword and click ##To Sound...# " |
| 46 |
"(see @@Artword & Speaker: To Sound...@).") |
| 47 |
NORMAL (U"10. Just click #OK; the synthesis starts.") |
| 48 |
NORMAL (U"11. If you are sitting at a 1997 computer, this will last for 5 minutes or so; at a 2019 computer, 1 second. " |
| 49 |
"If this is too slow for you, click #Interrupt. " |
| 50 |
"Otherwise, you can watch the vibrating vocal cords " |
| 51 |
"and the changing vocal-tract shape.") |
| 52 |
NORMAL (U"12. You can play, view, and analyse the resulting @Sound as you would any other. " |
| 53 |
"You can see and hear a sound movie if you select the Speaker, " |
| 54 |
"the Artword, and the Sound, and click ##Play movie#.") |
| 55 |
MAN_END |
| 56 |
|
| 57 |
MAN_BEGIN (U"Artword", U"ppgb", 20030316) |
| 58 |
INTRO (U"One of the @@types of objects@ in Praat. See @@Articulatory synthesis@.") |
| 59 |
NORMAL (U"An object of class Artword object represents the activities of several speech muscles as functions of time.") |
| 60 |
ENTRY (U"Artword commands") |
| 61 |
LIST_ITEM (U"• @@Create Artword...@: creates an Artword with relaxed muscles") |
| 62 |
LIST_ITEM (U"• @@Artword & Speaker: To Sound...@: articulatory synthesis") |
| 63 |
MAN_END |
| 64 |
|
| 65 |
MAN_BEGIN (U"Artword & Speaker: To Sound...", U"ppgb", 20040331) |
| 66 |
INTRO (U"A command to synthesize a @Sound object from the selected @Speaker and the selected @Artword.") |
| 67 |
NORMAL (U"This is the command that performs the actual articulatory synthesis. " |
| 68 |
"See @@Articulatory synthesis@.") |
| 69 |
ENTRY (U"Settings") |
| 70 |
TERM (U"##Sampling frequency (Hz)") |
| 71 |
DEFINITION (U"the number of times per second that the equilibrium widths and lengths and the tensions of the muscles " |
| 72 |
"are recomputed from the Artword. This will also be the sampling frequency of the resulting sound and " |
| 73 |
"of the optional resulting tube widths, air pressures, and air velocities. The standard value is 22050 Hz.") |
| 74 |
TERM (U"##Oversampling") |
| 75 |
DEFINITION (U"the number of times that the aerodynamic quantities and the state of the tube walls " |
| 76 |
"will be recomputed during each sample period. The standard value is 25.") |
| 77 |
TERM (U"##Width 1#, ##Width 2#, ##Width 3#") |
| 78 |
DEFINITION (U"the numbers (see below) of the tubes whose widths you want to monitor. " |
| 79 |
"E.g., if ##Width 1# is 36, the synthesizer will create a Sound object named `width36`, " |
| 80 |
"which contains the width of tube 36 (the lower glottis) as a function of time, expressed in metres. " |
| 81 |
"To prevent the creation of a `width` object, specify `0` (the standard value).") |
| 82 |
TERM (U"##Pressure 1#, ##Pressure 2#, ##Pressure 3#") |
| 83 |
DEFINITION (U"the numbers (see below) of the tubes whose air pressures you want to monitor. " |
| 84 |
"E.g., if ##Pressure 3# is 37, the synthesizer will create a Sound object named `pressure37`, " |
| 85 |
"which contains the air pressure of tube 37 (the upper glottis) as a function of time, expressed in Pascal. " |
| 86 |
"To prevent the creation of a `pressure` object, specify `0` (the standard value).") |
| 87 |
TERM (U"##Velocity 1#, ##Velocity 2#, ##Velocity 3") |
| 88 |
DEFINITION (U"the numbers (see below) of the tubes whose air velocities you want to monitor. " |
| 89 |
"E.g., if ##Velocity 1# is 60, the synthesizer will create a Sound object named `velocity60`, " |
| 90 |
"which contains the air velocity of tube 60 (in the mouth) as a function of time, expressed in metres per second. " |
| 91 |
"To prevent the creation of a `velocity` object, specify `0` (the standard value).") |
| 92 |
ENTRY (U"Stability") |
| 93 |
NORMAL (U"The internal sampling frequency for the aerodynamics is the specified ##Sampling frequency#, " |
| 94 |
"multiplied by the specified #Oversampling. With the standard settings, this is 22050 times 25 = 550750 Hz.") |
| 95 |
NORMAL (U"To ensure the stability of the synthesis, this internal sampling frequency should not be less than the " |
| 96 |
"velocity of sound (353 m/s) divided by the length of the shortest tube. For the standard #Female, " |
| 97 |
"#Male, and #Child speakers, the shortest tube is the upper glottis, which has a length " |
| 98 |
"of 0.7, 1.0, and 0.3 millimetres, respectively. The minimum internal sampling frequencies, therefore, " |
| 99 |
"are 504286, 353000, and 1176667 hertz, respectively.") |
| 100 |
ENTRY (U"Time resolution") |
| 101 |
NORMAL (U"To capture the microscopic pressure changes in the glottis, you will want maximum time resolution. " |
| 102 |
"For a female speaker, you could set ##Sampling frequency# to 550750 Hz, and #Oversampling to 1.") |
| 103 |
ENTRY (U"Tube numbers") |
| 104 |
NORMAL (U"Here are the tube numbers that you can use for the #Width, #Pressure, and #Velocity settings:") |
| 105 |
LIST_ITEM (U"1..23: lungs (from bottom to top)") |
| 106 |
LIST_ITEM (U"24..29: bronchi (from bottom to top)") |
| 107 |
LIST_ITEM (U"30..35: trachea (from bottom to top)") |
| 108 |
LIST_ITEM (U"36: lower glottis") |
| 109 |
LIST_ITEM (U"37: upper glottis (not for a one-mass model)") |
| 110 |
LIST_ITEM (U"38..49: pharynx (from bottom to top)") |
| 111 |
LIST_ITEM (U"50..51: nasopharyngeal branching") |
| 112 |
LIST_ITEM (U"52..64: mouth (from back to front)") |
| 113 |
LIST_ITEM (U"65..78: nose (from back to front)") |
| 114 |
LIST_ITEM (U"79..86: conus elasticus (only for a 10-mass model)") |
| 115 |
LIST_ITEM (U"87..89: glottal shunt between the arytenoids (from bottom to top)") |
| 116 |
NORMAL (U"Some structural properties:") |
| 117 |
LIST_ITEM (U"• Tube 1 is closed at the bottom.") |
| 118 |
LIST_ITEM (U"• Tubes 64 (lips) and 78 (nostrils) radiate into the air.") |
| 119 |
LIST_ITEM (U"• The nasopharyngeal branch is at tubes 50, 51, and 65. They are constrained to have equal lengths.") |
| 120 |
LIST_ITEM (U"• For a one-mass model of the vocal cords, tube 36 is connected to 38.") |
| 121 |
LIST_ITEM (U"• For a 10-mass model, tubes 32..35 are replaced with 79..86, so that " |
| 122 |
"tube 31 is connected to 79, and 86 is connected to 36.") |
| 123 |
LIST_ITEM (U"• A glottal shunt will be implemented if the speaker’s `shunt.Dx` attribute is not zero. " |
| 124 |
"A branch is then made from tubes 34 and 35 (or 85 and 86) to 87, " |
| 125 |
"and from tube 89 to 38 and 39.") |
| 126 |
MAN_END |
| 127 |
|
| 128 |
MAN_BEGIN (U"Create Artword...", U"ppgb", 20101212) |
| 129 |
INTRO (U"A command to create an @Artword object with all muscle activities set to zero. " |
| 130 |
"See @@Articulatory synthesis@.") |
| 131 |
ENTRY (U"Settings") |
| 132 |
TERM (U"##Name") |
| 133 |
DEFINITION (U"the name that you give to the created object. The standard name is `hallo`, " |
| 134 |
"but you should give it a more sensible name, possibly something that represents the utterance " |
| 135 |
"that it is supposed to generate.") |
| 136 |
TERM (U"##Duration (seconds)") |
| 137 |
DEFINITION (U"the duration of the resulting Artword. Should be as long as the utterance that " |
| 138 |
"you want to generate with it. The standard value is 1 second.") |
| 139 |
MAN_END |
| 140 |
|
| 141 |
MAN_BEGIN (U"Create Speaker...", U"ppgb", 20101212) |
| 142 |
INTRO (U"A command to create a @Speaker object. See @@Articulatory synthesis@.") |
| 143 |
ENTRY (U"Settings") |
| 144 |
TERM (U"##Name") |
| 145 |
DEFINITION (U"the name that you give to the created object. The standard name is “speaker”, " |
| 146 |
"but if you work with multiple Speaker objects, give them sensible names to reduce confusion.") |
| 147 |
TERM (U"##Kind of speaker") |
| 148 |
DEFINITION (U"Choose from #Female, #Male, or #Child. The only difference is a relative size.") |
| 149 |
TERM (U"##Number of tubes in glottis") |
| 150 |
DEFINITION (U"Choose from #1, #2, or #10. See @@Artword & Speaker: To Sound...@ for details.") |
| 151 |
MAN_END |
| 152 |
|
| 153 |
MAN_BEGIN (U"Create Vocal Tract from phone...", U"ppgb", 19960908) |
| 154 |
INTRO (U"A way to create a @VocalTract object.") |
| 155 |
ENTRY (U"Purpose") |
| 156 |
NORMAL (U"to translate a phone symbol like [a], [u], etc., into a vocal-tract area function.") |
| 157 |
ENTRY (U"Behaviour") |
| 158 |
NORMAL (U"The resulting VocalTract will appear in the list of objects, " |
| 159 |
"with the same name as the phone.") |
| 160 |
ENTRY (U"Algorithm") |
| 161 |
NORMAL (U"The area function of the resulting VocalTract is taken from the Russian speaker from @@Fant (1960)@.") |
| 162 |
MAN_END |
| 163 |
|
| 164 |
MAN_BEGIN (U"Speaker", U"ppgb", 19980201) |
| 165 |
INTRO (U"One of the @@types of objects@ in Praat. See @@Articulatory synthesis@.") |
| 166 |
ENTRY (U"Speaker commands") |
| 167 |
LIST_ITEM (U"• @@Create Speaker...") |
| 168 |
LIST_ITEM (U"• @@Artword & Speaker: To Sound...@: articulatory synthesis") |
| 169 |
MAN_END |
| 170 |
|
| 171 |
MAN_BEGIN (U"VocalTract", U"ppgb", 20030316) |
| 172 |
INTRO (U"One of the @@types of objects@ in Praat.") |
| 173 |
NORMAL (U"A VocalTract object represents the area function of the vocal tract, expressed in m^2, " |
| 174 |
"running from the glottis to the lips.") |
| 175 |
MAN_END |
| 176 |
|
| 177 |
MAN_BEGIN (U"VocalTract: Formula...", U"ppgb", 20021206) |
| 178 |
INTRO (U"A command for changing the data in all selected @VocalTract objects.") |
| 179 |
NORMAL (U"See the @Formulas tutorial for examples and explanations.") |
| 180 |
MAN_END |
| 181 |
|
| 182 |
} |
| 183 |
|
| 184 |
/* End of file manual_Artsynth.cpp */ |