mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
[1.30] Add option for a pause between words: command option -g or espeak_SetParameter(espeak_WORDGAP)
Add different intonation styles (attribute "intonation" in voices files). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@114 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
@@ -19,7 +19,7 @@ After that it's a gradual process of improvement to:
|
||||
<ul>
|
||||
<li>Make the spelling-to-phoneme translation rules more accurate, including the position of stressed
|
||||
syllables within words. Some languages are easier than others. I expect most are easier than English.
|
||||
<p><li>Improve the sounds of the phonemes. This may consist of making small adjustments to vowel and diphthong quality,
|
||||
<p><li>Improve the sounds of the phonemes. It may be that a phoneme should sound different depending on adjacent sounds, or whether it's at the start or the end of a word, between vowels, etc. This may consist of making small adjustments to vowel and diphthong quality,
|
||||
or adjusting the strength of consonants. Bigger changes may be recording new or replacement consonant
|
||||
sounds, or even writing program code to implement new types of sounds.
|
||||
<p><li>Marking some common words in the dictionary that should be unstressed (words such as "the", "is"), or should be preceded
|
||||
@@ -31,6 +31,8 @@ characteristics of the language which are not currently implemented. For exampl
|
||||
</ul>
|
||||
<b><em>If you are interested in working on a language, please contact me to set up the initial data and to
|
||||
discuss the features of the language.</em></b>
|
||||
<p>
|
||||
For most of the eSpeak voices, I do not speak or understand the language, and I do not know how it should sound. I can only make improvements as a result of feedback from speakers of that language. If you want to help to improve a language, listen carefully and try to identify individual errors, either in the spelling-to-phoneme translation, the position of stressed syllables within words, or the sound of phonemes, or problems with rhythm and vowel lengths.
|
||||
<HR>
|
||||
<H3>6.1 Language Code</H3>
|
||||
<P>Generally, the language's international <a href="http://en.wikipedia.org/wiki/ISO_639-1">ISO 639-1 code</a> is used to
|
||||
|
||||
+18
-14
@@ -46,7 +46,7 @@ RETURN is pressed.<br>Use <strong>espeak -x</strong> to see the corresponding ph
|
||||
<h3>2.2.2 Use with KDE Text-to-Speech (KTTS)</h3>
|
||||
To add to KDE-Text-to-Speech Manager (KTTSMgr), use it as a "Command" talker
|
||||
with "command for speaking texts" set to:<br>
|
||||
<strong>cat %f | espeak --stdin -w %w</strong>
|
||||
<strong>cat %f | espeak --stdin -v en -w %w</strong>
|
||||
<p>
|
||||
Note:
|
||||
<ul>
|
||||
@@ -58,7 +58,7 @@ Note:
|
||||
<h3>2.2.3 The Command Line Options</h3>
|
||||
<dl>
|
||||
<dt>
|
||||
<strong>espeak [options] ["words"]</strong><br>
|
||||
<strong>espeak [options] ["text words"]</strong><br>
|
||||
<dd>Text input can be taken either from a file, from a string in the command, or from stdin.
|
||||
<p>
|
||||
<dt>
|
||||
@@ -70,7 +70,7 @@ Note:
|
||||
<dd>Takes the text input from stdin.
|
||||
<p>
|
||||
<dt>
|
||||
If neither -f nor --stdin is given, then the text input is taken from "words" (a text string within double quotes). <br>If that is not present then text is taken from stdin, but each line is treated as a separate sentence.
|
||||
If neither -f nor --stdin is given, then the text input is taken from "text words" (a text string within double quotes). <br>If that is not present then text is taken from stdin, but each line is treated as a separate sentence.
|
||||
<p>
|
||||
<dt>
|
||||
<strong>-a <integer></strong><br>
|
||||
@@ -82,20 +82,23 @@ If neither -f nor --stdin is given, then the text input is taken from "words" (a
|
||||
<p>
|
||||
<dt>
|
||||
<strong>-s <integer></strong><br>
|
||||
<dd>Sets the speed in words-per-minute (approximate values for the default voice, others may
|
||||
differ slightly). The default value is 170. I generally use a faster speed
|
||||
of 190. Range 80 to 370.
|
||||
<dd>Sets the speed in words-per-minute (approximate values for the default English voice, others may differ slightly). The default value is 170. I generally use a faster speed
|
||||
of 190. Range 80 to 390.
|
||||
<p>
|
||||
<dt>
|
||||
<strong>-b</strong><br>
|
||||
<dd>Indicates that the input text is in the 8-bit character set which corresponds to the language (eg. Latin-2 for Polish). Without this option, eSpeak assumes text is UTF8, but will automatically switch to the 8-bit character set if it finds an illegal UTF8 sequence. That may give wrong results if some 8-bit character sequences look like valid UFT8 multibyte characters.
|
||||
<dd>Indicates that the input text is not UTF-8, but the 8-bit character set which corresponds to the language (eg. Latin-2 for Polish). Without this option, eSpeak assumes text is UTF8, but will automatically switch to the 8-bit character set if it finds an illegal UTF8 sequence. That may give wrong results if some 8-bit character sequences look like valid UFT8 multibyte characters.
|
||||
<p>
|
||||
<dt>
|
||||
<strong>-g <integer></strong><br>
|
||||
<dd>Word gap. This option inserts a pause between words. The value is the length of the pause, in units of 10 mS (at the default speed of 170 wpm).
|
||||
<p>
|
||||
<dt>
|
||||
<strong>-k <integer></strong><br>
|
||||
<dd>Indicate words which begin with capital letters.<p>
|
||||
1 Use a click sound to indicate when a word starts with a capital letter, or double click if word is all capitals.<p>
|
||||
2 Speak the word "capital" before a word which begins with a capital letter.<p>
|
||||
Other values: Increase the pitch for words which begin with a capital letter. The greater the value, the greater the increase in pitch. Try -k20.
|
||||
1 eSpeak uses a click sound to indicate when a word starts with a capital letter, or double click if word is all capitals.<p>
|
||||
2 eSpeak speaks the word "capital" before a word which begins with a capital letter.<p>
|
||||
Other values: eSpeak increases the pitch for words which begin with a capital letter. The greater the value, the greater the increase in pitch. Try -k20.
|
||||
<p>
|
||||
<dt>
|
||||
<strong>-l <integer></strong><br>
|
||||
@@ -118,13 +121,14 @@ Quiet. No sound is generated. This may be useful with the -x option.
|
||||
<pre> espeak -vaf</pre>
|
||||
To use the Afrikaans voice. A modifier after the voice name can be used to vary the tone of the voice, eg:
|
||||
<pre> espeak -vaf+3</pre>
|
||||
The variants are <code> +1 +2 +3 +4 +5 </code> for male voices and <code> +11 +12 +13 +14 </code> which simulate female voices by using higher pitches.
|
||||
The variants are <code> +m1 +m2 +m3 +m4 +m5 +m6 </code> for male voices and <code> +f1 +f2 +f3 +f4 </code> which simulate female voices by using higher pitches. Other variants are <code>+croak</code> and <code>+whisper</code>.
|
||||
<p>
|
||||
<voice filename> is a file within the <code>espeak-data/voices</code> directory.<br>
|
||||
Voice files can specify a language, different pitches, tonal qualities, and prosody for the voice.
|
||||
<variant> is a file within the <code>espeak-data/voices/!v</code> directory.<p>
|
||||
Voice files can specify a language, alternative pronunciations or phoneme sets, different pitches, tonal qualities, and prosody for the voice.
|
||||
See the <a href="voices.html">voices.html</a> file.<p>
|
||||
Voice names which start with <b>mb-</b> are for use with Mbrola diphone voices, see <a href="mbrola.html">mbrola.html</a><p>
|
||||
Some languages may need additional dictionary data, see <a href="languages.html">languages.html</a>
|
||||
Some languages may need additional dictionary data, see <a href="languages.html">languages.html</a>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>-w <wave file></strong><br>
|
||||
@@ -145,7 +149,7 @@ shown on stdout.
|
||||
<p>
|
||||
<dt>
|
||||
<strong>--stdout</strong><br>
|
||||
<dd>Writes the speech output to stdout as it is produced, rather than speaking it. The data starts with a WAV file header which indicates the sample rate and format of the data. The length fields are set to zero because the length of the data is unknown when the header is produced.
|
||||
<dd>Writes the speech output to stdout as it is produced, rather than speaking it. The data starts with a WAV file header which indicates the sample rate and format of the data. The length field is set to zero because the length of the data is unknown when the header is produced.
|
||||
<p>
|
||||
<dt><strong>--compile[=<voice name>]</strong><br>
|
||||
<dd>
|
||||
|
||||
+17
-5
@@ -95,8 +95,11 @@ The rules are organized in groups, each starting with a ".group" line:
|
||||
A group for other characters which don't have their own group.
|
||||
<p>
|
||||
<dt><strong>.L<nn></strong><br><dd>
|
||||
Defines a group of letter sequences, any of which can match with <strong>Lnn</strong> in a <strong>post</strong> rule (see below). <strong>nn</strong> is a 2 digit decimal number in the range 01 to 20. eg:<br>
|
||||
Defines a group of letter sequences, any of which can match with <strong>Lnn</strong> in a <strong>post</strong> rule (see below). <strong>nn</strong> is a 2 digit decimal number in the range 01 to 20. eg:<p>
|
||||
<code>.L01 b bl br pl pr</code>
|
||||
<p>
|
||||
<dt><strong>.replace</strong><br><dd>
|
||||
See section 4.7 Character Substitution, below.
|
||||
</dl>
|
||||
</ul>When matching a word, firstly the 2-letter group for the two letters at the current position in the word (if such a group exists) is searched, and then the single-letter group. The highest scoring rule in either of those two groups is used.
|
||||
|
||||
@@ -467,7 +470,11 @@ A word (or group of words) may be given one or more flags, either instead of, or
|
||||
</tr>
|
||||
<tr>
|
||||
<td>$capital</td>
|
||||
<td>Use this pronunciation if word has initial capital letter (eg. polish v Polish).</td>
|
||||
<td>Use this pronunciation if the word has initial capital letter (eg. polish v Polish).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>$allcaps</td>
|
||||
<td>Use this pronunciation if the word is all capitals.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>$dot</td>
|
||||
@@ -475,7 +482,7 @@ A word (or group of words) may be given one or more flags, either instead of, or
|
||||
</tr>
|
||||
<tr>
|
||||
<td>$abbrev</td>
|
||||
<td>This has two meanings.<br> 1. If there is no phoneme string: Speak the word as individual letters, even if it contains a vowel (eg. "abc" should be spoken as "a" "b" "c").<br>2. If there is a phoneme string: Speak this word as the specified phoneme string, not as individual letters, even if it's all capital letters (eg, Roman numerals III, IV ).</td>
|
||||
<td>This has two meanings.<br> 1. If there is no phoneme string: Speak the word as individual letters, even if it contains a vowel (eg. "abc" should be spoken as "a" "b" "c").<br>2. If there is a phoneme string: This word is capitalized because it is an abbreviation and capitalization does indicate emphasis (if the "emphasize all-caps" is on).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
@@ -494,6 +501,11 @@ A word (or group of words) may be given one or more flags, either instead of, or
|
||||
<td>$verb</td>
|
||||
<td>Use this pronunciation if it's a verb.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>$noun</td>
|
||||
<td>Use this pronunciation if it's a noun.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>$past</td>
|
||||
<td>Use this pronunciation if it's past tense.</td>
|
||||
</tr>
|
||||
@@ -529,7 +541,7 @@ The dictionary list is searched from bottom to top. The first match that satisf
|
||||
then if "to" is at the end of the clause, we get [tu:], if not then we get [t@].
|
||||
|
||||
<p>
|
||||
<h4>4.4.4 Translating a Word with another Word</h4>
|
||||
<h4>4.4.4 Translating a Word to another Word</h4>
|
||||
Rather than specifying the pronunciation of a word by a phoneme string, you can specify another "sounds like" word.<p>Use the attribute <b>$text</b> eg.<p>
|
||||
<pre>
|
||||
cough coff $text
|
||||
@@ -591,7 +603,7 @@ _0 to _9
|
||||
|
||||
<p> <hr>
|
||||
<h3>4.7 Character Substitution</h3>
|
||||
Chracter substitutions can be specified by using a <b> .replace </b> section at the start of the <b> _rules </b> file. Each line specified either one or two alphabetic characters to be replaced by another one or two alphabetic characters. This substitution is done to a word before it is translated using the spelling-to-phoneme rules. Only the lower-case version of the characters needs to be specified. eg.<p>
|
||||
Character substitutions can be specified by using a <b> .replace </b> section at the start of the <b> _rules </b> file. Each line specified either one or two alphabetic characters to be replaced by another one or two alphabetic characters. This substitution is done to a word before it is translated using the spelling-to-phoneme rules. Only the lower-case version of the characters needs to be specified. eg.<p>
|
||||
.replace<br>
|
||||
ô ő // (Hungarian) allow the use of o-circumflex instead of o-double-accute<br>
|
||||
û ű<p>
|
||||
|
||||
+42
-8
@@ -29,7 +29,7 @@ A number of Voice files are provided in the <code>espeak-data/voices</code> dire
|
||||
You can select one of these with the <strong>-v <voice filename></strong> parameter to the
|
||||
speak command, eg:
|
||||
<pre> espeak -vaf</pre>
|
||||
to speak using the Afrikaans voice.
|
||||
to speak using the Afrikaans voice.<p>Language voices generally start with the 2 letter <a href="http://en.wikipedia.org/wiki/ISO_639-1">ISO 639-1 code</a> for the language. If the language does not have an ISO 639-1 code, then the 3 letter <a href="http://www.sil.org/iso639-3/codes.asp">ISO 639-3 code</a> can be used.
|
||||
<p>
|
||||
For details of the voice files see <a href="voices.html">Voices</a>.
|
||||
<h4>Default Voice</h4>
|
||||
@@ -83,6 +83,11 @@ The eSpeak speech synthesizer does text to speech for the following additional l
|
||||
<dd>This has been worked on by a native speaker and it should be OK.</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>bs Bosnian</strong><br>
|
||||
<dd>Usable, but I'm unsure whether wrong stressed syllables are a problem. It accepts both Latin and Cyrillic characters. This voice is similar to <strong>sr Serbian</strong> and <strong>hr Croatian</strong>
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>cs Czech</strong><br>
|
||||
<dd>Usable.
|
||||
</dd>
|
||||
@@ -120,7 +125,7 @@ The eSpeak speech synthesizer does text to speech for the following additional l
|
||||
<p>
|
||||
<dt>
|
||||
<strong>hr Croatian</strong><br>
|
||||
<dd>Usable, but I'm unsure whether wrong stressed syllables are a problem.
|
||||
<dd>Usable, but I'm unsure whether wrong stressed syllables are a problem. It accepts both Latin and Cyrillic characters. This voice is similar to <strong>sr Serbian</strong> and <strong>bs Bosnian</strong>
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
@@ -153,6 +158,11 @@ The eSpeak speech synthesizer does text to speech for the following additional l
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>sr Serbian</strong><br>
|
||||
<dd>Usable. Wrong stressed syllables may be a problem. It accepts both Latin and Cyrillic characters. This voice is similar to <strong>hr Croatian</strong> and <strong>bs Bosnian</strong>
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>sv Swedish</strong><br>
|
||||
<dd>This has now had some work done on the pronunciation rules, so it should be useable.
|
||||
</dd>
|
||||
@@ -174,18 +184,33 @@ These languages are only initial naive implementations which have had little or
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>grc Ancient Greek</strong><br>
|
||||
<dd>Includes a short pause between words to help understanding.
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>hi Hindi</strong><br>
|
||||
<dd>This is interesting because it uses the Devanagari characters. I'm not sure about Hindi stress rules, and I expect the sound of aspirated/unaspirated consonant pairs needs improvement.
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>nl Dutch</strong><br>
|
||||
<dd>Probably needs improvement of the spelling-to-phoneme rules.
|
||||
<strong>is Icelandic</strong><br>
|
||||
<dd>An initial guess, awaiting feedback.
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>is Icelandic</strong><br>
|
||||
<dd>An initial guess, awaiting feedback.
|
||||
<strong>la Latin</strong><br>
|
||||
<dd>Stress rules are implemented, but it needs text where long vowels are marked with macrons.
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>mk Macedonian</strong><br>
|
||||
<dd>This is similar to <strong>hr Croatian</strong>, so it's probably usable. It accepts both Latin and Cyrillic characters.
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>nl Dutch</strong><br>
|
||||
<dd>Probably needs improvement of the spelling-to-phoneme rules.
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
@@ -210,9 +235,18 @@ Russian stress position is unpredictable so a large lookup dictionary is needed
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>zhy Cantonese Chinese</strong><br>
|
||||
<dd>Just a naive simple one-to-one translation from single Simplified Chinese characters to phonetic equivalents in Cantonese. No attempt so far at disambiguation, grouping characters into words, or adjusting tones according to their surrounding syllables. This voice needs Chinese character to phonetic translation data, which is available as a separate download at: <a href="http://espeak.sourceforge.net/data/">http://espeak.sourceforge.net/data/</a>.<br>The voice can also read Jyutping romanised text.
|
||||
<strong>zh Mandarin Chinese</strong><br>
|
||||
<dd>
|
||||
This speaks Pinyin text and Chinese characters. There is only a simple one-to-one translation of Chinese characters to a single Pinyin pronunciation. There is no attempt yet at recognising different pronunciations of Chinese characters in context, or of recognising sequences of characters as "words". The eSpeak installation includes a basic set of Chinese characters. More are available in an additional data file for Mandarin Chinese at:
|
||||
<a href="http://espeak.sourceforge.net/data/">http://espeak.sourceforge.net/data/</a>.
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>zhy Cantonese Chinese</strong><br>
|
||||
<dd>Just a naive simple one-to-one translation from single Simplified Chinese characters to phonetic equivalents in Cantonese. There is limited attempt at disambiguation, grouping characters into words, or adjusting tones according to their surrounding syllables. This voice needs Chinese character to phonetic translation data, which is available as a separate download for Cantonese at: <a href="http://espeak.sourceforge.net/data/">http://espeak.sourceforge.net/data/</a>.<br>The voice can also read Jyutping romanised text.
|
||||
</dd>
|
||||
</ul>
|
||||
|
||||
<h3>3.6 Mbrola Voices</h3>
|
||||
Some additional voices, whose name start with <b>mb-</b> (for example <b>mb-en1</b>) use eSpeak as a front-end to Mbrola diphone voices. eSpeak does the spelling-to-phoneme translation and intonation.
|
||||
See <a href="mbrola.html">mbrola.html</a>.
|
||||
|
||||
+23
-13
@@ -27,11 +27,14 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define ESPEAK_API_REVISION 2
|
||||
#define ESPEAK_API_REVISION 3
|
||||
/*
|
||||
Revision 2
|
||||
Added parameter "options" to eSpeakInitialize()
|
||||
|
||||
Revision 3
|
||||
Added espeakWORDGAP to espeak_PARAMETER
|
||||
|
||||
*/
|
||||
/********************/
|
||||
/* Initialization */
|
||||
@@ -267,7 +270,7 @@ espeak_ERROR espeak_Synth(const void *text,
|
||||
|
||||
espeakSSML Elements within < > are treated as SSML elements, or if not recognised are ignored.
|
||||
|
||||
espeakPHONEMES Text within [[ ]] is treated as phonemes codes (in espeak's Hirschenbaum encoding).
|
||||
espeakPHONEMES Text within [[ ]] is treated as phonemes codes (in espeak's Hirshenbaum encoding).
|
||||
|
||||
espeakENDPAUSE If set then a sentence pause is added at the end of the text. If not set then
|
||||
this pause is suppressed.
|
||||
@@ -332,7 +335,6 @@ espeak_ERROR espeak_Char(wchar_t character);
|
||||
EE_INTERNAL_ERROR.
|
||||
*/
|
||||
|
||||
/* Note, there is no function to play a sound icon. This would be done by the calling program */
|
||||
|
||||
|
||||
|
||||
@@ -342,12 +344,18 @@ espeak_ERROR espeak_Char(wchar_t character);
|
||||
|
||||
typedef enum {
|
||||
espeakSILENCE=0, /* internal use */
|
||||
espeakRATE,
|
||||
espeakVOLUME,
|
||||
espeakPITCH,
|
||||
espeakRANGE,
|
||||
espeakPUNCTUATION,
|
||||
espeakCAPITALS,
|
||||
espeakRATE=1,
|
||||
espeakVOLUME=2,
|
||||
espeakPITCH=3,
|
||||
espeakRANGE=4,
|
||||
espeakPUNCTUATION=5,
|
||||
espeakCAPITALS=6,
|
||||
espeakWORDGAP=7,
|
||||
espeakOPTIONS=8, // reserved for misc. options. not yet used
|
||||
espeakINTONATION=9,
|
||||
|
||||
espeakRESERVED1=10,
|
||||
espeakRESERVED2=11,
|
||||
espeakEMPHASIS, /* internal use */
|
||||
espeakLINELENGTH, /* internal use */
|
||||
espeakVOICETYPE, // internal, 1=mbrola
|
||||
@@ -379,7 +387,7 @@ espeak_ERROR espeak_SetParameter(espeak_PARAMETER parameter, int value, int rela
|
||||
|
||||
espeakPUNCTUATION: which punctuation characters to announce:
|
||||
value in espeak_PUNCT_TYPE (none, all, some),
|
||||
see espeak_GetParameter() to specify which characters are announced.
|
||||
see espeak_GetParameter() to specify which characters are announced.
|
||||
|
||||
espeakCAPITALS: announce capital letters by:
|
||||
0=none,
|
||||
@@ -388,6 +396,8 @@ espeak_ERROR espeak_SetParameter(espeak_PARAMETER parameter, int value, int rela
|
||||
3 or higher, by raising pitch. This values gives the amount in Hz by which the pitch
|
||||
of a word raised to indicate it has a capital letter.
|
||||
|
||||
espeakWORDGAP: pause between words, units of 10mS (at the default speed)
|
||||
|
||||
Return: EE_OK: operation achieved
|
||||
EE_BUFFER_FULL: the command can not be buffered;
|
||||
you may try after a while to call the function again.
|
||||
@@ -447,9 +457,9 @@ void espeak_CompileDictionary(const char *path, FILE *log);
|
||||
|
||||
// voice table
|
||||
typedef struct {
|
||||
char *name; // a given name for this voice. UTF8 string.
|
||||
char *languages; // list of pairs of (byte) priority + (string) language (and dialect qualifier)
|
||||
char *identifier; // the filename for this voice within espeak-data/voices
|
||||
const char *name; // a given name for this voice. UTF8 string.
|
||||
const char *languages; // list of pairs of (byte) priority + (string) language (and dialect qualifier)
|
||||
const char *identifier; // the filename for this voice within espeak-data/voices
|
||||
unsigned char gender; // 0=none 1=male, 2=female,
|
||||
unsigned char age; // 0=not specified, or age in years
|
||||
unsigned char variant; // only used when passed as a parameter to espeak_SetVoiceByProperties
|
||||
|
||||
+13
-13
@@ -42,6 +42,8 @@ indicates that this is voice is for the "en-uk-north" dialect, but it is also a
|
||||
<p>
|
||||
<dt>
|
||||
<strong>gender <gender> [<age>]</strong><br>
|
||||
<dd>
|
||||
This attribute is only a label for use in voice selection. It doesn't change the sound of the voice.
|
||||
<ul><gender> may be male, female, or unknown.<br>
|
||||
<age> is optional and gives an age in years.
|
||||
</dl>
|
||||
@@ -57,10 +59,11 @@ indicates that this is voice is for the "en-uk-north" dialect, but it is also a
|
||||
it equal to the base pitch will give a monotone. The default values are 82 118.
|
||||
<p>
|
||||
<dt>
|
||||
<strong>formant <number> <frequency> <strength> <width></strong><br>
|
||||
<strong>formant <number> <frequency> <strength> <width> <freq_add></strong><br>
|
||||
<dd> Systematically adjusts the frequency, strength, and width of the
|
||||
resonance peaks of the voice. Values are percentages of the
|
||||
default values. Changing these affects the tone/quality of the voice.
|
||||
default values. Changing these affects the tone/quality of the voice.<p>
|
||||
<strong>freq_add </strong> Adds a constant value (in Hz) to the frequency of the formant peak. The value may be negative.
|
||||
<ul>
|
||||
<li>Formants 1,2,3 are the standard three formants which define vowels.</li>
|
||||
<li>Formant 0 is used to give a low frequency component to the sounds, of
|
||||
@@ -158,7 +161,7 @@ don't have their own <strong>tone</strong> statement.
|
||||
<dt>
|
||||
<strong>dictrules <list of rule numbers></strong><br>
|
||||
<dd>
|
||||
Gives a list of conditional dictionary rules which are applied for this voice. Rule numbers are in the range 0 to 31 and are specific to a language. They can apply to rules in the langauge's <b>_rules</b> dictionary file and also its <b>_list</b> exceptions list.
|
||||
Gives a list of conditional dictionary rules which are applied for this voice. Rule numbers are in the range 0 to 31 and are specific to a language dictionary. They apply to rules in the langauge's <b>_rules</b> dictionary file and also its <b>_list</b> exceptions list.
|
||||
See <a href="dictionary.html">dictionary.html</a>.
|
||||
</dd>
|
||||
<p>
|
||||
@@ -206,10 +209,13 @@ See <a href="dictionary.html">dictionary.html</a>.
|
||||
The general default values are: 16, 16, 20, 20, 20, 24, 24, 22, although these defaults may be different for particular languages.</dd>
|
||||
<p>
|
||||
<dt>
|
||||
<strong>intonation <param1> <param2></strong><br>
|
||||
<dd> (for further development)<br>
|
||||
|
||||
|
||||
<strong>intonation <param1></strong><br>
|
||||
<dd><ul>
|
||||
<li>1 Default.</li>
|
||||
<li>2 Less intonation.</li>
|
||||
<li>3 Less intonation, and comma does not raise the pitch.</li>
|
||||
<li>4 Pitch rises (rather than falls) at the end of sentence.</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<p>
|
||||
<dt>
|
||||
@@ -219,12 +225,6 @@ The ISO 8859 character set number. (not all are implemented).
|
||||
</dd>
|
||||
<p>
|
||||
Additional attributes are available to set various internal options which control how language is processed. These would normally be set in the program code rather than in a voice file.
|
||||
<p>
|
||||
<dt>
|
||||
<strong>stressrule <param1> <param2> <param3> <param4></strong><br>
|
||||
<dd>
|
||||
Controls how different stress levels are applied to the syllables of a word.
|
||||
</dd>
|
||||
</ul>
|
||||
<hr>
|
||||
<h3>5.3 Voice Files Provided</h3>
|
||||
|
||||
Reference in New Issue
Block a user