Browse Source

voices: support a maintainer annotation in voice files

master
Reece H. Dunn 9 years ago
parent
commit
7e3e2c3854
3 changed files with 20 additions and 0 deletions
  1. 2
    0
      CHANGELOG.md
  2. 12
    0
      docs/voices.md
  3. 6
    0
      src/libespeak-ng/voices.c

+ 2
- 0
CHANGELOG.md View File

@@ -14,6 +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.

build:


+ 12
- 0
docs/voices.md View File

@@ -4,6 +4,8 @@
- [name](#name)
- [language](#language)
- [gender](#gender)
- [Maintenance Attributes](#maintenance-attributes)
- [maintainer](#maintainer)
- [Voice Attributes](#voice-attributes)
- [pitch](#pitch)
- [formant](#formant)
@@ -138,6 +140,16 @@ change the sound of the voice.
* \<gender\> may be male, female, or unknown.
* \<age\> is optional and gives an age in years.

## Maintenance Attributes

### maintainer

maintainer <maintaner>

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.

## Voice Attributes

### pitch

+ 6
- 0
src/libespeak-ng/voices.c View File

@@ -71,6 +71,8 @@ enum {
V_PHONEMES,
V_DICTIONARY,

V_MAINTAINER,

// these affect voice quality, are independent of language
V_FORMANT,
V_PITCH,
@@ -121,6 +123,8 @@ static MNEM_TAB keyword_tab[] = {
{ "language", V_LANGUAGE },
{ "gender", V_GENDER },

{ "maintainer", V_MAINTAINER },

{ "formant", V_FORMANT },
{ "pitch", V_PITCH },
{ "phonemes", V_PHONEMES },
@@ -880,6 +884,8 @@ voice_t *LoadVoice(const char *vname, int control)
fprintf(stderr, "dictdialect name '%s' not recognized\n", name1);
}
break;
case V_MAINTAINER:
break;
default:
if ((key & 0xff00) == 0x100)
sscanf(p, "%d", &langopts->param[key &0xff]);

Loading…
Cancel
Save