From cdca4f8a8df9ce55dcca6da38c6ba716ec0e5a69 Mon Sep 17 00:00:00 2001 From: laptop Date: Fri, 17 Feb 2017 17:44:59 +1300 Subject: [PATCH 1/3] first cut --- Makefile.am | 8 ++++ dictsource/mi_list | 44 ++++++++++++++++++++++ dictsource/mi_rules | 62 +++++++++++++++++++++++++++++++ espeak-ng-data/lang/poz/mi | 19 ++++++++++ phsource/ph_maori | 75 ++++++++++++++++++++++++++++++++++++++ phsource/phonemes | 2 + 6 files changed, 210 insertions(+) create mode 100644 dictsource/mi_list create mode 100644 dictsource/mi_rules create mode 100644 espeak-ng-data/lang/poz/mi create mode 100644 phsource/ph_maori diff --git a/Makefile.am b/Makefile.am index 311b8ba0..c5f183d6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -275,6 +275,7 @@ phsource/phonemes.stamp: \ phsource/ph_malayalam \ phsource/ph_maltese \ phsource/ph_manipuri \ + phsource/ph_maori \ phsource/ph_marathi \ phsource/ph_nahuatl \ phsource/ph_nepali \ @@ -396,6 +397,7 @@ dictionaries: \ espeak-ng-data/lfn_dict \ espeak-ng-data/lt_dict \ espeak-ng-data/lv_dict \ + espeak-ng-data/mi_dict \ espeak-ng-data/mk_dict \ espeak-ng-data/ml_dict \ espeak-ng-data/mni_dict \ @@ -720,6 +722,12 @@ dictsource/lv_extra: espeak-ng-data/lv_dict: src/espeak-ng phsource/phonemes.stamp dictsource/lv_list dictsource/lv_rules dictsource/lv_extra cd dictsource && ESPEAK_DATA_PATH=$(PWD) LD_LIBRARY_PATH=../src:${LD_LIBRARY_PATH} ../src/espeak-ng --compile=lv && cd .. +mk: espeak-ng-data/mi_dict +dictsource/mi_extra: + touch dictsource/mi_extra +espeak-ng-data/mi_dict: src/espeak-ng phsource/phonemes.stamp dictsource/mi_list dictsource/mi_rules dictsource/mi_extra + cd dictsource && ESPEAK_DATA_PATH=$(PWD) LD_LIBRARY_PATH=../src:${LD_LIBRARY_PATH} ../src/espeak-ng --compile=mi && cd .. + mk: espeak-ng-data/mk_dict dictsource/mk_extra: touch dictsource/mk_extra diff --git a/dictsource/mi_list b/dictsource/mi_list new file mode 100644 index 00000000..218e958e --- /dev/null +++ b/dictsource/mi_list @@ -0,0 +1,44 @@ +// ***************************************************************************/ +// * Kyrgyz Language ky ky_list * +// * Original Author Joshua Meyer 7-1-2016 * +// * Contact info: joshua.richard.meyer@gmail.com * +// ***************************************************************************/ +// * This program is free software; you can redistribute it and/or modify * +// * it under the terms of the GNU General Public License as published by * +// * the Free Software Foundation; either version 3 of the License, or * +// * (at your option) any later version. * +// * * +// * This program is distributed in the hope that it will be useful, * +// * but WITHOUT ANY WARRANTY; without even the implied warranty of * +// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +// * GNU General Public License for more details. * +// * * +// * You should have received a copy of the GNU General Public License * +// * along with this program; if not, see: * +// * . * +// ***************************************************************************/ + + +// SOME USEFUL SYNTAX +// ' primary stress +// , secondary stress +// % unstressed syllable +// = put the primary stress on the preceding syllable +// _: short pause +// _ a shorter pause +// || indicates a word boundary within a phoneme string +// | can be used to separate two adjacent characters, to prevent +// them from being considered as a multi-character phoneme mnemonic + +// Numbers +_0 kore +_1 tahi +_2 rua +_3 toru +_4 faa +_5 rima +_6 ono +_7 whitu +_8 waru +_9 iwa +_10 tekau diff --git a/dictsource/mi_rules b/dictsource/mi_rules new file mode 100644 index 00000000..1c2dc296 --- /dev/null +++ b/dictsource/mi_rules @@ -0,0 +1,62 @@ +// This file is UTF-8 encoded +// The first symbol(s) is/are the orthography +// The second symbol(s) is/are the name of the phoneme + +// Māori + +.group a + a a + +.group ā + ā aa + +.group e + e e + +.group ē + ē ee + +.group i + i i + +.group ī + ī ii + +.group o + o o + +.group ō + ō oo + +.group u + u u + +.group ū + ū uu + + +.group h + h h + +.group k + k k + +.group m + m m + +.group n + n n + ng n //needs to change + +.group p + p p + +.group r + r r + +.group t + t t + +.group w + w w + wh f //needs to change (maybe) diff --git a/espeak-ng-data/lang/poz/mi b/espeak-ng-data/lang/poz/mi new file mode 100644 index 00000000..6fac6cfa --- /dev/null +++ b/espeak-ng-data/lang/poz/mi @@ -0,0 +1,19 @@ +language mi + +// https://github.com/espeak-ng/espeak-ng/blob/master/docs/voices.md#words +words 1 2 + +// taken from Jacky +pitch 85 130 + +formant 0 150 155 100 +formant 1 90 155 70 +formant 2 95 70 64 +formant 3 15 20 30 +formant 4 20 30 40 +formant 5 65 20 65 +formant 6 70 80 100 +formant 7 20 80 100 +formant 8 100 95 80 +voicing 135 +consonants 110 diff --git a/phsource/ph_maori b/phsource/ph_maori new file mode 100644 index 00000000..3178e8df --- /dev/null +++ b/phsource/ph_maori @@ -0,0 +1,75 @@ +// Māori phonemes +// what follows the word 'phoneme' is the name of the phoneme + +//======= +// VOWELS +//======= +phoneme a //so the name of this phoneme is 'a' + vwl starttype #a endtype #a + length 140 + FMT(vowel/a_5) //from latin +endphoneme + +phoneme aa //so the name of this phoneme is 'aa' + vwl starttype #a endtype #a + length 280 + FMT(vowel/a_5) //copied from above and length doubled +endphoneme + +phoneme e + vwl starttype #e endtype #e + length 140 + FMT(vowel/e) //working hypothesis +endphoneme + +phoneme ee + vwl starttype #e endtype #e + length 280 + FMT(vowel/e) //copied from above and length doubled +endphoneme + +phoneme i + vwl starttype #i endtype #i + length 140 + FMT(vowel/i) //working hypothesis +endphoneme + +phoneme ii + vwl starttype #i endtype #i + length 280 + FMT(vowel/i) //copied from above and length doubled +endphoneme + +phoneme o + vwl starttype #o endtype #o + length 140 + FMT(vowel/o) //working hypothesis +endphoneme + +phoneme oo + vwl starttype #o endtype #o + length 280 + FMT(vowel/o) //copied from above and length doubled +endphoneme + +phoneme u + vwl starttype #u endtype #u + length 140 + FMT(vowel/u) //working hypothesis +endphoneme + +phoneme uu + vwl starttype #u endtype #u + length 280 + FMT(vowel/u) //copied from above and length doubled +endphoneme + +//=========== +// CONSONANTS +//=========== + +phoneme ng + vcd vel nas //taken from ph_japanese + ipa ŋ +endphoneme + diff --git a/phsource/phonemes b/phsource/phonemes index 883b018d..00123d25 100644 --- a/phsource/phonemes +++ b/phsource/phonemes @@ -1095,3 +1095,5 @@ include ph_guarani phonemetable ky base1 include ph_kyrgyz +phonemetable mi base1 +include ph_maori From 6f033bbe3ad5c9f3ab39bf442c560fb1f0d77edb Mon Sep 17 00:00:00 2001 From: laptop Date: Sun, 19 Feb 2017 13:58:29 +1300 Subject: [PATCH 2/3] close to alpha version --- dictsource/mi_rules | 4 ++-- phsource/ph_maori | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/dictsource/mi_rules b/dictsource/mi_rules index 1c2dc296..c29d6c82 100644 --- a/dictsource/mi_rules +++ b/dictsource/mi_rules @@ -46,7 +46,7 @@ .group n n n - ng n //needs to change + ng ng .group p p p @@ -59,4 +59,4 @@ .group w w w - wh f //needs to change (maybe) + wh f diff --git a/phsource/ph_maori b/phsource/ph_maori index 3178e8df..86947a76 100644 --- a/phsource/ph_maori +++ b/phsource/ph_maori @@ -64,12 +64,26 @@ phoneme uu FMT(vowel/u) //copied from above and length doubled endphoneme +//========== +// DIPTHONGS +//========== + //=========== // CONSONANTS //=========== -phoneme ng - vcd vel nas //taken from ph_japanese - ipa ŋ +phoneme ng // si**ng** taken from Kyrgz (deleting what seemed from testing to be not needed) + vcd vel nas + +// don't really know why this works but is does + NextVowelStarts + VowelStart(nn/nn@) + VowelStart(nn/nna) + VowelStart(nn/nne) + VowelStart(nn/nni) + VowelStart(nn/nno) + VowelStart(nn/nnu) + EndSwitch + endphoneme From 2b501fcb03d71d30d180db7f9bc7bf9bd665a63c Mon Sep 17 00:00:00 2001 From: laptop Date: Sun, 5 Mar 2017 14:04:17 +1300 Subject: [PATCH 3/3] alpha version --- dictsource/mi_list | 39 ++++++-------------------------------- espeak-ng-data/lang/poz/mi | 3 ++- 2 files changed, 8 insertions(+), 34 deletions(-) diff --git a/dictsource/mi_list b/dictsource/mi_list index 218e958e..b9c219ee 100644 --- a/dictsource/mi_list +++ b/dictsource/mi_list @@ -1,35 +1,3 @@ -// ***************************************************************************/ -// * Kyrgyz Language ky ky_list * -// * Original Author Joshua Meyer 7-1-2016 * -// * Contact info: joshua.richard.meyer@gmail.com * -// ***************************************************************************/ -// * This program is free software; you can redistribute it and/or modify * -// * it under the terms of the GNU General Public License as published by * -// * the Free Software Foundation; either version 3 of the License, or * -// * (at your option) any later version. * -// * * -// * This program is distributed in the hope that it will be useful, * -// * but WITHOUT ANY WARRANTY; without even the implied warranty of * -// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -// * GNU General Public License for more details. * -// * * -// * You should have received a copy of the GNU General Public License * -// * along with this program; if not, see: * -// * . * -// ***************************************************************************/ - - -// SOME USEFUL SYNTAX -// ' primary stress -// , secondary stress -// % unstressed syllable -// = put the primary stress on the preceding syllable -// _: short pause -// _ a shorter pause -// || indicates a word boundary within a phoneme string -// | can be used to separate two adjacent characters, to prevent -// them from being considered as a multi-character phoneme mnemonic - // Numbers _0 kore _1 tahi @@ -41,4 +9,9 @@ _6 ono _7 whitu _8 waru _9 iwa -_10 tekau + +// Stress and raru / raruraru fix +kōrero $1 //first syllable +raru 'ra_ru +raruraru 'ra_ru_:ra_ru +urupā u_rupaa diff --git a/espeak-ng-data/lang/poz/mi b/espeak-ng-data/lang/poz/mi index 6fac6cfa..1640cc6a 100644 --- a/espeak-ng-data/lang/poz/mi +++ b/espeak-ng-data/lang/poz/mi @@ -1,10 +1,11 @@ language mi +status testing // https://github.com/espeak-ng/espeak-ng/blob/master/docs/voices.md#words words 1 2 // taken from Jacky -pitch 85 130 +pitch 115 130 formant 0 150 155 100 formant 1 90 155 70