From 52246c40437cf2035ac22f491f048c9c99b4c149 Mon Sep 17 00:00:00 2001 From: Valdis Vitolins Date: Wed, 21 Oct 2020 22:00:55 +0300 Subject: [PATCH] docs: add more details about language vs voice settings --- docs/voices.md | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/docs/voices.md b/docs/voices.md index 8573a414..7f0ce926 100644 --- a/docs/voices.md +++ b/docs/voices.md @@ -34,12 +34,16 @@ ---------- -A Voice file specifies a language (and possibly a language variant or -dialect) together with various attributes that affect the +A voice file specifies a language (and possibly a language variant or +dialect or just voice) together with various attributes that affect the characteristics of the voice quality and how the language is spoken. -Voice files are located in the `espeak-ng-data/voices` directory, and are -grouped by the [ISO 639-5](https://en.wikipedia.org/wiki/ISO_639-5) +Voice files are located in the `espeak-ng-data/` folder, and: + +1. if it describes voice with language or dialect, in [lang](../../../tree/master/espeak-ng-data/lang) subfolder; +2. if it describes just voice, in [voices/!v](../../../tree/master/espeak-ng-data/voices/!v) subfolder. + +Languages are grouped by the [ISO 639-5](https://en.wikipedia.org/wiki/ISO_639-5) language family of the language being specified in the voice files. See also Wikipedia's [List of language families](https://en.wiktionary.org/wiki/Wiktionary:List_of_families) @@ -55,12 +59,19 @@ without the need to specify a voice. name -A name given to this voice. +A mandatory name given to this voice. ### language +A mandatory identifier of the language or the voice. It can have one of +two options: + language [] +_or_ + + language variant + __NOTE:__ This attribute is mandatory and should appear before the other attributes which are listed below. @@ -68,7 +79,11 @@ It selects the default behaviour and characteristics for the language, and sets default values for "phonemes", "dictionary" and other attributes. -The \ is a valid +If value for `lanuguage` field is `variant`, then file describes only +phonetic features of the voice and it can be used as a [...+variant](../src/espeak-ng.1.ronn) +option for any language. + +If `language` identifies actual language, then \ should be a valid [BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag) language tag. The list of valid tags originate from various standards and have been combined into the