voices: support a status annotation in voice files

This commit is contained in:
Reece H. Dunn
2016-05-21 21:29:39 +01:00
parent 7e3e2c3854
commit b620f42775
3 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -14,8 +14,8 @@
* Group languages by their language family and use BCP47 compliant names.
* Support for Windows and BSD platforms.
* Removed support for WinCE, MS-DOS and RiscOS.
* Add support for a `maintainer` field in voice files for tracking voice
maintenance.
* Add support for `maintainer` and `status` field in voice files for tracking
voice maintenance.
build:
+12
View File
@@ -150,6 +150,18 @@ Specifies the person responsible for updating the voice and associated language
files. If no maintainer is specified, the voice does not currently have an
active maintainer.
### status
status <status level>
Specifies how advanced the support for the language is:
* `testing` -- Provides the basic level of support, with basic pronunciation
rules. Requires feedback from a native speaker to help improve the voice.
* `mature` -- The language is well supported. It has been improved by, or with
support from, a native speaker.
## Voice Attributes
### pitch
+3
View File
@@ -72,6 +72,7 @@ enum {
V_DICTIONARY,
V_MAINTAINER,
V_STATUS,
// these affect voice quality, are independent of language
V_FORMANT,
@@ -124,6 +125,7 @@ static MNEM_TAB keyword_tab[] = {
{ "gender", V_GENDER },
{ "maintainer", V_MAINTAINER },
{ "status", V_STATUS },
{ "formant", V_FORMANT },
{ "pitch", V_PITCH },
@@ -885,6 +887,7 @@ voice_t *LoadVoice(const char *vname, int control)
}
break;
case V_MAINTAINER:
case V_STATUS:
break;
default:
if ((key & 0xff00) == 0x100)