Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +25 -0
- CosyVoice-ttsfrd/resource.zip +3 -0
- CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmu2ft +21 -0
- CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmu_lts_rules.scm +0 -0
- CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict-0.4.diff +0 -0
- CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict-0.4.out +0 -0
- CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict-0.4.scm +0 -0
- CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict_compile.scm +41 -0
- CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict_extensions.scm +574 -0
- CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmulex.scm +466 -0
- CosyVoice-ttsfrd/resource/festival/dicts/oald/COPYING +35 -0
- CosyVoice-ttsfrd/resource/festival/dicts/oald/ali.oald.lex +0 -0
- CosyVoice-ttsfrd/resource/festival/dicts/oald/oald_extensions.scm +1704 -0
- CosyVoice-ttsfrd/resource/festival/dicts/oald/oald_lts_rules.scm +0 -0
- CosyVoice-ttsfrd/resource/festival/dicts/oald/oaldlex.scm +347 -0
- CosyVoice-ttsfrd/resource/festival/dicts/wsj.wp39.poslexR +0 -0
- CosyVoice-ttsfrd/resource/festival/dicts/wsj.wp39.tri.ngrambin +3 -0
- CosyVoice-ttsfrd/resource/festival/etc/email_filter +47 -0
- CosyVoice-ttsfrd/resource/festival/festdoc.scm +178 -0
- CosyVoice-ttsfrd/resource/festival/holmes_phones.scm +118 -0
- CosyVoice-ttsfrd/resource/festival/klatt_durs.scm +85 -0
- CosyVoice-ttsfrd/resource/festival/lexicons.scm +274 -0
- CosyVoice-ttsfrd/resource/festival/mbrola.scm +103 -0
- CosyVoice-ttsfrd/resource/festival/mettree.scm +88 -0
- CosyVoice-ttsfrd/resource/festival/multisyn/multisyn.scm +195 -0
- CosyVoice-ttsfrd/resource/festival/multisyn/multisyn_pauses.scm +102 -0
- CosyVoice-ttsfrd/resource/festival/multisyn/radio_phones_multisyn.scm +136 -0
- CosyVoice-ttsfrd/resource/festival/multisyn/send_xwaves.scm +318 -0
- CosyVoice-ttsfrd/resource/festival/multisyn/target_cost.scm +410 -0
- CosyVoice-ttsfrd/resource/festival/phoneset.scm +134 -0
- CosyVoice-ttsfrd/resource/festival/phrase.scm +171 -0
- CosyVoice-ttsfrd/resource/festival/pos.scm +229 -0
- CosyVoice-ttsfrd/resource/festival/radio_phones.scm +122 -0
- CosyVoice-ttsfrd/resource/festival/scfg.scm +62 -0
- CosyVoice-ttsfrd/resource/festival/singing-mode.scm +673 -0
- CosyVoice-ttsfrd/resource/festival/siod.scm +638 -0
- CosyVoice-ttsfrd/resource/festival/soleml-mode.scm +336 -0
- CosyVoice-ttsfrd/resource/festival/tobi.scm +338 -0
- CosyVoice-ttsfrd/resource/festival/tobi_rules.scm +1002 -0
- CosyVoice-ttsfrd/resource/festival/token.scm +815 -0
- CosyVoice-ttsfrd/resource/festival/tokenpos.scm +286 -0
- CosyVoice-ttsfrd/resource/festival/tts.scm +304 -0
- CosyVoice-ttsfrd/resource/festival/voices/english/kal_diphone/COPYING +43 -0
- CosyVoice-ttsfrd/resource/festival/voices/english/kal_diphone/festvox/kal_diphone.scm +266 -0
- CosyVoice-ttsfrd/resource/festival/voices/english/kal_diphone/festvox/kaldurtreeZ.scm +978 -0
- CosyVoice-ttsfrd/resource/festival/voices/english/kal_diphone/group/kallpc16k.group +0 -0
- CosyVoice-ttsfrd/resource/festival/voices/english/rab_diphone/COPYING +38 -0
- CosyVoice-ttsfrd/resource/festival/voices/english/rab_diphone/festvox/rab_diphone.scm +263 -0
- CosyVoice-ttsfrd/resource/jprsc/COPYING +100 -0
- CosyVoice-ttsfrd/resource/jprsc/char.bin +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,28 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
CosyVoice-ttsfrd/ttsfrd_dependency-0.1-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
37 |
+
CosyVoice-ttsfrd/resource/ws_zhsc/puncNumberTimeLetter.dict filter=lfs diff=lfs merge=lfs -text
|
38 |
+
CosyVoice-ttsfrd/resource/ws_chhk/xiaoyan.dict filter=lfs diff=lfs merge=lfs -text
|
39 |
+
CosyVoice-ttsfrd/resource/ws_hk/puncNumberTimeLetter.dict filter=lfs diff=lfs merge=lfs -text
|
40 |
+
CosyVoice-ttsfrd/resource/ws/xiaoyan.dict filter=lfs diff=lfs merge=lfs -text
|
41 |
+
CosyVoice-ttsfrd/resource/ws_zhsc/xiaoyan.dict filter=lfs diff=lfs merge=lfs -text
|
42 |
+
CosyVoice-ttsfrd/resource/ws_zhsc/crf_model filter=lfs diff=lfs merge=lfs -text
|
43 |
+
CosyVoice-ttsfrd/resource/ws_zhsc/ws-dfa-rule.dict filter=lfs diff=lfs merge=lfs -text
|
44 |
+
CosyVoice-ttsfrd/resource/ws_chsh/ws-dfa-rule.dict filter=lfs diff=lfs merge=lfs -text
|
45 |
+
CosyVoice-ttsfrd/ttsfrd-0.4.2-cp310-cp310-linux_x86_64.whl filter=lfs diff=lfs merge=lfs -text
|
46 |
+
CosyVoice-ttsfrd/resource/ws_hk/ws-dfa-rule.dict filter=lfs diff=lfs merge=lfs -text
|
47 |
+
CosyVoice-ttsfrd/resource/ws_chsh/puncNumberTimeLetter.dict filter=lfs diff=lfs merge=lfs -text
|
48 |
+
CosyVoice-ttsfrd/resource/festival/dicts/wsj.wp39.tri.ngrambin filter=lfs diff=lfs merge=lfs -text
|
49 |
+
CosyVoice-ttsfrd/ttsfrd-0.4.2-cp38-cp38-linux_x86_64.whl filter=lfs diff=lfs merge=lfs -text
|
50 |
+
CosyVoice-ttsfrd/resource/ws_chhk/puncNumberTimeLetter.dict filter=lfs diff=lfs merge=lfs -text
|
51 |
+
CosyVoice-ttsfrd/resource/ws/puncNumberTimeLetter.dict filter=lfs diff=lfs merge=lfs -text
|
52 |
+
CosyVoice-ttsfrd/resource/ws/ws-dfa-rule.dict filter=lfs diff=lfs merge=lfs -text
|
53 |
+
CosyVoice-ttsfrd/resource/ws_chhk/ws-dfa-rule.dict filter=lfs diff=lfs merge=lfs -text
|
54 |
+
CosyVoice-ttsfrd/resource/ws/crf_model filter=lfs diff=lfs merge=lfs -text
|
55 |
+
CosyVoice-ttsfrd/resource/ws_hk/xiaoyan.dict filter=lfs diff=lfs merge=lfs -text
|
56 |
+
CosyVoice-ttsfrd/resource/ws_chsh/xiaoyan.dict filter=lfs diff=lfs merge=lfs -text
|
57 |
+
CosyVoice-ttsfrd/resource/jprsc/sys.dic filter=lfs diff=lfs merge=lfs -text
|
58 |
+
CosyVoice2-0.5B/flow.decoder.estimator.fp16.l20.plan filter=lfs diff=lfs merge=lfs -text
|
59 |
+
CosyVoice2-0.5B/flow.decoder.estimator.fp16.v100.plan filter=lfs diff=lfs merge=lfs -text
|
60 |
+
CosyVoice2-0.5B/flow.decoder.estimator.fp16.a10.plan filter=lfs diff=lfs merge=lfs -text
|
CosyVoice-ttsfrd/resource.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dcb3970fd4f52d036f245493360d97d0da1014f917deb4b9d83a3ded97483113
|
3 |
+
size 338914555
|
CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmu2ft
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
#
|
3 |
+
# Converts cmulexicon to Festival format
|
4 |
+
#
|
5 |
+
# usage: cmu2ft cmudict.0.1 cmu_lex.scm
|
6 |
+
|
7 |
+
#sed 's/er0/er0 r/' | sed 's/er1/er1 r/' | sed 's/er2/er2 r/' |
|
8 |
+
|
9 |
+
echo >$2
|
10 |
+
echo ";; CMUDICT-0.4 Converted to Festival lexicon format" >>$2
|
11 |
+
cat $1 | tr "[A-Z]" "[a-z]" | sed 's/ah0/ax/g' |
|
12 |
+
tr 2 1 |
|
13 |
+
awk '{if ($1 == "##")
|
14 |
+
printf(";; %s\n",$0);
|
15 |
+
else if ($1 ~ /^[a-z][a-z]*$/)
|
16 |
+
{ printf("(")
|
17 |
+
printf("\"%s\" nil (%s",$1,$2)
|
18 |
+
for (i=3; i <= NF; i++)
|
19 |
+
printf " %s",$i
|
20 |
+
printf "))\n"
|
21 |
+
}} ' >> $2
|
CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmu_lts_rules.scm
ADDED
The diff for this file is too large to render.
See raw diff
|
|
CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict-0.4.diff
ADDED
The diff for this file is too large to render.
See raw diff
|
|
CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict-0.4.out
ADDED
The diff for this file is too large to render.
See raw diff
|
|
CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict-0.4.scm
ADDED
The diff for this file is too large to render.
See raw diff
|
|
CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict_compile.scm
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 2008 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Compile the lexicon
|
35 |
+
;;;
|
36 |
+
|
37 |
+
(load "cmulex.scm")
|
38 |
+
(lex.compile "all.scm" "cmudict-0.4.out")
|
39 |
+
|
40 |
+
|
41 |
+
|
CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmudict_extensions.scm
ADDED
@@ -0,0 +1,574 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1998 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Extra items that have sufficient frequency and are pronounced
|
35 |
+
;;; wrongly that are to be added to the compiled version of
|
36 |
+
;;; the CMULEX lexicon
|
37 |
+
;;;
|
38 |
+
;;; This list we derived from various text databases and actually
|
39 |
+
;;; listening to the LTS models
|
40 |
+
|
41 |
+
("dont" v (d ow1 n t))
|
42 |
+
("doesnt" v (d ah1 z n t))
|
43 |
+
("youre" nil (y ao1 r))
|
44 |
+
("wasnt" v (w aa1 z n t))
|
45 |
+
("wouldnt" v (w uh1 d n t))
|
46 |
+
("couldnt" v (k uh1 d n t))
|
47 |
+
("shouldnt" v (sh uh1 d n t))
|
48 |
+
("youve" nil (y uw1 v))
|
49 |
+
("werent" nil (w er1 n t))
|
50 |
+
("Lieut" nil (l uw t eh1 n ax n t))
|
51 |
+
("hed" v (hh iy1 d))
|
52 |
+
("youd" v (y uw1 d))
|
53 |
+
("Ayatullah" n (ay1 ax t uh1 l ax))
|
54 |
+
("intifadeh" n (ih1 n t ax f aa1 d ey))
|
55 |
+
("Gaddafi" n (g ax d ae1 f iy))
|
56 |
+
("Muammar" n (m uw ae1 m m aa1 r) )
|
57 |
+
("prizewinning" n (p r ay1 z w ih1 n ax ng) )
|
58 |
+
("Yevgeni" n (y eh v g eh1 n iy) )
|
59 |
+
("HIV" n (ey1 ch ay1 v iy) )
|
60 |
+
("Lemonick" b (l eh m ah1 n ax k) )
|
61 |
+
("sures" n (sh uw1 r z) )
|
62 |
+
("putsch" n (p uh1 t ch) )
|
63 |
+
("oclock" n (ax k l aa1 k) )
|
64 |
+
("Peterzell" n (p iy1 t er z eh l) )
|
65 |
+
("yds" n (y aa1 r d z) )
|
66 |
+
("mujahedin" n (m uw1 hh ax hh eh d iy n) )
|
67 |
+
("Zedong" n (z ey1 d ao ng) )
|
68 |
+
("Ungeheuer" n (ah n g ax hh uw er) )
|
69 |
+
("antiapartheid" n (ae1 n t iy ax p aa1 r t hh ay t ) )
|
70 |
+
("auteur" n (ow t uw1 r) )
|
71 |
+
("surefire" n (sh uw r f ay1 er) )
|
72 |
+
("moviegoer" n (m uw1 v iy g ow er) )
|
73 |
+
("OHara" n (ow hh aa1 r ax) )
|
74 |
+
("NIH" n (eh1 n ay ey1 ch) )
|
75 |
+
("Sotheby" n (s ao1 th ax b iy) )
|
76 |
+
("Dak" n (d aa1 k) )
|
77 |
+
("itll" n (ih1 t ax l) )
|
78 |
+
("Kryuchkov" n (k r uw1 ch k ax v) )
|
79 |
+
("FDIC" n (eh1 f d ax k) )
|
80 |
+
("Caltech" n (k ae1 l t eh1 k) )
|
81 |
+
("VIP" n (v iy1 ay p iy1) )
|
82 |
+
("whove" n (hh uw1 v) )
|
83 |
+
("Seiichi" n (s ey1 iy ch iy) )
|
84 |
+
("Kanise" n (k ae1 n iy z) )
|
85 |
+
("Gup" n (g uh1 p) )
|
86 |
+
("prizewinner" n (p r ay1 z w ih1 n er) )
|
87 |
+
("genocidal" n (jh eh1 n ax s ay1 d ax l) )
|
88 |
+
("eponymous" n (ax p aa1 n ax m ax s) )
|
89 |
+
("Tallinn" n (t aa1 l iy n) )
|
90 |
+
("Lothar" n (l ao th aa1 r) )
|
91 |
+
("Kampuchea" n (k ae m p ax ch iy1 ax) )
|
92 |
+
("Bessmertnykh" n (b eh s m eh1 r t n ax k) )
|
93 |
+
("yd" n (y aa1 r d) )
|
94 |
+
("atavistic" n (ae1 t ax v ih1 s t ax k ) )
|
95 |
+
("Tadzhikistan" n (t ae1 d zh ax k ax s t aa1 n) )
|
96 |
+
("sadomasochistic" n (s ey1 d ax m ae s ax k ih1 s t ax k) )
|
97 |
+
("impudent" n (ih1 m p y ax d ax n t) )
|
98 |
+
("antinuclear" n (ae1 n t ax n uw1 k l iy er) )
|
99 |
+
("Komsomolskaya" n (k ax m s aa1 m ax l s k ay1 ax ) )
|
100 |
+
("proj" n (p r aa1 jh eh k t) )
|
101 |
+
("ROTC" n (aa1 r ow t iy s iy1) )
|
102 |
+
("Jamil" n (jh ax m iy1 l) )
|
103 |
+
("Agha" n (aa1 g ax) )
|
104 |
+
("skewered" n (s k y uw1 er d) )
|
105 |
+
("celibate" n (s eh1 l ax b ax t) )
|
106 |
+
("Bubiyan" n (b uw1 b ax y aa n) )
|
107 |
+
("Bakatin" n (b ae1 k ax t ax n) )
|
108 |
+
("whod" n (hh uw1 d) )
|
109 |
+
("reverent" n (r eh1 v er ax n t) )
|
110 |
+
("occupiers" n (aa1 k y ax p ay1 r z) )
|
111 |
+
("meanspirited" n (m iy1 n s p ih1 r ax t ax d) )
|
112 |
+
("bluesy" n (b l uw1 z iy) )
|
113 |
+
("aboveground" n (ax b ah1 v g r aw n d) )
|
114 |
+
("Yanayev" n (y ae1 n ay eh1 v) )
|
115 |
+
("VOL" n (v ao1 l) )
|
116 |
+
("Teutonic" n (t uw t aa1 n ax k) )
|
117 |
+
("Serrill" n (s eh1 r ax l) )
|
118 |
+
("Branegan" n (b r ae1 n ax g ax n) )
|
119 |
+
("Bjerklie" n (b eh1 r k l iy) )
|
120 |
+
("unerring" n (uh n eh1 r ax ng) )
|
121 |
+
("sugarcane" n (sh uh1 g er k ey n) )
|
122 |
+
("simpleminded" n (s ih1 m p ax l m ay1 n d ax d) )
|
123 |
+
("menaced" n (m eh1 n ax s d) )
|
124 |
+
("kidnapers" n (k ih1 d n ae p er z) )
|
125 |
+
("detonator" n (d eh1 t ax n ey1 t er) )
|
126 |
+
("dachas" n (d aa1 ch ax s) )
|
127 |
+
("cheerily" n (ch iy1 r ax l iy) )
|
128 |
+
("chanteuse" n (sh ae1 n t ow z) )
|
129 |
+
("acidly" n (ae1 s ax d l iy) )
|
130 |
+
("Kirghizia" n (k ax r g ih1 t s iy ax) )
|
131 |
+
("Isozaki" n (iy1 s ax z aa1 k iy) )
|
132 |
+
("Ilyich" n (iy1 l y ax ch) )
|
133 |
+
("Eurocentric" n (y uw1 r ax s eh1 n t r ax k) )
|
134 |
+
("worshiping" n (w er1 sh ax p ax ng) )
|
135 |
+
("villainy" n (v ih1 l ax n iy) )
|
136 |
+
("souffle" n (s uw f l ey1) )
|
137 |
+
("redolent" n (r eh1 d ax l ax n t) )
|
138 |
+
("probusiness" n (p r ow b ih1 z n ax s) )
|
139 |
+
("postgraduate" n (p ow1 s t g r ae1 jh ax w ax t) )
|
140 |
+
("obstinate" n (aa1 b s t ax n ax t) )
|
141 |
+
("hallucination" n (hh ae l uw1 s ax n ey sh ax n) )
|
142 |
+
("goddam" n (g aa1 d ae m) )
|
143 |
+
("exorcism" n (eh1 k s ax r s ih1 z ax m ) )
|
144 |
+
("daringly" n (d ey1 r ax ng l iy) )
|
145 |
+
("backstabbing" n (b ae1 k s t ae1 b ax ng) )
|
146 |
+
("Wenceslas" n (w eh1 n s ax s l ax s) )
|
147 |
+
("Uzis" n (uw1 z iy z) )
|
148 |
+
("Trabant" n (t r ax b aa1 n t) )
|
149 |
+
("Sinead" n (sh ih1 n ey d) )
|
150 |
+
("Nazarbayev" n (n ae1 z er b ay1 ax v) )
|
151 |
+
("Nadia" n (n aa1 d iy ax) )
|
152 |
+
("unquenchable" n (uh n k w eh1 n sh ax b ax l) )
|
153 |
+
("typecast" n (t ay1 p k ae1 s t) )
|
154 |
+
("therell" n (dh eh1 r ax l) )
|
155 |
+
("syrupy" n (s ih1 r ax p iy) )
|
156 |
+
("superagent" n (s uw1 p er ey1 jh eh n t) )
|
157 |
+
("sourly" n (s aw1 er l iy) )
|
158 |
+
("shuddered" n (sh ah1 d er ax d) )
|
159 |
+
("seceding" n (s eh s iy1 d ax ng) )
|
160 |
+
("preternatural" n (p r iy t er n ae1 t ch er ax l) )
|
161 |
+
("postseason" n (p ow1 s t s iy1 s ax n) )
|
162 |
+
("policymaker" n (p aa1 l ax s iy m ey1 k er) )
|
163 |
+
("nosy" n (n ow1 z iy) )
|
164 |
+
("maleness" n (m ey1 l n ax s) )
|
165 |
+
("luscious" n (l ah1 sh ax s) )
|
166 |
+
("gigolo" n (jh ih1 g ax l ow) )
|
167 |
+
("genially" n (jh iy1 n iy ax l iy) )
|
168 |
+
("epiphanies" n (eh p ih1 f ae n iy z) )
|
169 |
+
("dungeon" n (d ah1 n jh ax n) )
|
170 |
+
("dogmas" n (d ao1 g m ax s) )
|
171 |
+
("discomfited" n (d ax s k aa1 m f ax t ax d) )
|
172 |
+
("deadlier" n (d eh1 d l iy er) )
|
173 |
+
("autoworkers" n (ao1 t ow w er k er z) )
|
174 |
+
("Yanqui" n (y ae1 n k iy) )
|
175 |
+
("Wehrmacht" n (v er m aa1 k t) )
|
176 |
+
("Trabants" n (t r ax b aa1 n t z) )
|
177 |
+
("Swahili" n (s w ax hh iy1 l iy) )
|
178 |
+
("Sodom" n (s aa1 d ax m) )
|
179 |
+
("Seurat" n (s uw1 r ax t) )
|
180 |
+
("NAACP" n (eh1 n d ah1 b ax l ey1 s iy p iy1) )
|
181 |
+
("Manichaean" n (m ae1 n ax k iy ax n) )
|
182 |
+
("Khaled" n (k aa1 l eh d) )
|
183 |
+
("Farouk" n (f aa r uw1 k) )
|
184 |
+
("Bendjedid" n (b eh1 n jh ax d ax d) )
|
185 |
+
("Beetlejuice" n (b iy1 t ax l jh uw s) )
|
186 |
+
("whir" n (w ih1 r) )
|
187 |
+
("tragicomedy" n (t r ae1 jh ax k aa1 m ax d iy) )
|
188 |
+
("touchingly" n (t ah1 ch ax ng l iy) )
|
189 |
+
("thered" n (dh eh1 r ax d) )
|
190 |
+
("tangy" n (t ae1 ng iy) )
|
191 |
+
("synonyms" n (s ih1 n ax n ax m z) )
|
192 |
+
("subspecies" n (s ah1 b s p iy sh iy z) )
|
193 |
+
("subjugated" n (s ax b jh ax g ey1 t ax d) )
|
194 |
+
("stunner" n (s t ah1 n er) )
|
195 |
+
("springy" n (s p r ih1 ng iy) )
|
196 |
+
("sorrows" n (s aa1 r ow z) )
|
197 |
+
("sequins" n (s iy1 k w ax n z) )
|
198 |
+
("schoolgirl" n (s k uw1 l g er l) )
|
199 |
+
("schoolchild" n (s k uw1 l ch ay l d) )
|
200 |
+
("scavenging" n (s k ae1 v ax n jh ax ng) )
|
201 |
+
("rampaging" n (r ae1 m p ey jh ax ng ) )
|
202 |
+
("radiance" n (r ey1 d y ax n s) )
|
203 |
+
("pussycat" n (p uh1 s iy k ae t) )
|
204 |
+
("paparazzi" n (p ae1 p er ae t s iy) )
|
205 |
+
("ovaries" n (ow1 v er iy z) )
|
206 |
+
("languorous" n (l ae1 ng ao r ax s) )
|
207 |
+
("incorruptible" n (ih1 n k er ah1 p t ax b ax l) )
|
208 |
+
("hypnotically" n (hh ih1 p n aa1 t ax k ax l iy) )
|
209 |
+
("grouchy" n (g r aw1 ch iy) )
|
210 |
+
("genitalia" n (jh eh1 n ax t ey1 l y ax) )
|
211 |
+
("fearlessly" n (f iy1 r l ax s l iy) )
|
212 |
+
("divinely" n (d ih1 v ay n l iy) )
|
213 |
+
("bluefish" n (b l uw1 f ax sh) )
|
214 |
+
("bayonets" n (b ey1 y ax n eh t s) )
|
215 |
+
("autoworker" n (ao1 t ow w er k er) )
|
216 |
+
("antihero" n (ae1 n t ax hh iy1 r ow) )
|
217 |
+
("Yel" n (y eh1 l) )
|
218 |
+
("Talmudic" n (t ae1 l m ax d ax k) )
|
219 |
+
("Staci" n (s t aa1 z iy) )
|
220 |
+
("Sese" n (s eh1 s iy1 ) )
|
221 |
+
("Senegalese" n (s ax n ax g ao l iy1 z) )
|
222 |
+
("Quezon" n (k w eh1 z ax n) )
|
223 |
+
("Pesci" n (p eh1 s k iy) )
|
224 |
+
("Mengele" n (m eh1 n g ax l ey) )
|
225 |
+
("Lagerfeld" n (l ae1 g er f eh l d) )
|
226 |
+
("Kerouac" n (k eh1 r ow ae k) )
|
227 |
+
("Kamisar" n (k ae1 m ax s aa r) )
|
228 |
+
("Janata" n (jh ax n ae1 t ax) )
|
229 |
+
("Hequet" n (hh eh1 k ax t) )
|
230 |
+
("Friedan" n (f r iy1 d ax n) )
|
231 |
+
("Dubrovnik" n (d ax b r ah1 v n ax k) )
|
232 |
+
("Candide" n (k ae n d iy1 d) )
|
233 |
+
("Bubba" n (b ah1 b ax) )
|
234 |
+
("AWOL" n (ey1 w ao l) )
|
235 |
+
("wouldve" n (w uh1 d ax v) )
|
236 |
+
("wisecrack" n (w ay1 z k r ae1 k) )
|
237 |
+
("voce" n (v ao1 k ax) )
|
238 |
+
("uproarious" n (ax p r ao1 r iy ax s) )
|
239 |
+
("unearthing" n (ax n er1 th ax ng) )
|
240 |
+
("undoes" n (ax n d ah1 z) )
|
241 |
+
("underappreciated" n (ah1 n d er ax p r iy1 sh iy ey1 t ax d) )
|
242 |
+
("tousled" n (t ao1 s ax l d) )
|
243 |
+
("thatll" n (dh ae t ax l) )
|
244 |
+
("teasingly" n (t iy1 z ax ng l iy) )
|
245 |
+
("strafed" n (s t r ey1 f d) )
|
246 |
+
("stateless" n (s t ey1 t l ax s) )
|
247 |
+
("stagings" n (s t ey1 jh ax ng z) )
|
248 |
+
("reveres" n (r eh1 v ax r iy z) )
|
249 |
+
("retells" n (r iy t eh1 l z) )
|
250 |
+
("provocateur" n (p r ax v ao k ax t uh1 r) )
|
251 |
+
("prenuptial" n (p r iy n ah1 p sh ax l) )
|
252 |
+
("pinup" n (p ih1 n ah1 p) )
|
253 |
+
("paterfamilias" n (p ae1 t er f ax m iy1 l iy ax z) )
|
254 |
+
("paroxysm" n (p ax r aa1 k s ax z ax m) )
|
255 |
+
("parodying" n (p ae1 r ax d iy ax ng) )
|
256 |
+
("merriment" n (m eh1 r ax m ax n t) )
|
257 |
+
("menstruation" n (m ax n s t r ey1 sh ax n) )
|
258 |
+
("indiscretion" n (ih1 n d ax s k r eh1 sh ax n) )
|
259 |
+
("guesthouse" n (g eh1 s t hh aw s) )
|
260 |
+
("fratricidal" n (f r ae t r ax s ay1 d ax l) )
|
261 |
+
("fiendishly" n (f iy1 n d ax sh l iy) )
|
262 |
+
("enthuses" n (eh n th uw1 z ax z) )
|
263 |
+
("encapsulates" n (eh n k ae1 p s ax l ey1 t s) )
|
264 |
+
("discomfiting" n (d ax s k aa1 m f ax t ax ng) )
|
265 |
+
("cul" n (k uh1 l) )
|
266 |
+
("cheekbones" n (ch iy1 k b ow n z) )
|
267 |
+
("bizarrely" n (b ax z aa1 r l iy) )
|
268 |
+
("bestiality" n (b iy1 s t iy ae1 l ax t iy) )
|
269 |
+
("audiotapes" n (aa1 d iy ow t ey1 p s) )
|
270 |
+
("acolyte" n (ae1 k ax l ay t) )
|
271 |
+
("achingly" n (ey1 k ax ng l iy) )
|
272 |
+
("Wayans" n (w ey1 y ax n z) )
|
273 |
+
("Urquart" n (ae1 r k er t) )
|
274 |
+
("Ural" n (y uw1 r ax l) )
|
275 |
+
("Sindayen" n (s ih1 n d ax y ax n) )
|
276 |
+
("Seuss" n (s uw1 s) )
|
277 |
+
("Plexiglas" n (p l eh1 k s iy g l ae s) )
|
278 |
+
("Overbye" n (ow1 v er b ay) )
|
279 |
+
("Nostradamus" n (n aa1 s t r ax d ae1 m ax s) )
|
280 |
+
("Navajos" n (n ae1 v ax hh ow z) )
|
281 |
+
("Massoud" n (m ax s uw1 d) )
|
282 |
+
("Kales" n (k ey1 l z) )
|
283 |
+
("Gio" n (jh iy1 ow) )
|
284 |
+
("Gianfranco" n (jh iy1 ax n f r ae n k ow) )
|
285 |
+
("Gaultier" n (g ao1 l t iy ey) )
|
286 |
+
("Foucault" n (f ow1 k ow l t) )
|
287 |
+
("FSLIC" n (eh1 f s l ax k) )
|
288 |
+
("Disneyesque" n (d ih1 z n ey eh1 s k) )
|
289 |
+
("Corleone" n (k aa1 r l iy ow1 n iy) )
|
290 |
+
("Arnaz" n (aa1 r n ax z) )
|
291 |
+
("Almash" n (ae1 l m ax sh) )
|
292 |
+
("yous" n (y uw1 z) )
|
293 |
+
("whooshing" n (w uw1 sh ax ng) )
|
294 |
+
("volunteerism" n (v ao1 l ax n t iy1 r ax z ax m) )
|
295 |
+
("upended" n (ah1 p eh1 n d ax d) )
|
296 |
+
("unacknowledged" n (ah1 n ax k n aa1 l ax jh d) )
|
297 |
+
("thrillingly" n (th r ih1 l ax g l iy) )
|
298 |
+
("tackiness" n (t ae1 k ax n ax s) )
|
299 |
+
("supernal" n (s uw p eh1 r n ax l) )
|
300 |
+
("superheroes" n (s uw1 p er hh iy1 r ow z) )
|
301 |
+
("superego" n (s uw1 p er iy1 g ow) )
|
302 |
+
("straitlaced" n (s t r ey1 t l ey s d) )
|
303 |
+
("stateroom" n (s t ey1 t r uw m) )
|
304 |
+
("sorcerer" n (s ao1 r s er er ) )
|
305 |
+
("skewering" n (s k y uw1 er ax ng) )
|
306 |
+
("semiprivate" n (s eh1 m ay p r ay1 v ax t) )
|
307 |
+
("saviors" n (s ey1 v y er z) )
|
308 |
+
("roguish" n (r ow1 g ax sh) )
|
309 |
+
("rereleased" n (r iy1 r ax l iy1 s t) )
|
310 |
+
("repressing" n (r ax p r eh1 s ax ng) )
|
311 |
+
("puppeteers" n (p ah1 p ax t iy1 r z) )
|
312 |
+
("provocateurs" n (p r ax v ao k ax t uh1 r z) )
|
313 |
+
("prodemocracy" n (p r ow1 d ax m aa1 k r ax s iy) )
|
314 |
+
("prizewinners" n (p r ay1 z w ih1 n er z) )
|
315 |
+
("presummit" n (p r iy1 s ah1 m ax t) )
|
316 |
+
("pregame" n (p r iy1 g ey1 m) )
|
317 |
+
("preadolescent" n (p r iy1 ae1 d ax l eh s ax n t) )
|
318 |
+
("postindustrial" n (p ow1 s t ax n d ah1 s t r y ax l) )
|
319 |
+
("playgoers" n (p l ey1 g ow1 er z) )
|
320 |
+
("pastiches" n (p ax s t iy1 ch ax z) )
|
321 |
+
("paramour" n (p ae1 r ax m ao r) )
|
322 |
+
("outdoorsman" n (aw1 t d ao r z m ax n) )
|
323 |
+
("ordeals" n (ao r d iy1 l z) )
|
324 |
+
("nuisances" n (n uw1 s ax n s ax z) )
|
325 |
+
("nonmusical" n (n aa1 n m y uh1 z ax k ax l) )
|
326 |
+
("noncombatant" n (n aa1 n k aa1 m b ax t ax n t) )
|
327 |
+
("neurosurgery" n (n y uw1 r ax s er1 jh er iy) )
|
328 |
+
("narcotraficantes" n (n ae1 r k ax t r ae1 f ax k ae1 n t iy z) )
|
329 |
+
("mischievously" n (m ax s ch iy1 v y ax s l iy) )
|
330 |
+
("menaces" n (m eh1 n ax s ax z) )
|
331 |
+
("manifestos" n (m ae1 n ax f eh1 s t ow s) )
|
332 |
+
("magnanimity" n (m ae1 g n ax n ih1 m ax t iy) )
|
333 |
+
("limply" n (l ih1 m p l iy) )
|
334 |
+
("knifing" n (n ay1 f ax ng) )
|
335 |
+
("inveighed" n (ax n v ey1 d) )
|
336 |
+
("inelegant" n (ax n eh1 l ax g ax n t) )
|
337 |
+
("highflyers" n (hh ay1 f l ay1 er z) )
|
338 |
+
("groped" n (g r ow1 p d) )
|
339 |
+
("filmgoers" n (f ih1 l m g ow1 er z) )
|
340 |
+
("eunuchs" n (y uh1 n ax k s) )
|
341 |
+
("ennobling" n (eh n ow1 b ax l ax ng) )
|
342 |
+
("doyenne" n (d ao y eh1 n) )
|
343 |
+
("docudramas" n (d ao k y ax d r ae1 m ax z) )
|
344 |
+
("detours" n (d iy t uh1 r z) )
|
345 |
+
("desecrated" n (d eh1 s ax k r ey1 t ax d) )
|
346 |
+
("decoded" n (d ax k ow1 d ax d) )
|
347 |
+
("dOrsay" n (d ao1 r s iy) )
|
348 |
+
("cynosure" n (s ay1 n ax sh uh r) )
|
349 |
+
("curmudgeonly" n (k er m uh1 d jh ax n l iy) )
|
350 |
+
("cmon" n (k ax m aa1 n) )
|
351 |
+
("cellblock" n (s eh1 l b l aa k) )
|
352 |
+
("carousing" n (k ax r aw1 z ax ng))
|
353 |
+
("blitzing" n (b l ih1 t z ax ng) )
|
354 |
+
("bejeweled" n (b ax jh uw1 ax l d) )
|
355 |
+
("bedevils" n (b ax d eh1 v ax l z) )
|
356 |
+
("bareknuckle" n (b eh1 r n ah1 k ax l) )
|
357 |
+
("awestruck" n (ao1 s t r ah k) )
|
358 |
+
("automatons" n (ao t aa1 m ax t ax n z) )
|
359 |
+
("anteroom" n (ae1 n t ax r uw m) )
|
360 |
+
("anchorwoman" n (ae1 ng k aa r w uh1 m ax n) )
|
361 |
+
("Yahweh" n (y ae1 w ey) )
|
362 |
+
("Vartoogian" n (v er t ow1 g iy ax n) )
|
363 |
+
("Uttar" n (uw1 t er) )
|
364 |
+
("Tsufura" n (t s uw f uw1 r ax) )
|
365 |
+
("Sousuke" n (s ow s uh1 k ey) )
|
366 |
+
("Segelken" n (s eh1 g ax l k ax n) )
|
367 |
+
("Scissorhands" n (s ih1 s er hh ae1 n d z) )
|
368 |
+
("Presbyterians" n (p r eh s b ax t iy1 r iy ax n z) )
|
369 |
+
("Pharaoh" n (f ey1 r ow) )
|
370 |
+
("Nachtwey" n (n ae1 k t w ey) )
|
371 |
+
("Medecins" n (m eh d ax s ae1 n z) )
|
372 |
+
("Manhattanites" n (m ae n hh ae1 t ax n ay1 t s) )
|
373 |
+
("Madama" n (m ax d ae1 m ax) )
|
374 |
+
("Ljubljana" n (l uh1 b l y ae1 n ae) )
|
375 |
+
("Knute" n (k ax n uw1 t) )
|
376 |
+
("Hangin" n (hh ae ng ax n) )
|
377 |
+
("Halaki" n (hh ax l ae1 k iy) )
|
378 |
+
("Gordievsky" n (g ao r d ax eh1 v s k iy) )
|
379 |
+
("Geremek" n (g eh1 r ax m eh k) )
|
380 |
+
("Ehud" n (ey1 hh uw1 d) )
|
381 |
+
("Dieu" n (d y uw1) )
|
382 |
+
("Dachau" n (d ae1 k aw) )
|
383 |
+
("Chaim" n (ch ey1 m) )
|
384 |
+
("Bnai" n (b ax n ay1) )
|
385 |
+
("Antichrist" n (ae1 n t iy k r ay1 s t) )
|
386 |
+
("Afrocentric" n (ae1 f r ax s eh1 n t r ax k) )
|
387 |
+
("wombs" n (w uw1 m z) )
|
388 |
+
("windblown" n (w ih1 n d b l ow n) )
|
389 |
+
("vibrates" v (v ay1 b r ey t s) )
|
390 |
+
("vertebrae" n (v er1 t ax b r ey) )
|
391 |
+
("underpants" n (ah1 n d er p ae1 n t s) )
|
392 |
+
("tuxedoes" n (t ax k s iy1 d ow z) )
|
393 |
+
("tumbleweed" n (t ah1 m b ax l w iy d) )
|
394 |
+
("tryin" n (t r ay1 ax n) )
|
395 |
+
("torturous" n (t ao1 r t y ax s) )
|
396 |
+
("superrich" n (s uw1 p er r ih1 ch) )
|
397 |
+
("subliminally" n (s ax b l ih1 m ax n ax l iy) )
|
398 |
+
("subjugate" n (s ax b jh ax g ey1 t) )
|
399 |
+
("stupefying" n (s t uw1 p ax f ay ax ng) )
|
400 |
+
("stomachache" n (s t ah1 m ax k ey1 k) )
|
401 |
+
("sophistry" n (s ow1 f ax s t r iy) )
|
402 |
+
("sociopath" n (s ow1 sh y ow p ae1 th) )
|
403 |
+
("snugly" n (s n ah1 g l iy) )
|
404 |
+
("serenades" n (s eh1 r ax n ey1 d z) )
|
405 |
+
("sepulchral" n (s ax p uh1 l k r ax l) )
|
406 |
+
("satirize" n (s ae1 t ax r ay z) )
|
407 |
+
("satiny" n (s ae1 t ax n y ) )
|
408 |
+
("runaways" n (r ah1 n ax w ey z) )
|
409 |
+
("rivulets" n (r ih1 v ax l ax t s) )
|
410 |
+
("ricocheting" n (r ih1 k ax sh ey ax ng) )
|
411 |
+
("reimagine" n (r iy ax m ae1 jh ax n) )
|
412 |
+
("refusenik" n (r ax f y uw1 z n ax k) )
|
413 |
+
("ravings" n (r ey1 v ax ng z) )
|
414 |
+
("radicchio" n (r ax d ih1 k iy ow) )
|
415 |
+
("preseason" n (p r iy1 s iy1 s ax n) )
|
416 |
+
("premed" n (p r iy1 m eh1 d) )
|
417 |
+
("preinvasion" n (p r iy1 ax n v ey1 sh ax n) )
|
418 |
+
("precancerous" n (p r iy k ae1 n s er ax s) )
|
419 |
+
("postmenopausal" n (p ow1 s t m eh n ax p ao1 s ax l) )
|
420 |
+
("pinups" n (p ih1 n ah1 p s) )
|
421 |
+
("passerby" n (p ae1 s er b ay) )
|
422 |
+
("parroted" n (p ae1 r ax t ax d) )
|
423 |
+
("paranormal" n (p ae1 r ax n ao1 r m ax l) )
|
424 |
+
("owlish" n (aw1 l ax sh) )
|
425 |
+
("overhyped" n (ow1 v er hh ay1 p t) )
|
426 |
+
("noire" n (n ax w ae1 r) )
|
427 |
+
("motorboats" n (m ow1 t er b ow t s) )
|
428 |
+
("miscreant" n (m ih1 s k r iy ax n t) )
|
429 |
+
("megalomaniacal" n (m eh1 g l ax m ey1 n iy ax k ax l) )
|
430 |
+
("marquees" n (m aa1 r k iy z) )
|
431 |
+
("lapels" n (l ax p eh1 l z) )
|
432 |
+
("kowtowing" n (k aw1 t aw ax ng) )
|
433 |
+
("jeremiads" n (jh eh1 r ax m ay1 ax d z) )
|
434 |
+
("interweaves" n (ih1 n t er w iy1 v z) )
|
435 |
+
("insuperable" n (ax n s uw1 p er ax b ax l) )
|
436 |
+
("insanely" n (ax n s ey1 n l iy) )
|
437 |
+
("inflames" n (ax n f l ey1 m z) )
|
438 |
+
("infest" n (ax n f eh1 s t) )
|
439 |
+
("inebriated" n (ax n iy1 b r ax ey1 t ax d) )
|
440 |
+
("incompletely" n (ih1 n k ax m p l iy1 t l iy) )
|
441 |
+
("impersonate" n (ax m p eh1 r s ax n ey t) )
|
442 |
+
("hysterectomies" n (hh ih1 s t er eh k t ax m iy z) )
|
443 |
+
("hypothalamus" n (hh ay1 p ax th ae1 l ax m ax s) )
|
444 |
+
("hucksterism" n (hh ah1 k s t er ax z ax m) )
|
445 |
+
("hotheads" n (hh aa1 t hh eh1 d z) )
|
446 |
+
("hotheaded" n (hh aa1 t hh eh1 d ax d) )
|
447 |
+
("heavenward" n (hh eh1 v ax n w er d) )
|
448 |
+
("hauteur" n (hh ow t uh1 r) )
|
449 |
+
("gunplay" n (g ah1 n p l ey ) )
|
450 |
+
("griddle" n (g r ih1 d ax l) )
|
451 |
+
("gewgaws" n (g iy1 g ao z) )
|
452 |
+
("gaiety" n (g ey1 ax t iy) )
|
453 |
+
("fuchsia" n (f y uw1 sh ax) )
|
454 |
+
("fixers" n (f ih1 k s er z) )
|
455 |
+
("fidgety" n (f ih1 d jh ax t iy) )
|
456 |
+
("farewells" n (f eh1 r w eh1 l z) )
|
457 |
+
("exoticism" n (eh g z aa1 t ax k ax z ax m) )
|
458 |
+
("enshrines" n (ax n sh r ay1 n z) )
|
459 |
+
("dyslexia" n (d ax s l eh1 k s y ax) )
|
460 |
+
("dynamiting" n (d ay1 n ax m ay t ax ng) )
|
461 |
+
("drumbeats" n (d r ah1 m b iy t s) )
|
462 |
+
("dopers" n (d ow1 p er z) )
|
463 |
+
("doin" n (d uw1 ax n) )
|
464 |
+
("distantly" n (d ih1 s t ax n t l iy) )
|
465 |
+
("dissolute" n (d ih1 s ax l uw t) )
|
466 |
+
("detests" n (d ax t eh1 s t s) )
|
467 |
+
("despots" n (d eh1 s p ax t s) )
|
468 |
+
("denizen" n (d eh1 n ax z ax n) )
|
469 |
+
("decaf" n (d iy1 k ae1 f) )
|
470 |
+
("dIsere" n (d iy s eh1 r iy) )
|
471 |
+
("clanged" n (k l ae1 ng d ) )
|
472 |
+
("bewitching" n (b ax w ih1 ch ax ng) )
|
473 |
+
("barest" n (b eh1 r ax s t ) )
|
474 |
+
("banjoist" n (b ae1 n jh ow ax s t) )
|
475 |
+
("balsamic" n (b ax l s ae1 m ax k) )
|
476 |
+
("auteurs" n (ow t uw1 r z) )
|
477 |
+
("aswarm" n (ae z w er1 m) )
|
478 |
+
("arrivistes" n (ae1 r ax v iy1 s t ax z) )
|
479 |
+
("apparat" n (ae1 p ax r ae t) )
|
480 |
+
("amorality" n (ey1 m er ae1 l ax t iy) )
|
481 |
+
|
482 |
+
;;; So what about UK words ?
|
483 |
+
("cheque" n (ch eh1 k) )
|
484 |
+
("cheques" n (ch eh1 k s) )
|
485 |
+
("chequing" n (ch eh1 k ax ng) )
|
486 |
+
("honour" n (aa1 n er) )
|
487 |
+
("honouring" n (aa1 n er ax ng) )
|
488 |
+
("honours" n (aa1 n er z) )
|
489 |
+
("honourable" n (aa1 n er ax b ax l) )
|
490 |
+
("honoured" n (aa1 n er d) )
|
491 |
+
("favour" n (f ey1 v er) )
|
492 |
+
("favours" n (f ey1 v er z) )
|
493 |
+
("favoured" n (f ey1 v er d) )
|
494 |
+
("favourite" n (f ey1 v er ih t) )
|
495 |
+
("favourites" n (f ey1 v er ih t s) )
|
496 |
+
("favouring" n (f ey1 v er ax ng) )
|
497 |
+
("favourable" n (f ey1 v er ax b ax l) )
|
498 |
+
("favourably" n (f ey1 v er ax b l iy) )
|
499 |
+
("labour" n (l ey1 b er) )
|
500 |
+
("labours" n (l ey1 b er z) )
|
501 |
+
("laboured" n (l ey1 b er d) )
|
502 |
+
("labouring" n (l ey1 b er ax ng) )
|
503 |
+
("colour" n (k ah1 l er) )
|
504 |
+
("colouring" n (k ah1 l er ax ng) )
|
505 |
+
("colours" n (k ah1 l er z) )
|
506 |
+
("colourful" n (k ah1 l er f ax l) )
|
507 |
+
("colourfully" n (k ah1 l er f ax l iy) )
|
508 |
+
|
509 |
+
;; Added July 2004
|
510 |
+
("tanja" n (t ae1 n y ah))
|
511 |
+
("waibel" n (w ay1 b ax l))
|
512 |
+
("eskenazi" n (eh s k ax n aa1 z iy))
|
513 |
+
("carbonell" nil (k aa1 r b ow n eh1 l))
|
514 |
+
("metze" nil (m eh1 t z ax))
|
515 |
+
("toth" nil (t ow1 th))
|
516 |
+
("adele" nil (ax d eh1 l))
|
517 |
+
("weitz" nil (w ay1 t s))
|
518 |
+
("shamos" nil (sh ey1 m ao s))
|
519 |
+
("ziad" nil (z iy1 ax d))
|
520 |
+
("cmu" nil (s iy1 eh1 m y uw1))
|
521 |
+
("hua" nil (w aa1))
|
522 |
+
("kornel" nil (k ao r n eh1 l))
|
523 |
+
("lavie" nil (l ax v iy1))
|
524 |
+
("raux" nil (r ow1))
|
525 |
+
("maeda" nil (m ay1 d ax))
|
526 |
+
("portune" nil (p ao r t uw1 n))
|
527 |
+
("stefanie" nil (s t eh1 f ae n iy))
|
528 |
+
("woszczyna" nil (w aa zh iy1 n ax0))
|
529 |
+
("waveform" nil (w ey1 v f ao1 r m))
|
530 |
+
("waveforms" nil (w ey1 v f ao1 r m z))
|
531 |
+
("dataset" nil (d ey1 t ah0 s eh1 t))
|
532 |
+
("datasets" nil (d ey1 t ah0 s eh1 t s))
|
533 |
+
|
534 |
+
;; Added July 2008
|
535 |
+
("hermione" n (hh er m ay1 ax n iy))
|
536 |
+
("tidied" v (t ay1 d ax d))
|
537 |
+
("tidies" v (t ay1 d ax z))
|
538 |
+
("untidy" v (ax n t ay1 d iy))
|
539 |
+
("tidying" v (t ay1 d iy ih ng))
|
540 |
+
("putting" v (p uh1 t ih ng))
|
541 |
+
("iphone" n (ay1 f ow n))
|
542 |
+
("ipod" n (ay1 p aa d))
|
543 |
+
("untie" v (ax n t ay1))
|
544 |
+
("kilohertz" n (k ih1 l ax hh er1 t s))
|
545 |
+
("linux" n (l ih1 n ah k s))
|
546 |
+
("miso" n (m iy1 s ow))
|
547 |
+
("gaijin" n (g ay1 jh ih n))
|
548 |
+
("uk" n (y uw1 k ey1))
|
549 |
+
("katie" n (k ey1 t iy))
|
550 |
+
("waistcoat" n (w ey1 s t k ow t))
|
551 |
+
("tarpaulin" n (t aa r p ao1 l ih n))
|
552 |
+
("trestle" n (t r eh1 s ax l))
|
553 |
+
("trestles" n (t r eh1 s ax l z))
|
554 |
+
("clunits" n (s iy1 eh1 l y uw1 n ih t s))
|
555 |
+
("clustergen" n (k l ah1 s t er jh eh1 n))
|
556 |
+
("libravox" n (l iy1 b r ax v aa1 k s))
|
557 |
+
("peeped" n (p iy1 p t))
|
558 |
+
("goodbyes" n (g uh1 d b ay1 z))
|
559 |
+
("spearmint" j (s p iy1 r m ih0 n t))
|
560 |
+
("surfed" v (s er1 f t))
|
561 |
+
("unpacked" v (ax0 n p ae1 k t))
|
562 |
+
("cookstove" v (k uh1 k s t ow1 v))
|
563 |
+
("woodstove" v (w uh1 d s t ow1 v))
|
564 |
+
("watertight" j (w ao1 t er0 t ay0 t))
|
565 |
+
("youtube" n (y uw1 t uw1 b))
|
566 |
+
("schlep" v (sh l eh1 p))
|
567 |
+
("drawknife" n (d r ao1 n ay0 f))
|
568 |
+
("wifi" n (w ay1 f ay1))
|
569 |
+
("waterproof" j (w ao1 t er0 p r uw0 f))
|
570 |
+
("understair" j (ah1 n d er0 s t ey1 r))
|
571 |
+
("wikipedia" n (w ih0 k ih0 p iy1 d iy0 ax0))
|
572 |
+
("smelt" v (s m eh1 l t))
|
573 |
+
|
574 |
+
|
CosyVoice-ttsfrd/resource/festival/dicts/cmu/cmulex.scm
ADDED
@@ -0,0 +1,466 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1998 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Definition of Festival lexicon, derived from CMUDICT-0.4
|
35 |
+
;;;
|
36 |
+
|
37 |
+
(defvar cmulexdir (path-append lexdir "cmu"))
|
38 |
+
|
39 |
+
(require 'pos)
|
40 |
+
|
41 |
+
(set! cmulex_version "2.0 (from 0.4) July 2008")
|
42 |
+
|
43 |
+
(define (cmu_lts_function word feats)
|
44 |
+
"(cmu_lts_function word feats)
|
45 |
+
Function called for CMULEX when word is not found in lexicon. Uses
|
46 |
+
LTS rules trained from the original lexicon, and lexical stress
|
47 |
+
prediction rules."
|
48 |
+
(require 'lts)
|
49 |
+
(if (not (boundp 'cmu_lts_rules))
|
50 |
+
(load (path-append cmulexdir "cmu_lts_rules.scm")))
|
51 |
+
(let ((dcword (downcase word))
|
52 |
+
(syls) (phones))
|
53 |
+
(if (string-matches dcword "[a-z]*")
|
54 |
+
(begin
|
55 |
+
(set! phones (lts_predict dcword cmu_lts_rules))
|
56 |
+
(set! syls (cmulex_mosyl_phstress phones))
|
57 |
+
)
|
58 |
+
(set! syls nil))
|
59 |
+
(list word nil syls)))
|
60 |
+
|
61 |
+
(define (cmulex_addenda)
|
62 |
+
"(cmulex_addenda)
|
63 |
+
Add entries to the current lexicon (radio/darpa). These are basically
|
64 |
+
words that are not in the CMU lexicon."
|
65 |
+
; (lex.add.entry '("a's" n (((ey z) 1))))
|
66 |
+
; (lex.add.entry '("e's" n (((iy z) 1))))
|
67 |
+
; (lex.add.entry '("i's" n (((ay z) 1))))
|
68 |
+
; (lex.add.entry '("o's" n (((ow z) 1))))
|
69 |
+
; (lex.add.entry '("u's" n (((y uw z) 1))))
|
70 |
+
; (lex.add.entry '("r's" n (((aa r z) 1))))
|
71 |
+
(lex.add.entry '("worf" n (((w ao r f) 1))))
|
72 |
+
(lex.add.entry '("t" n (((t iy) 1))))
|
73 |
+
(lex.add.entry '("I'll" v (((ay l) 1))))
|
74 |
+
(lex.add.entry '("it's" v (((ih t s) 1))))
|
75 |
+
(lex.add.entry '("don't" v (((d ow n t) 1))))
|
76 |
+
(lex.add.entry '("didn't" v (((d ih) 1) ((d ah n t) 0))))
|
77 |
+
(lex.add.entry '("isn't" v (((ih) 1) ((z ah n t) 0))))
|
78 |
+
(lex.add.entry '("doesn't" v (((d ah) 1) ((z ah n t) 0))))
|
79 |
+
(lex.add.entry '("hasn't" v (((hh ae) 1) ((z ah n t) 0))))
|
80 |
+
(lex.add.entry '("that's" v (((dh ae t s) 1))))
|
81 |
+
(lex.add.entry '("won't" v (((w ow n t) 1))))
|
82 |
+
(lex.add.entry '("aren't" v (((aa r n t) 1))))
|
83 |
+
(lex.add.entry '("there's" v (((dh er z) 1))))
|
84 |
+
(lex.add.entry '("we're" v (((w iy r) 1))))
|
85 |
+
(lex.add.entry '("wouldn't" v (((w uh) 1) ((d ah n t) 0))))
|
86 |
+
(lex.add.entry '("wasn't" v (((w aa) 1) ((z ah n t) 0))))
|
87 |
+
(lex.add.entry '("they're" v (((dh er) 1))))
|
88 |
+
(lex.add.entry '("weren't" v (((w er n t) 1))))
|
89 |
+
(lex.add.entry '("i'm" v (((ay m) 1))))
|
90 |
+
(lex.add.entry '("he's" v (((hh iy z) 1))))
|
91 |
+
(lex.add.entry '("you're" v (((y uw r) 1))))
|
92 |
+
(lex.add.entry '("haven't" v (((hh ae) 1) ((v ah n t) 0))))
|
93 |
+
(lex.add.entry '("we've" v (((w iy v) 1))))
|
94 |
+
(lex.add.entry '("i've" v (((ay v) 1))))
|
95 |
+
(lex.add.entry '("hadn't" v (((hh ae) 1) ((d ah n t) 0))))
|
96 |
+
(lex.add.entry '("they've" v (((dh ey v) 1))))
|
97 |
+
(lex.add.entry '("shouldn't" v (((sh uh) 1) ((d ah n t) 0))))
|
98 |
+
(lex.add.entry '("I'd" v (((ay d) 1))))
|
99 |
+
(lex.add.entry '("they'll" v (((dh ey l) 1))))
|
100 |
+
(lex.add.entry '("you've" v (((y uw v) 1))))
|
101 |
+
(lex.add.entry '("you'll" v (((y uw l) 1))))
|
102 |
+
(lex.add.entry '("I'll" v (((ay l) 1))))
|
103 |
+
(lex.add.entry '("we'd" v (((w iy d) 1))))
|
104 |
+
(lex.add.entry '("he'd" v (((hh iy d) 1))))
|
105 |
+
(lex.add.entry '("he'll" v (((hh iy l) 1))))
|
106 |
+
(lex.add.entry '("they'd" v (((dh ey d) 1))))
|
107 |
+
(lex.add.entry '("you'd" v (((y uw d) 1))))
|
108 |
+
(lex.add.entry '("it'll" v (((ih t) 1) ((ah l) 0))))
|
109 |
+
(lex.add.entry '("who've" v (((hh uw v) 1))))
|
110 |
+
(lex.add.entry '("ain't" v (((ey n t) 1))))
|
111 |
+
(lex.add.entry '("needn't" v (((n iy) 1) ((d ah n t) 0))))
|
112 |
+
(lex.add.entry '("she'd" v (((sh iy d) 1))))
|
113 |
+
(lex.add.entry '("who'd" v (((hh uw d) 1))))
|
114 |
+
(lex.add.entry '("she'll" v (((sh iy l) 1))))
|
115 |
+
(lex.add.entry '("there'll" v (((dh er l) 1))))
|
116 |
+
(lex.add.entry '("there'd" v (((dh er d) 1))))
|
117 |
+
(lex.add.entry '("it'd" v (((ih t) 1) ((ah d) 0))))
|
118 |
+
(lex.add.entry '("who'll" v (((hh uw l) 1))))
|
119 |
+
(lex.add.entry '("that'll" v (((dh ae t l) 1))))
|
120 |
+
(lex.add.entry '("mightn't" v (((m ay) 1) ((t ah n t) 0))))
|
121 |
+
(lex.add.entry '("would've" v (((w uh d) 1) ((ah v) 0))))
|
122 |
+
(lex.add.entry '("mustn't" v (((m ah) 1) ((s ah n t) 0))))
|
123 |
+
(lex.add.entry '("how'd" v (((hh ow d) 1))))
|
124 |
+
(lex.add.entry '("could've" v (((k uh d) 1) ((ah v) 0))))
|
125 |
+
|
126 |
+
(lex.add.entry '("couldn't" v (((k uh) 1) ((d ah n t) 0))))
|
127 |
+
(lex.add.entry '("can't" v (((k ae n t) 1))))
|
128 |
+
(lex.add.entry '("we'll" v (((w iy l) 1))))
|
129 |
+
|
130 |
+
(lex.add.entry '("uk" n (((y uw) 1) ((k ey) 1))))
|
131 |
+
(lex.add.entry '("w" n (((d ah b) 1) ((ah l) 0) ((y uw) 1))))
|
132 |
+
(lex.add.entry '("bought" v (((b ao t) 1))))
|
133 |
+
(lex.add.entry '("edinburgh" n (((eh d) 1) ((ah n) 0) ((b ax ) 0) ((r ow) 0))))
|
134 |
+
(lex.add.entry '("non-intoxicating" () (((n aa n) 1) ((ih n t) 0) ((aa k) 1) ((s ih k) 0) ((ey t) 1) ((ih ng) 0))))
|
135 |
+
(lex.add.entry '("AT&T" n (((ey) 1) ((t iy) 1) ((ah n d) 0) ((t iy) 1))))
|
136 |
+
(lex.add.entry
|
137 |
+
'("cepstra" n (((k eh p) 1) ((s t r aa) 0))))
|
138 |
+
(lex.add.entry
|
139 |
+
'("cepstral" n (((k eh p) 1) ((s t r ah l) 0))))
|
140 |
+
(lex.add.entry
|
141 |
+
'("cepstrum" n (((k eh p) 1) ((s t r ah m) 0))))
|
142 |
+
(lex.add.entry
|
143 |
+
'("diphone" n (((d ay) 1) ((f ow n) 0))))
|
144 |
+
(lex.add.entry
|
145 |
+
'("diphones" n (((d ay) 1) ((f ow n s) 0))))
|
146 |
+
(lex.add.entry
|
147 |
+
'("emacs" n (((iy) 1) ((m ae k s) 0))))
|
148 |
+
(lex.add.entry
|
149 |
+
'("hz" n (((hh eh r t z) 1))))
|
150 |
+
(lex.add.entry
|
151 |
+
'("khz" n (((k ih) 1) ((l ax) 0) ((hh eh r t z) 1))))
|
152 |
+
(lex.add.entry
|
153 |
+
'("lived" v (((l ih v d) 1))))
|
154 |
+
(lex.add.entry
|
155 |
+
'("Ltd" n (((l ih m) 1) ((ah t) 0) ((ah d) 0))))
|
156 |
+
(lex.add.entry
|
157 |
+
'("Mrs" n (((m ih s) 1) ((ah s) 0))))
|
158 |
+
(lex.add.entry
|
159 |
+
'("mhz" n (((m eh) 1) ((g ax) 0) ((hh eh r t z) 1))))
|
160 |
+
(lex.add.entry
|
161 |
+
'("NASA" n (((n ae) 1) ((s ax) 1))))
|
162 |
+
(lex.add.entry
|
163 |
+
'("lead" led (((l eh d) 1))))
|
164 |
+
(lex.add.entry
|
165 |
+
'("lead" liid (((l iy d) 1))))
|
166 |
+
(lex.add.entry
|
167 |
+
'("pasadena" n (((p ae s) 1) ((ae d) 0) ((iy n) 1) ((ax) 0))))
|
168 |
+
(lex.add.entry
|
169 |
+
'("read" red (((r eh d) 1))))
|
170 |
+
(lex.add.entry
|
171 |
+
'("read" riid (((r iy d) 1))))
|
172 |
+
(lex.add.entry
|
173 |
+
'("reuters" n (((r oy t) 1) ((er z) 0))))
|
174 |
+
(lex.add.entry
|
175 |
+
'("and" aend (((ae n d) 1))))
|
176 |
+
(lex.add.entry
|
177 |
+
'("and" ahnd (((ax n d) 0))))
|
178 |
+
(lex.add.entry
|
179 |
+
'("for" faor (((f ao r) 1))))
|
180 |
+
(lex.add.entry
|
181 |
+
'("for" fer (((f er) 0))))
|
182 |
+
(lex.add.entry
|
183 |
+
'("to" to (((t ax) 0))))
|
184 |
+
(lex.add.entry
|
185 |
+
'("to" tuu (((t uw) 1))))
|
186 |
+
; (lex.add.entry
|
187 |
+
; '("usually" r (((y uw zh) 1) ((ax l) 0) ((iy) 0))))
|
188 |
+
; (lex.add.entry
|
189 |
+
; '("usual" r (((y uw zh) 1) ((ax l) 0))))
|
190 |
+
; (lex.add.entry
|
191 |
+
; '("Jan" n (((jh ae n y) 1) ((uw) 0) ((eh r) 1) ((iy) 0))))
|
192 |
+
; (lex.add.entry
|
193 |
+
; '("Feb" n (((f eh b) 1) ((r ax) 0) ((er) 0) ((iy) 0))))
|
194 |
+
(lex.add.entry
|
195 |
+
'("February" n (((f eh b) 1) ((r ax) 0) ((er) 0) ((iy) 0))))
|
196 |
+
; (lex.add.entry
|
197 |
+
; '("Mar" n (((m aa r ch) 0))))
|
198 |
+
; (lex.add.entry
|
199 |
+
; '("Apr" n (((ey p) 1) ((r ah l) 0))))
|
200 |
+
; (lex.add.entry
|
201 |
+
; '("Jun" n (((jh uw n) 1))))
|
202 |
+
; (lex.add.entry
|
203 |
+
; '("Jul" n (((jh uw l) 1) ((ay) 1))))
|
204 |
+
; (lex.add.entry
|
205 |
+
; '("Aug" n (((aa g) 1) ((ah s t) 0))))
|
206 |
+
; (lex.add.entry
|
207 |
+
; '("Sep" n (((s eh p) 0) ((t eh m b) 1) ((er) 0))))
|
208 |
+
; (lex.add.entry
|
209 |
+
; '("Sept" n (((s eh p) 0) ((t eh m b) 1) ((er) 0))))
|
210 |
+
; (lex.add.entry
|
211 |
+
; '("Oct" n (((aa k) 0) ((t ow b) 1) ((er) 0))))
|
212 |
+
; (lex.add.entry
|
213 |
+
; '("Nov" n (((n ow v) 0) ((eh m b) 1) ((er) 0))))
|
214 |
+
; (lex.add.entry
|
215 |
+
; '("Dec" n (((d ih s) 0) ((eh m b) 1) ((er) 0))))
|
216 |
+
(lex.add.entry
|
217 |
+
'("'s" pos (((ax z) 0))))
|
218 |
+
(lex.add.entry
|
219 |
+
'("'s" n (((ax z) 0))))
|
220 |
+
(lex.add.entry
|
221 |
+
'("*" n (((ae s) 1) ((t er) 0) ((ih s k) 0)) ((pos "K6%"))))
|
222 |
+
(lex.add.entry
|
223 |
+
'("%" n (((p er) 1) ((s eh n t) 1)) ((pos "K9%"))))
|
224 |
+
(lex.add.entry
|
225 |
+
'("&" n (((ae n d) 0))))
|
226 |
+
(lex.add.entry
|
227 |
+
'("$" n (((d aa l) 1) ((er) 0))))
|
228 |
+
(lex.add.entry
|
229 |
+
'("#" n (((hh ae sh) 1))))
|
230 |
+
(lex.add.entry
|
231 |
+
'("@" n (((ae t) 1))))
|
232 |
+
(lex.add.entry
|
233 |
+
'("+" n (((p l ah s) 0)) ((pos "K7%" "OA%" "T-%"))))
|
234 |
+
(lex.add.entry
|
235 |
+
'("^" n (((k eh r) 1) ((eh t) 0)) ((pos "K6$"))))
|
236 |
+
(lex.add.entry
|
237 |
+
'("~" n (((t ih l d) 1) ((ah) 0)) ((pos "K6$"))))
|
238 |
+
(lex.add.entry
|
239 |
+
'("=" n (((iy k) 1) ((w ah l) 0))))
|
240 |
+
(lex.add.entry
|
241 |
+
'("/" n (((s l ae sh) 1))))
|
242 |
+
(lex.add.entry
|
243 |
+
'("\\" n (((b ae k) 1) ((s l ae sh) 1))))
|
244 |
+
(lex.add.entry
|
245 |
+
'("_" n (((ah n d) 1) ((er s) 0) ((k ao r) 1))))
|
246 |
+
(lex.add.entry
|
247 |
+
'("|" n (((v er t) 1) ((ih k) 0) ((ah l) 0) ((b aa r) 1))))
|
248 |
+
(lex.add.entry
|
249 |
+
'(">" n ((( g r ey ) 1) ((t er) 0) ((dh ae n) 1))))
|
250 |
+
(lex.add.entry
|
251 |
+
'("<" n ((( l eh s) 1) ((dh ae n) 1))))
|
252 |
+
(lex.add.entry
|
253 |
+
'("[" n ((( l eh f t) 1) ((b r ae k) 1) ((ih t) 0))))
|
254 |
+
(lex.add.entry
|
255 |
+
'("]" n ((( r ay t) 1) ((b r ae k) 1) ((ih t) 0))))
|
256 |
+
(lex.add.entry
|
257 |
+
'(" " n (((s p ey s) 1))))
|
258 |
+
(lex.add.entry
|
259 |
+
'("\t" n (((t ae b) 1))))
|
260 |
+
(lex.add.entry
|
261 |
+
'("\n" n (((n uw) 1) ((l ay n) 1))))
|
262 |
+
(lex.add.entry '("." punc nil))
|
263 |
+
(lex.add.entry '("'" punc nil))
|
264 |
+
(lex.add.entry '(":" punc nil))
|
265 |
+
(lex.add.entry '(";" punc nil))
|
266 |
+
(lex.add.entry '("," punc nil))
|
267 |
+
(lex.add.entry '("-" punc nil))
|
268 |
+
(lex.add.entry '("\"" punc nil))
|
269 |
+
(lex.add.entry '("`" punc nil))
|
270 |
+
(lex.add.entry '("?" punc nil))
|
271 |
+
(lex.add.entry '("!" punc nil))
|
272 |
+
(lex.add.entry
|
273 |
+
'(before ()
|
274 |
+
(((b iy) 0) ((f ao r) 1))))
|
275 |
+
)
|
276 |
+
|
277 |
+
(define (cmulex_map_sylstructure syls)
|
278 |
+
(unwind-protect
|
279 |
+
(begin
|
280 |
+
(mapcar
|
281 |
+
(lambda (s1 s2)
|
282 |
+
(list s1 (cadr s2)))
|
283 |
+
(cmulex_syllabify_maxonset
|
284 |
+
(apply
|
285 |
+
append
|
286 |
+
(mapcar car syls)))
|
287 |
+
syls))
|
288 |
+
(begin
|
289 |
+
(format t "Failed to resyllabify %l\n" syls)
|
290 |
+
syls))
|
291 |
+
)
|
292 |
+
|
293 |
+
(define (cmulex_mosyl_phstress phones)
|
294 |
+
(set! xxx (mapcar
|
295 |
+
(lambda (syl)
|
296 |
+
(set! stress 0)
|
297 |
+
(list
|
298 |
+
(mapcar
|
299 |
+
(lambda (p)
|
300 |
+
(cond
|
301 |
+
((string-matches p "[aeiou@].*1")
|
302 |
+
(set! stress 1)
|
303 |
+
(intern (substring p 0 (- (length p) 1))))
|
304 |
+
((string-matches p "[aeiou@].*0")
|
305 |
+
(set! stress 0)
|
306 |
+
(intern (substring p 0 (- (length p) 1))))
|
307 |
+
(t
|
308 |
+
(intern p))))
|
309 |
+
(mapcar string-append syl))
|
310 |
+
stress))
|
311 |
+
(cmulex_syllabify_maxonset phones)))
|
312 |
+
; (format t "%l\n%l\n" phones xxx)
|
313 |
+
xxx
|
314 |
+
|
315 |
+
)
|
316 |
+
|
317 |
+
(define (cmulex_syllabify_maxonset phones)
|
318 |
+
(cmulex_syllabify_maxonset2
|
319 |
+
(mapcar intern (reverse phones))
|
320 |
+
nil nil)
|
321 |
+
)
|
322 |
+
|
323 |
+
(define (cmulex_syllabify_maxonset2 phones syl syls)
|
324 |
+
"(cmulex_syllabify_maxonset phones)
|
325 |
+
Syllabify by maximum onset. phones is given in reverse order"
|
326 |
+
; (format t "csm2 phones %l syl %l syls %l\n"
|
327 |
+
; phones syl syls)
|
328 |
+
(cond
|
329 |
+
((null phones)
|
330 |
+
(if syl
|
331 |
+
(cons (reverse syl) syls)
|
332 |
+
syls))
|
333 |
+
((null (cmulex_has_vowel phones)) ;; safety case
|
334 |
+
;; could some weird onset we've never seen before
|
335 |
+
(cons
|
336 |
+
(append (reverse phones) syl)
|
337 |
+
syls))
|
338 |
+
((null (string-matches (car phones) "[aeiou@].*")) ;; a vowel
|
339 |
+
(cmulex_syllabify_maxonset2
|
340 |
+
(cdr phones)
|
341 |
+
(cons (car phones) syl)
|
342 |
+
syls))
|
343 |
+
(t ;; is a vowel
|
344 |
+
(let ((onset (cmulex_maxonset (cdr phones))))
|
345 |
+
(cmulex_syllabify_maxonset2
|
346 |
+
(nth_cdr (+ 1 (length onset)) phones)
|
347 |
+
nil
|
348 |
+
(cons (append onset (list (car phones)) syl) syls))))))
|
349 |
+
|
350 |
+
(define (cmulex_has_vowel p)
|
351 |
+
(cond
|
352 |
+
((null p) nil)
|
353 |
+
((string-matches (car p) "[aeiou@].*") ;; a vowel
|
354 |
+
t)
|
355 |
+
(t
|
356 |
+
(cmulex_has_vowel (cdr p)))))
|
357 |
+
|
358 |
+
(define (cmulex_maxonset phones)
|
359 |
+
(cond
|
360 |
+
((string-matches (car phones) "[aeiou@].*")
|
361 |
+
nil)
|
362 |
+
((string-equal (car phones) "ng") ;; only non-syl-initial phone
|
363 |
+
nil)
|
364 |
+
((null phones) nil)
|
365 |
+
((and (> (length phones) 2)
|
366 |
+
(member (list (car (cddr phones))
|
367 |
+
(cadr phones)
|
368 |
+
(car phones)
|
369 |
+
)
|
370 |
+
cmulex_tri_onsets))
|
371 |
+
(list (car (cddr phones))
|
372 |
+
(cadr phones)
|
373 |
+
(car phones)
|
374 |
+
))
|
375 |
+
((and (> (length phones) 1)
|
376 |
+
(member (list (cadr phones)
|
377 |
+
(car phones))
|
378 |
+
cmulex_di_onsets))
|
379 |
+
(list (cadr phones)
|
380 |
+
(car phones)))
|
381 |
+
(t
|
382 |
+
(list (car phones)))))
|
383 |
+
|
384 |
+
(set! cmulex_tri_onsets
|
385 |
+
'(
|
386 |
+
(s t r)
|
387 |
+
(s p y)
|
388 |
+
(s p r)
|
389 |
+
(s p l)
|
390 |
+
(s k y)
|
391 |
+
(s k w)
|
392 |
+
(s k r)
|
393 |
+
(s k l)
|
394 |
+
))
|
395 |
+
|
396 |
+
(set! cmulex_di_onsets
|
397 |
+
'(
|
398 |
+
(z w)
|
399 |
+
(z l)
|
400 |
+
(v y)
|
401 |
+
(v r)
|
402 |
+
(v l)
|
403 |
+
(th w)
|
404 |
+
(th r)
|
405 |
+
(t y)
|
406 |
+
(t w)
|
407 |
+
; (t s)
|
408 |
+
(t r)
|
409 |
+
(sh w)
|
410 |
+
(sh r)
|
411 |
+
(sh n)
|
412 |
+
(sh m)
|
413 |
+
(sh l)
|
414 |
+
(s w)
|
415 |
+
(s v)
|
416 |
+
(s t)
|
417 |
+
(s r)
|
418 |
+
(s p)
|
419 |
+
(s n)
|
420 |
+
(s m)
|
421 |
+
(s l)
|
422 |
+
(s k)
|
423 |
+
(s f)
|
424 |
+
(p y)
|
425 |
+
(p w)
|
426 |
+
(p r)
|
427 |
+
(p l)
|
428 |
+
(n y)
|
429 |
+
(m y)
|
430 |
+
(m r)
|
431 |
+
(l y)
|
432 |
+
(k y)
|
433 |
+
(k w)
|
434 |
+
(k r)
|
435 |
+
(k l)
|
436 |
+
(hh y)
|
437 |
+
(hh w)
|
438 |
+
(hh r)
|
439 |
+
(hh l)
|
440 |
+
(g y)
|
441 |
+
(g w)
|
442 |
+
(g r)
|
443 |
+
(g l)
|
444 |
+
(f y)
|
445 |
+
(f r)
|
446 |
+
(f l)
|
447 |
+
(d y)
|
448 |
+
(d w)
|
449 |
+
(d r)
|
450 |
+
(b y)
|
451 |
+
(b w)
|
452 |
+
(b r)
|
453 |
+
(b l)
|
454 |
+
))
|
455 |
+
|
456 |
+
(set! lex_syllabification (list cmulex_mosyl_phstress))
|
457 |
+
|
458 |
+
(lex.create "cmu")
|
459 |
+
(lex.set.compile.file (path-append cmulexdir "cmudict-0.4.out"))
|
460 |
+
(lex.set.phoneset "radio")
|
461 |
+
(lex.set.lts.method 'cmu_lts_function)
|
462 |
+
(lex.set.pos.map english_pos_map_wp39_to_wp20)
|
463 |
+
(cmulex_addenda)
|
464 |
+
|
465 |
+
(provide 'cmulex)
|
466 |
+
|
CosyVoice-ttsfrd/resource/festival/dicts/oald/COPYING
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
Centre for Speech Technology Research
|
3 |
+
University of Edinburgh, UK
|
4 |
+
Copyright (c) 1996,1997
|
5 |
+
All Rights Reserved.
|
6 |
+
|
7 |
+
Permission to use, copy, modify, distribute this software and its
|
8 |
+
documentation for research, educational and individual use only, is
|
9 |
+
hereby granted without fee, subject to the following conditions:
|
10 |
+
1. The code must retain the above copyright notice, this list of
|
11 |
+
conditions and the following disclaimer.
|
12 |
+
2. Any modifications must be clearly marked as such.
|
13 |
+
3. Original authors' names are not deleted.
|
14 |
+
This software may not be used for commercial purposes without
|
15 |
+
specific prior written permission from the authors.
|
16 |
+
|
17 |
+
THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK
|
18 |
+
DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
19 |
+
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
|
20 |
+
SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE
|
21 |
+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
22 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
23 |
+
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
24 |
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
25 |
+
THIS SOFTWARE.
|
26 |
+
Centre for Speech Technology Research
|
27 |
+
University of Edinburgh, UK
|
28 |
+
Copyright (c) 1996,1997
|
29 |
+
All Rights Reserved.
|
30 |
+
|
31 |
+
Permission is hereby granted, free of charge, to use and distribute
|
32 |
+
this software and its documentation without restriction, including
|
33 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
34 |
+
distribute, sublicense, and/or sell copies of this work, and to
|
35 |
+
permit persons to whom this work is furnished to do so, subject to
|
CosyVoice-ttsfrd/resource/festival/dicts/oald/ali.oald.lex
ADDED
The diff for this file is too large to render.
See raw diff
|
|
CosyVoice-ttsfrd/resource/festival/dicts/oald/oald_extensions.scm
ADDED
@@ -0,0 +1,1704 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1998 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Extra items that have sufficient frequency and are pronounced
|
35 |
+
;;; wrongly that are to be added to the compiled version of
|
36 |
+
;;; the OALD lexicon
|
37 |
+
;;;
|
38 |
+
;;; This list we derived from various text databases and actually
|
39 |
+
;;; listening
|
40 |
+
|
41 |
+
( "Jones" n (jh ou1 n z) )
|
42 |
+
( "Merrill" n (m e1 r i l) )
|
43 |
+
( "Guber" n (g u1 b @) )
|
44 |
+
( "Drexel" n (d r e1 k s @ l) )
|
45 |
+
( "de" in (d @) )
|
46 |
+
( "Noriega" n (n oo r i ei1 g @) )
|
47 |
+
( "Lehman" n (l ei1 m @ n) )
|
48 |
+
( "Salomon" n (s a1 l @ m @ n) )
|
49 |
+
( "pretax" n (p r ii1 t a1 k s) )
|
50 |
+
( "Reagan" n (r ei1 g @ n) )
|
51 |
+
( "Hugo" n (h y uu1 g o) )
|
52 |
+
( "Nasdaq" n (n a1 s d e k) )
|
53 |
+
( "Telerate" n (t e1 l i r ei t) )
|
54 |
+
( "PaineWebber" n (p ei1 n - w e1 b @) )
|
55 |
+
( "totaled" n (t ou1 t @ l d) )
|
56 |
+
( "Qintex" n (k w i1 n t e k s) )
|
57 |
+
( "Conn" n (k o1 n) )
|
58 |
+
( "Asia" n (ei1 sh i@) )
|
59 |
+
( "Saatchi" n (s a1 t ch ii) )
|
60 |
+
( "Mitsubishi" n (m i1 t s uu b ii1 sh ii) )
|
61 |
+
( "Mae" n (m ei1) )
|
62 |
+
( "Paribas" n (p a1 r @ b a s) )
|
63 |
+
( "Intel" n (i1 n t e l) )
|
64 |
+
( "McCaw" n (m @ k oo1) )
|
65 |
+
( "Citicorp" n (s i1 t ii - k oo1 p) )
|
66 |
+
( "automotive" n (oo1 t ou m ou1 t i v) )
|
67 |
+
( "Compaq" n (k o1 m p a1 k) )
|
68 |
+
( "Beijing" n (b ei1 zh i1 ng) )
|
69 |
+
( "rumors" n (r uu1 m @@ z) )
|
70 |
+
( "Exxon" n (e1 k s o n) )
|
71 |
+
( "Phelan" n (f ii1 l a n) )
|
72 |
+
( "Chrysler" n (k r ai1 s l @) )
|
73 |
+
( "Oakland" n (ou1 k l @ n d) )
|
74 |
+
( "insurers" n (i n sh u@1 r @ z) )
|
75 |
+
( "Thomson" n (t o1 m s @ n) )
|
76 |
+
( "Stearns" n (s t @@1 n z) )
|
77 |
+
( "Coors" n (k u@1 z) )
|
78 |
+
( "USAir" n (y uu1 e1 s e@1) )
|
79 |
+
( "Rockefeller" n (r o1 k @ f e l @) )
|
80 |
+
( "Ogilvy" n (ou1 g i l v ii) )
|
81 |
+
( "pre" n (p r ii1) )
|
82 |
+
( "Bache" n (b a1 k) )
|
83 |
+
( "Mitchell" n (m i1 t ch @ l) )
|
84 |
+
( "Davis" n (d ei1 v i s) )
|
85 |
+
( "Nekoosa" n (n e k uu1 s @) )
|
86 |
+
( "Nikkei" n (n ii1 k k ei1) )
|
87 |
+
( "McDonald" n (m @ k d o1 n @ l d) )
|
88 |
+
( "Marshall" n (m aa1 sh @ l) )
|
89 |
+
( "aide" n (ei1 d) )
|
90 |
+
( "CenTrust" n (s e1 n - t r uh s t) )
|
91 |
+
( "BellSouth" n (b e1 l s au1 th) )
|
92 |
+
( "Thompson" n (t o1 m s @ n) )
|
93 |
+
( "Donaldson" n (d o1 n @ l d s @ n) )
|
94 |
+
( "totaling" n (t ou1 t @ l i ng) )
|
95 |
+
( "insurer" n (i n sh u@1 r @) )
|
96 |
+
( "Campbell" n (k a1 m b @ l) )
|
97 |
+
( "favorable" k (f ei1 v r @ b @ l) )
|
98 |
+
( "canceled" j (k a1 n s @ l d) )
|
99 |
+
( "Du" in (d uu) )
|
100 |
+
( "Fujitsu" n (f uu jh i1 t s uu) )
|
101 |
+
( "Yeargin" n (y e@1 g i n) )
|
102 |
+
( "Daiwa" n (d ai1 w a) )
|
103 |
+
( "Bancorp" n (b a1 n k oo p) )
|
104 |
+
( "Viacom" n (v ai1 @ k o m) )
|
105 |
+
( "Vegas" n (v ei1 g @ s) )
|
106 |
+
( "Steinhardt" n (s t ai1 n h aa1 t) )
|
107 |
+
( "Rica" n (r ii1 k @) )
|
108 |
+
( "Icahn" n (ii1 k a n) )
|
109 |
+
( "Ferranti" n (f @ r a1 n t ii) )
|
110 |
+
( "Ortega" n (oo r t ei1 g @) )
|
111 |
+
( "Merieux" n (m e1 r y uu) )
|
112 |
+
( "Spielvogel" n (s p ii1 l v ou1 k @ l) )
|
113 |
+
( "Gonzalez" n (g o n z a1 l @ s) )
|
114 |
+
( "Engelken" n (e1 ng g @ l k e n) )
|
115 |
+
( "Delmed" n (d e1 l m e1 d) )
|
116 |
+
( "Corry" n (k o1 r ii) )
|
117 |
+
( "longtime" n (l o1 ng t ai1 m) )
|
118 |
+
( "Saab" n (s a1 b) )
|
119 |
+
( "Rey" n (r ei1) )
|
120 |
+
( "Nabisco" n (n @ b i1 s k ou) )
|
121 |
+
( "Disney" n (d i1 z n ii) )
|
122 |
+
( "repurchase" n (r ii1 p @@1 ch i s) )
|
123 |
+
( "mainframes" n (m ei1 n f r ei1 m z) )
|
124 |
+
( "Reynolds" n (r e1 n @ l d z) )
|
125 |
+
( "Nomura" n (n ou m uu1 r @) )
|
126 |
+
( "Galileo" n (g a1 l @ l ei1 ou) )
|
127 |
+
( "Cohen" n (k ou1 e n) )
|
128 |
+
( "Allianz" n (@ l ai1 a n z) )
|
129 |
+
( "biotechnology" n (b ai1 ou t e1 k n o1 l @ jh ii) )
|
130 |
+
( "Jenrette" n (zh o1 n r e1 t) )
|
131 |
+
( "Bethlehem" n (b e1 th l i h e m) )
|
132 |
+
( "turnaround" n (t @@1 n @ r au1 n d) )
|
133 |
+
( "rumored" n (r uu1 m @@ d) )
|
134 |
+
( "cleanup" n (k l ii1 n uh1 p) )
|
135 |
+
( "Wedtech" n (w e1 d t e1 k) )
|
136 |
+
( "Texaco" n (t e1 k s @ k ou1) )
|
137 |
+
( "Sullivan" n (s uh1 l @ v @ n) )
|
138 |
+
( "Roberts" n (r o1 b @ t s) )
|
139 |
+
( "Merksamer" n (m @@1 k s @ m @) )
|
140 |
+
( "Hahn" n (h a1 n) )
|
141 |
+
( "Giuliani" n (jh uu1 l ii a1 n ii) )
|
142 |
+
( "theater" n (th i@1 t @) )
|
143 |
+
( "Unisys" n (y uu1 n i s i1 s) )
|
144 |
+
( "Monieson" n (m o1 n @ s @ n) )
|
145 |
+
( "Diego" n (d i ei1 g ou) )
|
146 |
+
( "Quotron" n (k w o1 t r o n) )
|
147 |
+
( "Maynard" n (m ei1 n aa d) )
|
148 |
+
( "Marcos" n (m aa1 k o s) )
|
149 |
+
( "Jose" n (h ou1 z ei) )
|
150 |
+
( "Boren" n (b oo1 r e n) )
|
151 |
+
( "signaled" n (s i1 g n @ l d) )
|
152 |
+
( "lackluster" n (l a1 k - l uh1 s t @) )
|
153 |
+
( "Stein" n (s t ii1 n) )
|
154 |
+
( "Bartlett" n (b aa1 t l e t) )
|
155 |
+
( "Amex" n (a1 m e1 k s) )
|
156 |
+
( "aides" n (ei1 d z) )
|
157 |
+
( "Trelleborg" n (t r e1 l @ b @@ g) )
|
158 |
+
( "Saudi" n (s au1 d ii) )
|
159 |
+
( "Olivetti" n (o1 l i v e1 t ii) )
|
160 |
+
( "Microsoft" n (m ai1 k r ou s o1 f t) )
|
161 |
+
( "McGraw" n (m @ g r oo1) )
|
162 |
+
( "Deutsche" n (d oi1 t ch @) )
|
163 |
+
( "Courter" n (k oo1 t @) )
|
164 |
+
( "Conner" n (k o1 n @) )
|
165 |
+
( "Cathay" n (k a1 th ei1) )
|
166 |
+
( "polyethylene" n (p o1 l ii e1 th i l ii n) )
|
167 |
+
( "Quebecor" n (k w i1 b e k @) )
|
168 |
+
( "Puerto" n (p w e@1 t ou) )
|
169 |
+
( "Mikhail" n (m ii1 k ai l) )
|
170 |
+
( "Colo" n (k o1 l ou) )
|
171 |
+
( "refinancing" n (r ii f ai1 n @ n s i ng) )
|
172 |
+
( "Societe" n (s @1 s ai1 @ t ei) )
|
173 |
+
( "Robertson" n (r o1 b @ t s s @ n) )
|
174 |
+
( "Pfeiffer" n (f ai1 f @) )
|
175 |
+
( "Oppenheimer" n (o1 p @ n h ai m @) )
|
176 |
+
( "Evans" n (e1 v @ n z) )
|
177 |
+
( "Dataproducts" n (d ei1 t @ - p r o1 d uh k t s) )
|
178 |
+
( "Bradstreet" n (b r a1 d - s t r ii1 t) )
|
179 |
+
( "Antonio" n (a n t ou1 n y ou) )
|
180 |
+
( "franchisees" n (f r a1 n ch ai z ii1 z) )
|
181 |
+
( "ex" n (e1 k s) )
|
182 |
+
( "arbitragers" n (aa1 b @ t r ei1 jh @@ z) )
|
183 |
+
( "Motorola" n (m ou t @ r ou1 l @) )
|
184 |
+
( "Macmillan" n (m @ k m i1 l @ n) )
|
185 |
+
( "Jacobson" n (jh ei1 k @ b s @ n) )
|
186 |
+
( "Indosuez" n (i1 n d ou s uu1 e z) )
|
187 |
+
( "Hughes" n (h y uu1 z) )
|
188 |
+
( "Florio" n (f l oo r i ou) )
|
189 |
+
( "Spiegel" n (s p ii1 g @ l) )
|
190 |
+
( "Rico" n (r ii1 k ou) )
|
191 |
+
( "Palo" n (p a1 l ou) )
|
192 |
+
( "Madison" n (m a1 d @ s @ n) )
|
193 |
+
( "HealthVest" n (h e1 l th - v e1 s t) )
|
194 |
+
( "Fuji" n (f uu1 jh ii) )
|
195 |
+
( "Deloitte" n (d e1 l oi t) )
|
196 |
+
( "Amoco" n (a1 m ou k ou) )
|
197 |
+
( "equaling" n (ii1 k w @ l i ng) )
|
198 |
+
( "Wallach" n (w oo1 l @ k) )
|
199 |
+
( "Upjohn" n (uh1 p jh o n) )
|
200 |
+
( "Tele" n (t e1 l ii) )
|
201 |
+
( "Rubicam" n (r uu1 b @ k a1 m) )
|
202 |
+
( "Pemex" n (p e1 m e1 k s) )
|
203 |
+
( "Meredith" n (m e1 r @ d @ th) )
|
204 |
+
( "Lorenzo" n (l oo r e1 n z ou) )
|
205 |
+
( "Levine" n (l @ v ai1 n) )
|
206 |
+
( "Ingersoll" n (i1 ng g @ s @ l) )
|
207 |
+
( "Eurocom" n (y uu1 r @ k o m) )
|
208 |
+
( "Chevrolet" n (sh e1 v r @ l ei) )
|
209 |
+
( "federally" n (f e1 d r @ l ii) )
|
210 |
+
( "anymore" n (e1 n ii m oo1 r) )
|
211 |
+
( "Toshiba" n (t ou sh ii1 b @) )
|
212 |
+
( "Suisse" n (s w ii1 s) )
|
213 |
+
( "Sansui" n (s a1 n s uu ii1) )
|
214 |
+
( "Panzhihua" n (p a1 n z ii1 w a1) )
|
215 |
+
( "Goldberg" n (g ou1 l d b @@ g) )
|
216 |
+
( "Garcia" n (g aa s ii1 @) )
|
217 |
+
( "Eli" n (ii1 l ai) )
|
218 |
+
( "Della" n (d e1 l @) )
|
219 |
+
( "Buick" n (b y uu1 i k) )
|
220 |
+
( "debacle" n (d ei b uh1 k @ l) )
|
221 |
+
( "cholesterol" n (k o l e1 s t r @ l) )
|
222 |
+
( "Vitro" n (v ii1 t r ou) )
|
223 |
+
( "Revco" n (r e1 v k ou) )
|
224 |
+
( "Nashua" n (n a1 sh w @) )
|
225 |
+
( "Mitsui" n (m i t s uu1 ii) )
|
226 |
+
( "Lexus" n (l e1 k s @ s) )
|
227 |
+
( "Healthcare" n (h e1 l th - k e@ r) )
|
228 |
+
( "Ginnie" n (jh i1 n ii) )
|
229 |
+
( "Carlos" n (k aa1 l @ s) )
|
230 |
+
( "Benson" n (b e1 n s @ n) )
|
231 |
+
( "Avery" n (ei1 v r ii) )
|
232 |
+
( "Achenbaum" n (a1 k @ n b oo m) )
|
233 |
+
( "Nynex" n (n ai1 n e k s) )
|
234 |
+
( "Murray" n (m uh1 r ii) )
|
235 |
+
( "Morishita" n (m o1 r ii1 sh t @) )
|
236 |
+
( "Minpeco" n (m i1 n p e k ou) )
|
237 |
+
( "McDonough" n (m @ k d o1 n @) )
|
238 |
+
( "Geigy" n (g ei1 jh ii) )
|
239 |
+
( "Drabinsky" n (d r a b i1 n s k ii) )
|
240 |
+
( "Dingell" n (d i1 ng @ l) )
|
241 |
+
( "petrochemical" n (p e1 t r @ k e1 m @ k @ l) )
|
242 |
+
( "nonetheless" n (n uh1 n dh @ l e1 s) )
|
243 |
+
( "catalog" n (k a1 t @ l o g) )
|
244 |
+
( "Yamaichi" n (y a1 m @ ii1 ch ii) )
|
245 |
+
( "Sugarman" n (sh uu1 g @ m @ n) )
|
246 |
+
( "Steinberg" n (s t ai1 n b @@ g) )
|
247 |
+
( "Shevardnadze" n (sh e1 v @ d n a1 d z ii) )
|
248 |
+
( "Russell" n (r uh1 s @ l) )
|
249 |
+
( "Roh" n (r ou1) )
|
250 |
+
( "McDonnell" n (m @ k d o1 n @ l) )
|
251 |
+
( "Lyonnais" n (l ei1 @ n ei z) )
|
252 |
+
( "Kravis" n (k r a1 v @ s) )
|
253 |
+
( "Gould" n (g uu1 l d) )
|
254 |
+
( "Edelman" n (ei1 d @ l m @ n) )
|
255 |
+
( "Dreyfus" n (d r ei1 f @ s) )
|
256 |
+
( "Coniston" n (k o1 n @ s t @ n) )
|
257 |
+
( "Cineplex" n (s i1 n @ p l e k s) )
|
258 |
+
( "Antar" n (a1 n t aa) )
|
259 |
+
( "Annualized" n (a1 n y uu l ai z d) )
|
260 |
+
( "salespeople" n (s ei1 l s p ii p @ l) )
|
261 |
+
( "pharmaceuticals" n (f aa1 m @ s y uu1 t @ k @ l z) )
|
262 |
+
( "layoffs" n (l ei1 o1 f s) )
|
263 |
+
( "issuance" n (i sh uu1 a n s) )
|
264 |
+
( "intraday" n (i1 n t r @ d ei1) )
|
265 |
+
( "exercisable" n (e1 k s @ r s ai1 z @ b @ l) )
|
266 |
+
( "Weisfield" n (w ii1 s f ii1 l d) )
|
267 |
+
( "Unocal" n (y uu1 n @ k a l) )
|
268 |
+
( "Straszheim" n (s t r a1 z h ai m) )
|
269 |
+
( "Microsystems" n (m ai1 k r ou s i1 s t @ m z) )
|
270 |
+
( "Hambrecht" n (h a1 m b r e k t) )
|
271 |
+
( "Generale" n (jh e n e r a1 l) )
|
272 |
+
( "Friedman" n (f r ii1 d m @ n) )
|
273 |
+
( "Fresenius" n (f r ii s e1 n i uh s) )
|
274 |
+
( "Contel" n (k o1 n t e l) )
|
275 |
+
( "Bennett" n (b e1 n i t) )
|
276 |
+
( "Azoff" n (a1 z o f) )
|
277 |
+
( "Arabia" n (@ r ei1 b i@) )
|
278 |
+
( "rubles" n (r uu1 b @ l z) )
|
279 |
+
( "routinely" n (r uu t ii1 n l ii) )
|
280 |
+
( "Unilever" n (y uu1 n @ l ii1 v @ r) )
|
281 |
+
( "Telesis" n (t e1 l ii s i s) )
|
282 |
+
( "Skase" n (s k a1 s ii) )
|
283 |
+
( "Manuel" n (m a1 n w e l) )
|
284 |
+
( "Mancuso" n (m a n k y uu1 s ou) )
|
285 |
+
( "Hearst" n (h @@1 s t) )
|
286 |
+
( "DeConcini" n (d @ k o n ch ii1 n ii) )
|
287 |
+
( "Chiron" n (ch ai1 r o n) )
|
288 |
+
( "Caribbean" n (k a1 r @ b ii1 @ n) )
|
289 |
+
( "Bogart" n (b ou1 g aa t) )
|
290 |
+
( "rumor" n (r uu1 m @ r) )
|
291 |
+
( "noncallable" n (n o1 n k oo1 l @ b @ l) )
|
292 |
+
( "industrywide" n (i1 n d uh s t r ii w ai1 d) )
|
293 |
+
( "Weiss" n (w ai1 s) )
|
294 |
+
( "Tucson" n (t uu1 s o n) )
|
295 |
+
( "Rosenthal" n (r ou1 s @ n t a l) )
|
296 |
+
( "Rogers" n (r o1 jh @@ z) )
|
297 |
+
( "Roderick" n (r o1 d @ r i k) )
|
298 |
+
( "Rican" n (r ii1 k a n) )
|
299 |
+
( "Prebon" n (p r ii1 b o n) )
|
300 |
+
( "Owen" n (ou1 e n) )
|
301 |
+
( "Mercedes" n (m @@ s ei1 d ii s) )
|
302 |
+
( "Intelogic" n (i1 n t e l l o1 jh i k) )
|
303 |
+
( "HomeFed" n (h ou1 m f e1 d) )
|
304 |
+
( "Fossett" n (f o1 s i t) )
|
305 |
+
( "Cocom" n (k ou1 k o1 m) )
|
306 |
+
( "Cheney" n (ch ei1 n ii) )
|
307 |
+
( "Capel" n (k a p e1 l) )
|
308 |
+
( "Cabrera" n (k @ b r e1 r @) )
|
309 |
+
( "Blumenfeld" n (b l uu1 m @ n f e l d) )
|
310 |
+
( "pressured" n (p r e1 sh @ r d) )
|
311 |
+
( "pachinko" n (p @ ch i1 ng k ou) )
|
312 |
+
( "conferees" n (k o1 n f @ r ii1 z) )
|
313 |
+
( "audio" n (oo1 d i ou) )
|
314 |
+
( "Weyerhaeuser" n (w ai1 r h au1 s @ r) )
|
315 |
+
( "Schwarz" n (sh w oo1 t z) )
|
316 |
+
( "Schering" n (sh e1 r i ng) )
|
317 |
+
( "Sandinista" n (s a1 n @ n ii1 s t @) )
|
318 |
+
( "Renault" n (r e1 n ou) )
|
319 |
+
( "Petrie" n (p ii1 t r ii) )
|
320 |
+
( "Mosbacher" n (m o1 s b a k @ r) )
|
321 |
+
( "Mario" n (m a1 r i ou) )
|
322 |
+
( "Kleinwort" n (k l ai1 n w oo t) )
|
323 |
+
( "Hyundai" n (h uu1 n d ai) )
|
324 |
+
( "Genentech" n (jh e1 n @ n t e1 k) )
|
325 |
+
( "Busch" n (b uu1 sh) )
|
326 |
+
( "Bofors" n (b ou1 f @ @ s) )
|
327 |
+
( "Barre" n (b aa1 r) )
|
328 |
+
( "ruble" n (r uu1 b @ l) )
|
329 |
+
( "nonprofit" n (n o1 n - p r o1 f i t) )
|
330 |
+
( "buildup" n (b i1 l d uh1 p) )
|
331 |
+
( "breakup" n (b r ei1 k uh1 p) )
|
332 |
+
( "ampersand" n (a1 m p @ s a n d) )
|
333 |
+
( "TransCanada" n (t r a1 n s - k a1 n @ d @1) )
|
334 |
+
( "Superfund" n (s uu1 p @ - f uh n d) )
|
335 |
+
( "Sandinistas" n (s a1 n @ n ii1 s t @ s) )
|
336 |
+
( "Posner" n (p o1 z n @ r) )
|
337 |
+
( "Papandreou" n (p a1 p @ n d r ii ou) )
|
338 |
+
( "Odeon" n (ou1 d i @ n) )
|
339 |
+
( "Nathan" n (n ei1 th @ n) )
|
340 |
+
( "McGovern" n (m @ g uh1 v @@ n) )
|
341 |
+
( "Matra" n (m a1 t r @) )
|
342 |
+
( "Lorin" n (l oo1 r @ n) )
|
343 |
+
( "Klein" n (k l ai1 n) )
|
344 |
+
( "Goodyear" n (g u1 d y e@1) )
|
345 |
+
( "Eaton" n (ii1 t @ n) )
|
346 |
+
( "Donoghue" n (d o1 n @ h y uu) )
|
347 |
+
( "DaPuzzo" n (d @ p uu1 z ou) )
|
348 |
+
( "Barclays" n (b aa1 k l i z) )
|
349 |
+
( "semiannual" n (s e1 m i - a1 n y u@ l) )
|
350 |
+
( "maneuver" n (m a n uu1 v @ r) )
|
351 |
+
( "gridlock" n (g r i1 d l o1 k) )
|
352 |
+
( "defenses" n (d @ f e1 n s @ s) )
|
353 |
+
( "anytime" n (e1 n ii t ai m) )
|
354 |
+
( "annualized" n (a1 n y u@ l ei z d) )
|
355 |
+
( "Trinova" n (t r i n ou1 v @) )
|
356 |
+
( "Suzuki" n (s u z uu1 k ii) )
|
357 |
+
( "Shapiro" n (sh @ p ii1 r ou) )
|
358 |
+
( "Schwartz" n (sh w oo1 t z) )
|
359 |
+
( "Savaiko" n (s a v ai1 k ou) )
|
360 |
+
( "Salinas" n (s a l ii1 n @ s) )
|
361 |
+
( "Rio" n (r ii1 ou) )
|
362 |
+
( "Refcorp" n (r e1 f k oo p) )
|
363 |
+
( "Mehta" n (m ei1 t @) )
|
364 |
+
( "McMoRan" n (m @ k m oo1 r @ n) )
|
365 |
+
( "Matsushita" n (m a t s uu1 sh t @) )
|
366 |
+
( "Luzon" n (l uu1 z o n) )
|
367 |
+
( "Lufthansa" n (l uu f t h a1 n s @) )
|
368 |
+
( "Interprovincial" n (i1 n t @@ - p r o v i1 n sh @ l) )
|
369 |
+
( "Hoechst" n (h ou1 sh t) )
|
370 |
+
( "Giovanni" n (jh i ou v a1 n ii) )
|
371 |
+
( "Erbamont" n (e1 r b @ m o n t) )
|
372 |
+
( "Emhart" n (e1 m h aa t) )
|
373 |
+
( "Daewoo" n (d ei1 w uu) )
|
374 |
+
( "Corr" n (k o1 r) )
|
375 |
+
( "Chivas" n (ch ii1 v @ s) )
|
376 |
+
( "Burger" n (b @@1 g @) )
|
377 |
+
( "Broadway" n (b r oo1 d w ei) )
|
378 |
+
( "Alaskan" n (@ l a1 s k @ n) )
|
379 |
+
( "palladium" n (p @ l ei1 d i uh m) )
|
380 |
+
( "installment" n (i n s t oo1 l m @ n t) )
|
381 |
+
( "franchisee" n (f r a1 n ch ai z ii1) )
|
382 |
+
( "Wertheim" n (w e1 r th ai m) )
|
383 |
+
( "Uniroyal" n (y uu1 n i r oi1 @ l) )
|
384 |
+
( "Southam" n (s au1 th @ m) )
|
385 |
+
( "Sinyard" n (s i1 n y aa d) )
|
386 |
+
( "Quayle" n (k w ei1 l) )
|
387 |
+
( "Pontiac" n (p o1 n t i a k) )
|
388 |
+
( "Nuovo" n (n uu1 @ v ou) )
|
389 |
+
( "MedChem" n (m e1 d k e m) )
|
390 |
+
( "Mahfouz" n (m aa1 f uu z) )
|
391 |
+
( "Lomas" n (l ou1 m a s) )
|
392 |
+
( "Kangyo" n (k a1 ng g y ou) )
|
393 |
+
( "Iverson" n (ai1 v @@ s @ n) )
|
394 |
+
( "Graham" n (g r ei1 uh m) )
|
395 |
+
( "Giorgio" n (g ii1 oo r g ii1 ou) )
|
396 |
+
( "Gelbart" n (g e1 l b aa t) )
|
397 |
+
( "Gabelli" n (g a b e1 l ii) )
|
398 |
+
( "Ellis" n (e1 l i s) )
|
399 |
+
( "Donuts" n (d ou1 n uh t s) )
|
400 |
+
( "videocassette" n (v i1 d i ou - k a s e1 t) )
|
401 |
+
( "petrochemicals" n (p e1 t r @ k e1 m @ k @ l z) )
|
402 |
+
( "multinational" n (m uh1 l t i - n a1 sh @ n @ l) )
|
403 |
+
( "minivans" n (m i1 n i v a n z) )
|
404 |
+
( "gubernatorial" n (g uu1 b @@ n a t oo1 r i@ l) )
|
405 |
+
( "franchisers" n (f r a1 n ch ai z @@ z) )
|
406 |
+
( "advancers" n (@ d v a1 n s @@ s) )
|
407 |
+
( "Zoete" n (z ou1 e t) )
|
408 |
+
( "Weil" n (w ei1 l) )
|
409 |
+
( "Torrijos" n (t o r r ii1 y o s) )
|
410 |
+
( "Templeton" n (t e1 m p @ l t @ n) )
|
411 |
+
( "Suez" n (s uu1 e z) )
|
412 |
+
( "Sperry" n (s p e1 r ii) )
|
413 |
+
( "Seita" n (s ei1 t @) )
|
414 |
+
( "Scania" n (s k a1 n i @) )
|
415 |
+
( "Salinger" n (s a1 l i n g @ r) )
|
416 |
+
( "Rudolph" n (r uu1 d o l f) )
|
417 |
+
( "Rostenkowski" n (r o1 s t @ n k au1 s k ii) )
|
418 |
+
( "Pierre" n (p i1 e@) )
|
419 |
+
( "Peugeot" n (p y uu1 zh ou) )
|
420 |
+
( "Pearce" n (p i@1 s) )
|
421 |
+
( "Ortiz" n (o r t ii1 z) )
|
422 |
+
( "Ogden" n (o1 g d i n) )
|
423 |
+
( "OBrien" n (ou b r ai1 @ n) )
|
424 |
+
( "Neuberger" n (n y uu1 b @@ g @ r) )
|
425 |
+
( "Murata" n (m uu r a1 t @) )
|
426 |
+
( "McNamee" n (m a k n @ m ii1) )
|
427 |
+
( "McLennan" n (m @ k l e1 n @ n) )
|
428 |
+
( "Mayer" n (m ei1 @) )
|
429 |
+
( "Mattel" n (m a t e1 l) )
|
430 |
+
( "Macintosh" n (m a1 k i n t o sh) )
|
431 |
+
( "MacDonald" n (m a k d o1 n @ l d) )
|
432 |
+
( "Lumpur" n (l uu1 m p @) )
|
433 |
+
( "Kuala" n (k w a1 l @) )
|
434 |
+
( "Honolulu" n (h o1 n @ l uu1 l uu) )
|
435 |
+
( "Harrison" n (h a1 r i s @ n) )
|
436 |
+
( "Haas" n (h aa1 s) )
|
437 |
+
( "Francois" n (f r o1 n s w @@ z) )
|
438 |
+
( "Cupertino" n (k uu p @ t ii1 n ou) )
|
439 |
+
( "CityFed" n (s i1 t ii f e1 d) )
|
440 |
+
( "Capcom" n (k a1 p k o m) )
|
441 |
+
( "Cananea" n (k @ n a1 n i@) )
|
442 |
+
( "Caltrans" n (k a1 l t r a n s) )
|
443 |
+
( "Beebes" n (b ii1 b s) )
|
444 |
+
( "Bebear" n (b ii1 b e@ r) )
|
445 |
+
( "Avis" n (ei1 v i s) )
|
446 |
+
( "Aoun" n (a1 uu n) )
|
447 |
+
( "Adm" n (a1 d m i r @ l) )
|
448 |
+
( "Abramson" n (ei1 b r @ m s @ n) )
|
449 |
+
( "theaters" n (th i@1 t @@ z) )
|
450 |
+
( "resale" n (r ii s ei1 l) )
|
451 |
+
( "pretrial" n (p r ii1 t r ai1 @ l) )
|
452 |
+
( "midyear" n (m i1 d y @@ r) )
|
453 |
+
( "en" in (o ng) )
|
454 |
+
( "elite" n (i l ii1 t) )
|
455 |
+
( "divisive" n (d @ v ai1 z i v) )
|
456 |
+
( "bono" n (b ou1 n ou) )
|
457 |
+
( "archrival" n (aa1 ch r ai v @ l) )
|
458 |
+
( "acquirer" n (@ k w ai1 r @) )
|
459 |
+
( "Vogelstein" n (v ou1 g @ l s t ii n) )
|
460 |
+
( "Utsumi" n (uu t s uu1 m ii) )
|
461 |
+
( "Touche" n (t uu sh ei1) )
|
462 |
+
( "Tenneco" n (t e1 n @ k ou) )
|
463 |
+
( "Sumitomo" n (s uu1 m ii t ou1 m ou) )
|
464 |
+
( "Sohmer" n (s ou1 m @ r) )
|
465 |
+
( "Shakespeare" n (sh ei1 k s p i@ r) )
|
466 |
+
( "Samsung" n (s a1 m s uh n g) )
|
467 |
+
( "Perlman" n (p @@1 l m @ n) )
|
468 |
+
( "Patel" n (p @ t e1 l) )
|
469 |
+
( "Oy" n (o1 i1) )
|
470 |
+
( "Omaha" n (ou1 m @ h @) )
|
471 |
+
( "ONeill" n (ou n ii1 l) )
|
472 |
+
( "Mueller" n (m uu1 l @ r) )
|
473 |
+
( "Mitterrand" n (m ii1 t @ r a n) )
|
474 |
+
( "Mideast" n (m i1 d ii s t) )
|
475 |
+
( "Michel" n (m ai1 k @ l) )
|
476 |
+
( "Mehl" n (m e1 l) )
|
477 |
+
( "Kume" n (k uu1 m e) )
|
478 |
+
( "Gutfreund" n (g u1 t f r e n d) )
|
479 |
+
( "Geographic" n (jh i1 ou g r a1 f i k) )
|
480 |
+
( "Fujis" n (f uu1 jh ii z) )
|
481 |
+
( "Freres" n (f r e1 r z) )
|
482 |
+
( "Fazio" n (f a1 t s i ou) )
|
483 |
+
( "Einhorn" n (ai1 n h oo n) )
|
484 |
+
( "Egon" n (ii1 g o n) )
|
485 |
+
( "Cruz" n (k r uu1 z) )
|
486 |
+
( "Comex" n (k o1 m e k s) )
|
487 |
+
( "Carnegie" n (k a r n ei1 g ii) )
|
488 |
+
( "Braniff" n (b r a1 n i f) )
|
489 |
+
( "Aquino" n (@ k ii1 n ou) )
|
490 |
+
( "Aichi" n (ai ii1 ch ii) )
|
491 |
+
( "Ahmanson" n (aa1 m @ n s @ n) )
|
492 |
+
( "statewide" n (s t ei1 t w ai d) )
|
493 |
+
( "sitcom" n (s i1 t k o m) )
|
494 |
+
( "refinance" n (r ii f ai1 n a n s) )
|
495 |
+
( "postwar" n (p ou s t w oo1 r) )
|
496 |
+
( "playoffs" n (p l ei o1 f s) )
|
497 |
+
( "outpaced" n (au t p ei1 s d) )
|
498 |
+
( "midtown" n (m i d t au1 n) )
|
499 |
+
( "maneuvering" n (m a n uu1 v @ r i ng) )
|
500 |
+
( "makeup" n (m ei1 k uh1 p) )
|
501 |
+
( "indexation" n (i1 n d e k s ei1 sh @ n) )
|
502 |
+
( "hemorrhaging" n (h e1 m @ r @ jh i ng) )
|
503 |
+
( "closings" n (k l ou1 s i ng z) )
|
504 |
+
( "Xtra" n (e1 k s t r @) )
|
505 |
+
( "Wachter" n (w o1 ch @ r) )
|
506 |
+
( "Trudeau" n (t r uu1 d ou) )
|
507 |
+
( "Tharp" n (th aa1 p) )
|
508 |
+
( "Stephens" n (s t ii1 f @ n z) )
|
509 |
+
( "Sino" n (s ai1 n ou) )
|
510 |
+
( "Seymour" n (s ii1 m o r) )
|
511 |
+
( "Reitman" n (r ai1 t m @ n) )
|
512 |
+
( "Ramirez" n (r @ m ii1 r e z) )
|
513 |
+
( "Petrolane" n (p e1 t r ou l ei n) )
|
514 |
+
( "Omni" n (o1 m n ii) )
|
515 |
+
( "Ohbayashi" n (ou1 b a y a1 sh ii) )
|
516 |
+
( "Oakes" n (ou1 k s) )
|
517 |
+
( "Nuys" n (n oi1 z) )
|
518 |
+
( "Nguyen" n (n uu1 y e n) )
|
519 |
+
( "Mateo" n (m @ t ei1 ou) )
|
520 |
+
( "Maclean" n (m @ k l ii n) )
|
521 |
+
( "Kia" n (k ii1 @) )
|
522 |
+
( "Kerr" n (k e r) )
|
523 |
+
( "Kawasaki" n (k a1 w @ s a1 k ii) )
|
524 |
+
( "Kao" n (k a1 ou) )
|
525 |
+
( "Kalikow" n (k a1 l @ k ou) )
|
526 |
+
( "Jacques" n (zh a1 k) )
|
527 |
+
( "Jacobs" n (jh ei1 k @ b s) )
|
528 |
+
( "Institut" n (i1 n s t i t uu t) )
|
529 |
+
( "Hawaiian" n (h @ w ai1 @ n) )
|
530 |
+
( "Garratt" n (g a1 r i t) )
|
531 |
+
( "Elliott" n (e1 l ii i t) )
|
532 |
+
( "Ehrlich" n (e1 r l i k) )
|
533 |
+
( "Eduard" n (e1 d w aa d) )
|
534 |
+
( "Dai" n (d ai1) )
|
535 |
+
( "Conant" n (k o1 n @ n t) )
|
536 |
+
( "Bruno" n (b r uu1 n ou) )
|
537 |
+
( "wildlife" n (w ai1 l d l ai f) )
|
538 |
+
( "wastewater" n (w ei1 s t w oo t @ r) )
|
539 |
+
( "unraveling" n (uh n r a1 v l i ng) )
|
540 |
+
( "tritium" n (t r i1 t i uh m) )
|
541 |
+
( "semiannually" n (s e1 m i a1 n y u@ l) )
|
542 |
+
( "salmonella" n (s a1 l m @ n e1 l @) )
|
543 |
+
( "reoffered" n (r ii1 o1 f @@ d) )
|
544 |
+
( "reinvest" n (r ii1 i n v e1 s t) )
|
545 |
+
( "merchandising" n (m @@1 ch @ n d ai1 z i ng) )
|
546 |
+
( "favorably" n (f ei1 v r @ b l ii) )
|
547 |
+
( "duo" n (d y uu1 ou) )
|
548 |
+
( "dialysis" n (d ai a1 l @ s i s) )
|
549 |
+
( "chlorofluorocarbons" n (k l o1 r @ f l o1 r @ k aa1 b @ n z) )
|
550 |
+
( "Yamatake" n (y a1 m @ t a1 k e) )
|
551 |
+
( "Wichita" n (w i1 ch @ t @) )
|
552 |
+
( "Valdez" n (v a1 l d e z) )
|
553 |
+
( "Unicorp" n (y uu1 n i k oo p) )
|
554 |
+
( "Trustcorp" n (t r uh1 s t k oo p) )
|
555 |
+
( "Toubro" n (t ou1 b r ou) )
|
556 |
+
( "Tiananmen" n (t i@1 n @ n m e1 n) )
|
557 |
+
( "Tesoro" n (t e s ou1 r ou) )
|
558 |
+
( "Tae" n (t ei1) )
|
559 |
+
( "Stalinist" n (s t a1 l @ n @ s t) )
|
560 |
+
( "SsangYong" n (s a1 ng y o1 ng) )
|
561 |
+
( "Shidler" n (sh ai1 d l @ r) )
|
562 |
+
( "Schuster" n (sh u1 s t @ r) )
|
563 |
+
( "Schlumberger" n (sh l uh1 m b @@ zh ei) )
|
564 |
+
( "Schaeffer" n (sh ei1 f @ r) )
|
565 |
+
( "Sagan" n (s ei1 g @ n) )
|
566 |
+
( "Roberti" n (r @ b @@1 t ii) )
|
567 |
+
( "Rahn" n (r aa1 n) )
|
568 |
+
( "Rafale" n (r @ f a1 l ii) )
|
569 |
+
( "Quina" n (k ii1 n @) )
|
570 |
+
( "Parenthood" n (p e@1 r @ n t h uu d) )
|
571 |
+
( "Novello" n (n o v e1 l ou) )
|
572 |
+
( "Morgenzon" n (m o1 r g @ n z @ n) )
|
573 |
+
( "Moines" n (m oi1 n) )
|
574 |
+
( "Michelin" n (m i1 sh @ l a n) )
|
575 |
+
( "Meyer" n (m ai1 @ r) )
|
576 |
+
( "McGee" n (m @ g ii1) )
|
577 |
+
( "Marous" n (m a1 r ou s) )
|
578 |
+
( "Managua" n (m @ n a1 g w @) )
|
579 |
+
( "Macrodantin" n (m a1 k r ou d a1 n t i n) )
|
580 |
+
( "Knopf" n (k n o1 p f) )
|
581 |
+
( "Jayark" n (jh ei1 y aa k) )
|
582 |
+
( "Izvestia" n (i s v e1 s t i @) )
|
583 |
+
( "Ichi" n (ii1 ch ii) )
|
584 |
+
( "Hyman" n (h ai1 m @ n) )
|
585 |
+
( "Hirsch" n (h @@1 sh) )
|
586 |
+
( "Himont" n (h ai1 m @ n t) )
|
587 |
+
( "Hercules" n (h @@1 k y uu l ii z) )
|
588 |
+
( "Heinemann" n (h ai1 n m @ n) )
|
589 |
+
( "Hathaway" n (h a1 th @ w ei) )
|
590 |
+
( "Guterman" n (g u1 t @@ m @ n) )
|
591 |
+
( "Gitano" n (g ii t a1 n ou) )
|
592 |
+
( "Gibson" n (g i1 b s @ n) )
|
593 |
+
( "Geduld" n (g e1 d uh l d) )
|
594 |
+
( "Gatward" n (g a1 t w aa d) )
|
595 |
+
( "Gartner" n (g aa1 t n @ r) )
|
596 |
+
( "Fujisawa" n (f uu1 jh ii s a1 w @) )
|
597 |
+
( "FirstSouth" n (f i1 r s t s au th) )
|
598 |
+
( "Finkelstein" n (f i1 n k @ l s t ii n) )
|
599 |
+
( "Fernandez" n (f @@ n a1 n d e z) )
|
600 |
+
( "Faberge" n (f a1 b e r jh ei) )
|
601 |
+
( "Detrex" n (d e1 t r e k s) )
|
602 |
+
( "Carolinas" n (k a1 r @ l ai1 n @ s) )
|
603 |
+
( "Candela" n (k @ n d e1 l @) )
|
604 |
+
( "Calloway" n (k a1 l @ w ei) )
|
605 |
+
( "Cablevision" n (k ei1 b @ v i1 zh @ n) )
|
606 |
+
( "Cabernet" n (k a1 b @ n ei) )
|
607 |
+
( "Byrd" n (b @@1 d) )
|
608 |
+
( "Bundesbank" n (b uu1 n d @ s b a1 n k) )
|
609 |
+
( "Bumiputra" n (b u1 m i p u1 t r @) )
|
610 |
+
( "Boyer" n (b oi1 @ r) )
|
611 |
+
( "Boise" n (b oi1 s ii) )
|
612 |
+
( "Albuquerque" n (a1 l b @ k @@1 k ii) )
|
613 |
+
( "Accor" n (@ k o1 r) )
|
614 |
+
( "Acadia" n (@ k ei1 d i @) )
|
615 |
+
( "unfocused" n (uh n f ou1 k @ s d) )
|
616 |
+
( "superpower" n (s uu1 p @ p au1 @ r) )
|
617 |
+
( "subcompact" n (s uh1 b k o1 m p a k t) )
|
618 |
+
( "spreadsheet" n (s p r e1 d sh ii t) )
|
619 |
+
( "signaling" n (s i1 g n @ l i ng) )
|
620 |
+
( "setup" n (s e t uh1 p) )
|
621 |
+
( "repurchased" n (r ii1 p @@1 ch i s d) )
|
622 |
+
( "refinanced" n (r ii f ai1 n a n s d) )
|
623 |
+
( "pressuring" n (p r e1 sh @ r i ng) )
|
624 |
+
( "paychecks" n (p ei1 ch e k s) )
|
625 |
+
( "math" n (m a1 th) )
|
626 |
+
( "favorites" n (f ei1 v r i t s) )
|
627 |
+
( "destabilizing" n (d ii s t ei1 b @ l ai1 z i ng) )
|
628 |
+
( "crocidolite" n (k r ou s i1 d @ l ai t) )
|
629 |
+
( "counterrevolutionary" n (k au1 n t @@ - r e1 v @ l uu1 sh @ n r ii) )
|
630 |
+
( "colorful" n (k uh1 l @ r f @ l) )
|
631 |
+
( "bureaus" n (b y uu1 r ou s) )
|
632 |
+
( "broadcasters" n (b r oo1 d k a s t @@ s) )
|
633 |
+
( "Yasuda" n (y a1 s u d @) )
|
634 |
+
( "Yamamoto" n (y a1 m a m ou1 t ou) )
|
635 |
+
( "Volkswagen" n (v o1 l k s w a g @ n) )
|
636 |
+
( "Veraldi" n (v e r a1 l d ii) )
|
637 |
+
( "Unice" n (y uu1 n i s) )
|
638 |
+
( "Tulsa" n (t uh1 l s @) )
|
639 |
+
( "Travis" n (t r a1 v @ s) )
|
640 |
+
( "Traviata" n (t r a v ii a1 t @) )
|
641 |
+
( "Threlkeld" n (th r e1 l k e l d) )
|
642 |
+
( "Stronach" n (s t r o1 n @ k) )
|
643 |
+
( "Stovall" n (s t o1 v a l) )
|
644 |
+
( "Staten" n (s t a1 t @ n) )
|
645 |
+
( "Soweto" n (s u w e1 t ou) )
|
646 |
+
( "Siegel" n (s ii1 g @ l) )
|
647 |
+
( "Shattuck" n (sh a1 t uh k) )
|
648 |
+
( "Segundo" n (s e g u1 n d ou) )
|
649 |
+
( "SciMed" n (s ai1 m e1 d) )
|
650 |
+
( "Schulof" n (sh u1 l o f) )
|
651 |
+
( "Schneider" n (sh n ai1 d @ r) )
|
652 |
+
( "Schaefer" n (sh ai1 f @ r) )
|
653 |
+
( "Salem" n (s ei1 l @ m) )
|
654 |
+
( "Safeco" n (s ei1 f k ou) )
|
655 |
+
( "Ruvolo" n (r uu1 v ou l ou) )
|
656 |
+
( "Rianta" n (r ii a1 n t @) )
|
657 |
+
( "Prix" n (p r ii1) )
|
658 |
+
( "Petipa" n (p e t ii1 p @) )
|
659 |
+
( "Paxus" n (p a1 k s @ s) )
|
660 |
+
( "Paulo" n (p au1 l ou) )
|
661 |
+
( "Parsow" n (p aa1 s ou) )
|
662 |
+
( "Ovcharenko" n (o1 v ch a r e1 n k ou) )
|
663 |
+
( "Orlando" n (o r l a1 n d d ou) )
|
664 |
+
( "Novell" n (n ou v e1 l) )
|
665 |
+
( "Nissho" n (n ii1 sh ou) )
|
666 |
+
( "Nikon" n (n ii1 k o n) )
|
667 |
+
( "Ngoc" n (n o1 k) )
|
668 |
+
( "Movieline" n (m uu1 v ii l ai n) )
|
669 |
+
( "Montagu" n (m o1 n t @ g y uu) )
|
670 |
+
( "Mitsukoshi" n (m i1 t s uu k ou1 sh ii) )
|
671 |
+
( "Milpitas" n (m i l p ii1 t @ s) )
|
672 |
+
( "McGill" n (m @ g i1 l) )
|
673 |
+
( "McDermott" n (m @ k d @@1 m i t) )
|
674 |
+
( "Maxtor" n (m a1 k s t o r) )
|
675 |
+
( "Marietta" n (m a1 r i e1 t @) )
|
676 |
+
( "Maier" n (m ai1 @ r) )
|
677 |
+
( "Maguire" n (m @ g w ai1 @ r) )
|
678 |
+
( "Machiguenga" n (m a1 ch i g w e1 n g @) )
|
679 |
+
( "Lowell" n (l au1 @ l) )
|
680 |
+
( "Lorillard" n (l o1 r @ l aa d) )
|
681 |
+
( "Lonrho" n (l oo1 n r ou) )
|
682 |
+
( "Lentjes" n (l e1 n t y i z) )
|
683 |
+
( "Kozinski" n (k o z i1 n s k ii) )
|
684 |
+
( "Kloves" n (k l ou1 v z) )
|
685 |
+
( "Jerusalem" n (jh e r uu1 s @ l e m) )
|
686 |
+
( "Iwai" n (ii w ai1) )
|
687 |
+
( "Immunex" n (i1 m y uu n e k s) )
|
688 |
+
( "Ikegai" n (ii1 k e g ai) )
|
689 |
+
( "Homestake" n (h ou1 m s t ei k) )
|
690 |
+
( "Heinz" n (h ai1 n z) )
|
691 |
+
( "Harlem" n (h aa1 l @ m) )
|
692 |
+
( "Hallwood" n (h oo1 l w u d) )
|
693 |
+
( "Haagen" n (h aa1 g @ n) )
|
694 |
+
( "Geva" n (jh e1 v @) )
|
695 |
+
( "Georgetown" n (jh oo1 jh t au n) )
|
696 |
+
( "GenCorp" n (jh e1 n k oo p) )
|
697 |
+
( "Garzarelli" n (g aa1 z @ r e1 l ii) )
|
698 |
+
( "Fremont" n (f r ii1 m o n t) )
|
699 |
+
( "Forster" n (f oo1 s t @ r) )
|
700 |
+
( "Fleischmann" n (f l e1 sh m @ n) )
|
701 |
+
( "Fischer" n (f i1 sh @ r) )
|
702 |
+
( "Fidel" n (f i d e1 l) )
|
703 |
+
( "Feshbach" n (f e1 sh b a k) )
|
704 |
+
( "Ferruzzi" n (f e r uu1 t s ii) )
|
705 |
+
( "Felipe" n (f e l ii1 p) )
|
706 |
+
( "Deseret" n (d e1 s e r i t) )
|
707 |
+
( "Davidson" n (d ei1 v i d s @ n) )
|
708 |
+
( "Cooperman" n (k uu1 p @@ m a n) )
|
709 |
+
( "Chez" n (sh e1 z) )
|
710 |
+
( "Canelo" n (k @ n e1 l ou) )
|
711 |
+
( "Canaan" n (k ei1 n @ n) )
|
712 |
+
( "Byrne" n (b @@ n) )
|
713 |
+
( "Brody" n (b r ou1 d ii) )
|
714 |
+
( "BroadBeach" n (b r oo1 d - b ii ch) )
|
715 |
+
( "BioSciences" n (b ai1 ou - s ai1 @ n s @ s) )
|
716 |
+
( "Barr" n (b aa1) )
|
717 |
+
( "BancOklahoma" n (b a n k - ou1 k l @ h ou1 m @) )
|
718 |
+
( "Asahi" n (a1 s a h ii) )
|
719 |
+
( "Armenian" n (aa1 m i n i@ n) )
|
720 |
+
( "Antarctica" n (@ n t aa1 k t i k @) )
|
721 |
+
( "Anacomp" n (a1 n @ k o m p) )
|
722 |
+
( "Ames" n (ei1 m z) )
|
723 |
+
( "Amdahl" n (a1 m d a l) )
|
724 |
+
( "Allday" n (oo1 l d ei1) )
|
725 |
+
( "Ailes" n (ai1 l z) )
|
726 |
+
( "whove" n (w ou v) )
|
727 |
+
( "thirtysomething" n (th @@1 t ii - s uh1 m th i ng) )
|
728 |
+
( "telemarketing" n (t e1 l ii - m aa1 k i t i ng) )
|
729 |
+
( "telemarketers" n (t e1 l ii - m aa1 k i t @ r z) )
|
730 |
+
( "sustainable" n (s @ s t ei1 n @ b @ l) )
|
731 |
+
( "spiraling" n (s p ai1 r @ l i ng) )
|
732 |
+
( "shoreline" n (sh oo1 r - l ai n) )
|
733 |
+
( "retirees" n (r i t ai1 r ii1 z) )
|
734 |
+
( "reseller" n (r ii1 s e l @ r) )
|
735 |
+
( "reignited" n (r ii i g n ai1 t @ d) )
|
736 |
+
( "refocusing" n (r ii f ou1 k @ s i ng) )
|
737 |
+
( "refocus" n (r ii f ou1 k @ s) )
|
738 |
+
( "pico" n (p ii1 k ou) )
|
739 |
+
( "overreacting" n (ou1 v @@ - r ii a1 k t i ng) )
|
740 |
+
( "onetime" n (w uh1 n - t ai1 m) )
|
741 |
+
( "muni" n (m y uu1 n ii) )
|
742 |
+
( "multinationals" n (m uh1 l t i - n a1 sh @ n @ l z) )
|
743 |
+
( "maneuvers" n (m a n uu1 v @ r z) )
|
744 |
+
( "haired" n (h e@1 d) )
|
745 |
+
( "franchiser" n (f r a1 n ch ai z @ r) )
|
746 |
+
( "franchised" n (f r a1 n ch ai z d) )
|
747 |
+
( "feisty" n (f ai1 s t ii) )
|
748 |
+
( "equaled" n (ii1 k w @ l d) )
|
749 |
+
( "criminality" n (k r i1 m @ n a1 l i t ii) )
|
750 |
+
( "coupe" n (k uu1 p ei) )
|
751 |
+
( "confrontational" n (k o1 n f r @ n t ei1 sh @ n @ l) )
|
752 |
+
( "catheter" n (k a1 th @ t @ r) )
|
753 |
+
( "buyout" n (b ai1 au t) )
|
754 |
+
( "armored" n (aa1 m @ r d) )
|
755 |
+
( "aerobics" n (ei r ou1 b i k s) )
|
756 |
+
( "acquirers" n (@ k w ai1 r @ r z) )
|
757 |
+
( "academia" n (a1 k @ d ii1 m i @) )
|
758 |
+
|
759 |
+
;;; no prizes for guessing where this came from
|
760 |
+
|
761 |
+
( "Holmes" n (h ou1 m z) )
|
762 |
+
( "Lestrade" n (l @ s t r aa1 d) )
|
763 |
+
( "McGinty" n (m @ g i1 n t ii) )
|
764 |
+
( "Stapleton" n (s t ei1 p @ l t @ n) )
|
765 |
+
( "Baskerville" n (b a1 s k @ v i l) )
|
766 |
+
( "Drebber" n (d r e1 b @ r) )
|
767 |
+
( "Moriarty" n (m o1 r i aa1 t ii) )
|
768 |
+
( "Conan" n (k o1 n @ n) )
|
769 |
+
( "Tregennis" n (t r i g e1 n @ s) )
|
770 |
+
( "Rucastle" n (r uu1 k a s @ l) )
|
771 |
+
( "leading" n (l ii1 d i ng) )
|
772 |
+
( "Ettie" n ( e1 t ii ))
|
773 |
+
( "Carruthers" n ( k aa r uh1 th @@ z ) )
|
774 |
+
( "McFarlane" n (m @ k f aa1 l i n) )
|
775 |
+
( "Oldacre" n (ou1 l d - ei k @ r) )
|
776 |
+
( "Alec" n (a1 l i k) )
|
777 |
+
( "Lucas" n (l uu1 k @ s) )
|
778 |
+
( "Cadogan" n (k @ d ou1 g @ n) )
|
779 |
+
( "Huxtable" n (h uh1 k s t @ b @ l) )
|
780 |
+
( "Athelney" n (a1 th @ l n ei) )
|
781 |
+
( "daresay" n (d e@1 s ei) )
|
782 |
+
( "Woolwich" n (w u1 l i ch) )
|
783 |
+
( "Devonshire" n (d e1 v @ n sh @ r) )
|
784 |
+
( "Trevelyan" n (t r @ v e1 l @ n) )
|
785 |
+
( "Oberstein" n (ou1 b @ s t ai n) )
|
786 |
+
( "Napoleon" n (n @ p ou1 l i @ n) )
|
787 |
+
( "Dartmoor" n (d aa1 t m u@ r) )
|
788 |
+
( "Sterndale" n (s t @@1 n d ei l) )
|
789 |
+
( "Forrester" n (f o1 r @ s t @ r) )
|
790 |
+
( "Woking" n (w ou1 k i ng) )
|
791 |
+
( "Stapletons" n (s t ei1 p @ l t @ n s) )
|
792 |
+
( "Mapleton" n (m ei1 p @ l t @ n) )
|
793 |
+
( "Merryweather" n (m e1 r i w e dh @ r) )
|
794 |
+
( "Gorgiano" n (jh oo jh i a1 n ou) )
|
795 |
+
( "Beddoes" n (b e1 d ou s) )
|
796 |
+
( "Prendergast" n (p r e1 n d @ g a s t) )
|
797 |
+
( "Paddington" n (p a1 d i ng t @ n) )
|
798 |
+
( "Thames" n (t e1 m z) )
|
799 |
+
( "Charpentier" n (sh a r p e1 n t i ei) )
|
800 |
+
( "halloa" n (h a l ou1 @) )
|
801 |
+
( "Eustace" n (y uu1 s t @ s) )
|
802 |
+
( "Baskervilles" n (b a1 s k @ v i l z) )
|
803 |
+
( "merest" n (m ii1 r @ s t) )
|
804 |
+
( "Mordecai" n (m oo1 d @ k ai) )
|
805 |
+
( "Coburg" n (k ou1 b @@ g) )
|
806 |
+
( "Swandam" n (s w o1 n d @ m) )
|
807 |
+
( "Saxe" n (s a k s) )
|
808 |
+
( "Grimesby" n (g r i1 m s b ii) )
|
809 |
+
( "Esher" n (e1 sh @ r) )
|
810 |
+
( "Eduardo" n (e d w aa1 d ou) )
|
811 |
+
( "wagonette" n (w a1 g @ n e1 t) )
|
812 |
+
( "Trelawney" n (t r @ l oo1 n ii) )
|
813 |
+
( "Sydenham" n (s i1 d @ n h @ m) )
|
814 |
+
( "Montpellier" n (m o m p e1 l i ei) )
|
815 |
+
( "Lysander" n (l ai s a1 n d @ r) )
|
816 |
+
( "Fairbairn" n (f e@1 b e@ n) )
|
817 |
+
( "Altamont" n (a1 l t @ m o n t) )
|
818 |
+
( "wagons" n (w a g @ n z) )
|
819 |
+
( "outre" n (ou1 t r @) )
|
820 |
+
( "moustached" n (m @ s t a1 sh d) )
|
821 |
+
( "humouredly" n (h y uu1 m @ d l ii) )
|
822 |
+
( "Silas" n (s ai1 l @ s) )
|
823 |
+
( "Reuben" n (r uu1 b @ n) )
|
824 |
+
( "Reichenbach" n (r i1 k @ n b a k) )
|
825 |
+
( "Pietro" n (p ii e1 t r ou) )
|
826 |
+
( "Heidegger" n (h ai1 d i g @ r) )
|
827 |
+
( "Euston" n (y uu1 s t @ n) )
|
828 |
+
( "Diogenes" n (d ai oo1 jh @ n ii z) )
|
829 |
+
( "wagon" n (w a1 g @ n) )
|
830 |
+
( "reentered" n (r ii e1 n t @ d) )
|
831 |
+
( "alkaloid" n (a1 l k @ l oi d) )
|
832 |
+
( "Trichinopoly" n (t r ai1 k i n o1 p @ l ii) )
|
833 |
+
( "Streatham" n (s t r e1 t @ m) )
|
834 |
+
( "Sophy" n (s ou1 f ii) )
|
835 |
+
( "Meiringen" n (m e@1 r i ng @ n) )
|
836 |
+
( "Greuze" n (g r uu1 z) )
|
837 |
+
( "Cornelius" n (k o r n ii1 l i @ s) )
|
838 |
+
( "fiancee" n (f i o1 n s ii1) )
|
839 |
+
( "dyou" n (jh ou1) )
|
840 |
+
( "bladed" n (b l ei1 d @ d) )
|
841 |
+
( "aneurism" n (a1 n y uu r @ z m) )
|
842 |
+
( "Vibart" n (v ai1 b aa t) )
|
843 |
+
|
844 |
+
;;; Another set
|
845 |
+
|
846 |
+
( "Mandela" n (m a n d e1 l @) )
|
847 |
+
( "Johnson" n (jh o n s @ n) )
|
848 |
+
( "Buchanan" n (b u k a1 n @ n) )
|
849 |
+
( "Ceausescu" n (ch au ch e1 s k uu) )
|
850 |
+
( "Schwarzkopf" n (sh w oo1 t s k o p f) )
|
851 |
+
( "Aziz" n (@ z ii1 z) )
|
852 |
+
( "Tyson" n (t ai1 s @ n) )
|
853 |
+
( "Stalin" n (s t a1 l i n) )
|
854 |
+
( "Cuomo" n (k uu1 m ou) )
|
855 |
+
( "Rumania" n (r uu m ei1 n i @) )
|
856 |
+
( "Powell" n (p au1 w @ l) )
|
857 |
+
( "Viet" n (v i e1 t) )
|
858 |
+
( "Kerrey" n (k e1 r ii) )
|
859 |
+
( "Sununu" n (s @ n uu1 n uu) )
|
860 |
+
( "Dukakis" n (d @ k a1 k @ s) )
|
861 |
+
( "Lenin" n (l e1 n i n) )
|
862 |
+
( "Chua" n (ch w a1) )
|
863 |
+
( "Azerbaijan" n (a1 z @ b @ jh a1 n) )
|
864 |
+
( "Riyadh" n (r ii1 a d) )
|
865 |
+
( "Jesse" n (jh e1 s ii) )
|
866 |
+
( "Hitler" n (h i1 t l @ r) )
|
867 |
+
( "Tehran" n (t ei r a1 n) )
|
868 |
+
( "Abu" n (a1 b uu) )
|
869 |
+
( "Urquhart" n (@@1 k @@ t) )
|
870 |
+
( "Mozart" n (m ou t s aa t) )
|
871 |
+
( "Lieut" n (l e1 f t e1 n @ n t) )
|
872 |
+
( "Faludi" n (f a l uu1 d ii) )
|
873 |
+
( "Azerbaijanis" n (a1 z @@ b @ jh a1 n ii z) )
|
874 |
+
( "Mubarak" n (m uu1 b @ r a k) )
|
875 |
+
( "Le" dt (l @) )
|
876 |
+
( "Botha" n (b ou1 t @) )
|
877 |
+
( "Ukraine" n (y uu k r ei1 n) )
|
878 |
+
( "antiwar" n (a1 n t i w oo1 r) )
|
879 |
+
( "Likud" n (l i k uu1 d) )
|
880 |
+
( "Duarte" n (d u aa1 t @) )
|
881 |
+
( "Armenia" n (aa m ii1 n i @) )
|
882 |
+
( "semiautomatic" n (s e1 m i oo1 t @ m a t i k) )
|
883 |
+
( "Andrea" n (aa1 n d r i @) )
|
884 |
+
( "Roosevelt" n (r ou z @ v e l t) )
|
885 |
+
( "Luther" n (l u1 th @ r) )
|
886 |
+
( "Armenians" n (aa m ii1 n i @ n z) )
|
887 |
+
( "Bucharest" n (b u1 k @ r e s t) )
|
888 |
+
( "Hirohito" n (h i1 r ou h ii1 t ou) )
|
889 |
+
( "Modrow" n (m u1 d r ou) )
|
890 |
+
( "Ayatullah" n (ai1 @ t uh1 l @) )
|
891 |
+
( "Moynihan" n (m oi1 n @ h a n) )
|
892 |
+
( "Gingrich" n (g i1 n g r i ch) )
|
893 |
+
( "Securitate" n (s @ k y uu1 @ t ei t) )
|
894 |
+
( "Mao" n (m au1) )
|
895 |
+
( "Perez" n (p e1 r e z) )
|
896 |
+
( "Kissinger" n (k i s @ n jh @ r) )
|
897 |
+
( "Yankelovich" n (y a1 n k @ l o1 v i ch) )
|
898 |
+
( "Steinem" n (s t ei n @ m) )
|
899 |
+
( "Rashid" n (r a sh ii1 d) )
|
900 |
+
( "Eisenhower" n (ai1 s @ n h au @ r) )
|
901 |
+
( "Landsbergis" n (l a1 n d s b @@ g @ s) )
|
902 |
+
( "Khrushchev" n (k r uu1 sh ch @ v) )
|
903 |
+
( "Rodriguez" n (r o d r ii1 g e z) )
|
904 |
+
( "Croatia" n (k r ou ei1 sh i@) )
|
905 |
+
( "antiaircraft" n (a1 n t i e@1 k r a f t) )
|
906 |
+
( "Rumanian" n (r uu m ei1 n i @ n) )
|
907 |
+
( "Azerbaijani" n (a1 z @@ b @ jh a1 n ii) )
|
908 |
+
( "Perot" n (p e r ou1) )
|
909 |
+
( "FDIC" n (e1 f d i k) )
|
910 |
+
( "Wagner" n (v aa1 g n @ r) )
|
911 |
+
( "Amman" n (@ m a1 n) )
|
912 |
+
( "mujahedin" n (m u jh a1 h @ d ii n) )
|
913 |
+
( "genome" n (jh ii1 n ou m) )
|
914 |
+
( "Nicolae" n (n i1 k ou l ai) )
|
915 |
+
( "Mohammed" n (m @ h a1 m e d) )
|
916 |
+
( "HIV" n (ei1 ch ai1 v ii1) )
|
917 |
+
( "Aviv" n (@ v ii1 v) )
|
918 |
+
( "quo" n (k w ou1) )
|
919 |
+
( "intifadeh" n (i1 n t @ f a1 d @) )
|
920 |
+
( "Monet" n (m o n ei1) )
|
921 |
+
( "Karabakh" n (k a1 r @ b a k) )
|
922 |
+
( "Hazelwood" n (h ei1 z @ l w u d) )
|
923 |
+
( "Barrett" n (b a1 r i t) )
|
924 |
+
( "furor" n ( f u r o1 r) )
|
925 |
+
( "Tariq" n (t a1 r ii k) )
|
926 |
+
( "Kazakhstan" n (k a1 z @ k s t a n) )
|
927 |
+
( "Goodgame" n (g u1 d g ei m) )
|
928 |
+
( "Pynchon" n (p i1 n ch @ n) )
|
929 |
+
( "Ashe" n (a1 sh) )
|
930 |
+
( "neo" n (n ii1 ou) )
|
931 |
+
( "Rabta" n (r a1 b t @) )
|
932 |
+
( "Pulitzer" n (p uu1 l i t z @ r) )
|
933 |
+
( "Brezhnev" n (b r e1 zh n @ v) )
|
934 |
+
( "Bhutto" n (b uu1 t ou) )
|
935 |
+
( "Sidey" n (s ai1 d ii) )
|
936 |
+
( "superpowers" n (s uu1 p @ p au @ r z) )
|
937 |
+
( "Vaclav" n (v a1 z l a v) )
|
938 |
+
( "Thom" n (t o1 m) )
|
939 |
+
( "NIH" n (e1 n ai1 ei1 ch) )
|
940 |
+
( "Isabelle" n (i1 s @ b e l) )
|
941 |
+
( "Hosni" n (h o1 s n ii) )
|
942 |
+
( "Slovenia" n (s l @ v ii1 n i @) )
|
943 |
+
( "Milosevic" n (m i l o1 s @ v i ch) )
|
944 |
+
( "MacLeod" n (m @ k l au1 d) )
|
945 |
+
( "Friedrich" n (f r ii1 d r i k) )
|
946 |
+
( "Timisoara" n (t ii1 m @ sh w a1 r @) )
|
947 |
+
( "Tadzhikistan" n (t a d z i1 k i s t a n) )
|
948 |
+
( "Salvadoran" n (s a1 l v @ d ou1 r @ n) )
|
949 |
+
( "Rumanians" n (r uu m ei1 n i @ n z) )
|
950 |
+
( "Perrier" n (p e1 r i ei) )
|
951 |
+
( "Lautrec" n (l ou t r e1 k) )
|
952 |
+
( "Kaifu" n (k ai1 f uu) )
|
953 |
+
( "Heidi" n (h ai1 d ii) )
|
954 |
+
( "Fahd" n (f aa d) )
|
955 |
+
( "Disneyland" n (d i1 z n ii l a n d) )
|
956 |
+
( "Courbet" n (k oo1 b ei) )
|
957 |
+
( "Beckett" n (b e1 k i t) )
|
958 |
+
( "Takeshita" n (t @ k e1 sh t @) )
|
959 |
+
( "Khafji" n (k a1 f jh ii) )
|
960 |
+
( "Daley" n (d ei1 l ii) )
|
961 |
+
( "Clarence" n (k l a1 r @ n s) )
|
962 |
+
( "firepower" n (f ai1 @ r p au1 @ r) )
|
963 |
+
( "antiapartheid" n (a1 n t i @ p aa1 t h ai t) )
|
964 |
+
( "Tobias" n (t ou b ai1 @ s) )
|
965 |
+
( "Rostropovich" n (r o1 s t r @ p ou1 v i ch) )
|
966 |
+
( "Roseanne" n (r ou z a1 n) )
|
967 |
+
( "Peres" n (p e r e1 z) )
|
968 |
+
( "Notre" n (n o1 t r @ ) )
|
969 |
+
( "Mantegna" n (m a n t e g n @) )
|
970 |
+
( "Ligachev" n (l i1 g @ ch @ v) )
|
971 |
+
( "Kurdistan" n (k @@1 d i s t a n) )
|
972 |
+
( "Hernandez" n (h @@ n a1 n d @ z) )
|
973 |
+
( "Genscher" n (g e1 n sh @ r) )
|
974 |
+
( "Diane" n (d ai a1 n) )
|
975 |
+
( "buyouts" n (b ai1 au t s) )
|
976 |
+
( "Yamaguchi" n (y a1 m @ g uu1 ch ii) )
|
977 |
+
( "Wilde" n (w ai1 l d) )
|
978 |
+
( "Stroessner" n (s t r o1 s n @ r) )
|
979 |
+
( "Sakharov" n (s a1 k @ r @ v) )
|
980 |
+
( "MacDougall" n (m @ k d uu1 g @ l) )
|
981 |
+
( "Akihito" n (a1 k ii h ii1 t ou) )
|
982 |
+
( "Yanayev" n (y a1 n @ y @ v) )
|
983 |
+
( "Violeta" n (v ai @ l e1 t @) )
|
984 |
+
( "McDowell" n (m @ k d au1 @ l) )
|
985 |
+
( "Ito" n (ii1 t ou) )
|
986 |
+
( "Dali" n (d a1 l ii) )
|
987 |
+
( "savor" n (s ei1 v @ r) )
|
988 |
+
( "ouster" n (au1 s t @ r) )
|
989 |
+
( "hometown" n (h ou1 m t au n) )
|
990 |
+
( "estrogen" n (e1 s t r @ jh @ n) )
|
991 |
+
( "debuting" n (d ei b y uu1 t i ng) )
|
992 |
+
( "au" n (ou1) )
|
993 |
+
( "Yuri" n (y uu1 r ii) )
|
994 |
+
( "Yakovlev" n (y a1 k @ v l e v) )
|
995 |
+
( "Venturi" n (v e n ch y uu1 r ii) )
|
996 |
+
( "Scorsese" n (s k o r s ei1 s ii) )
|
997 |
+
( "McWhirter" n (m @ k w @@1 t @ r) )
|
998 |
+
( "Kennebunkport" n (k e1 n i b uh1 n k p oo t) )
|
999 |
+
( "Hightower" n (h ai1 t au1 @ r) )
|
1000 |
+
( "Cristiani" n (k r i s t ii a1 n ii) )
|
1001 |
+
( "Crete" n (k r ii1 t) )
|
1002 |
+
( "Ukrainian" n (y uu k r ei1 n i @ n) )
|
1003 |
+
( "Trabi" n (t r a1 b ii) )
|
1004 |
+
( "Schickel" n (sh i1 k @ l) )
|
1005 |
+
( "Miyazawa" n (m i1 y @ z a1 w @) )
|
1006 |
+
( "Gaudi" n (g au1 d ii) )
|
1007 |
+
( "Bastille" n (b a s t ii1 l) )
|
1008 |
+
( "somber" n (s o m b @ r) )
|
1009 |
+
( "prewar" n (p r ii1 w oo1 r) )
|
1010 |
+
( "moviegoers" n (m uu1 v i g ou @ r z) )
|
1011 |
+
( "macho" n (m a1 ch ou) )
|
1012 |
+
( "erstwhile" n (@@ s t w ai l) )
|
1013 |
+
( "cliche" n (k l ii sh ei1) )
|
1014 |
+
( "antiabortion" n (a1 n t i @ b oo1 sh @ n) )
|
1015 |
+
( "Uzbekistan" n (uu z b e1 k i s t a n) )
|
1016 |
+
( "Trabant" n (t r @ b a1 n t ) )
|
1017 |
+
( "Sergei" n (s i1 r g ei) )
|
1018 |
+
( "Montgomery" n (m o n t g o1 m @ r ii) )
|
1019 |
+
( "Ku" n (k uu1) )
|
1020 |
+
( "Heathrow" n (h ii1 th r ou) )
|
1021 |
+
( "Guggenheim" n (g uu1 g @ n h ai m) )
|
1022 |
+
( "Gnehm" n (n e1 m) )
|
1023 |
+
( "Gesell" n (g e1 s @ l) )
|
1024 |
+
( "Dylan" n (d i1 l @ n) )
|
1025 |
+
( "Carolco" n (k a1 r @ l k ou) )
|
1026 |
+
( "Buchwald" n (b u1 k v a l d) )
|
1027 |
+
( "Belorussia" n (b e1 l @ r uh1 sh i @) )
|
1028 |
+
( "kidnaped" n (k i1 d n a1 p t) )
|
1029 |
+
( "Yosemite" n (y @ s e1 m i t ii ) )
|
1030 |
+
( "Ukrainians" n (y uu k r ei1 n i @ n z) )
|
1031 |
+
( "Sylvester" n (s i l v e1 s t @ r) )
|
1032 |
+
( "Schultz" n (sh u1 l t s) )
|
1033 |
+
( "Scharf" n (sh aa1 f) )
|
1034 |
+
( "Reaganomics" n (r ei1 g @ n oo1 m i k s) )
|
1035 |
+
( "Randall" n (r a1 n d @ l) )
|
1036 |
+
( "Puryear" n (p uh1 t y @@ r) )
|
1037 |
+
( "Nidal" n (n i d a1 l) )
|
1038 |
+
( "Nair" n (n e@ r) )
|
1039 |
+
( "Michelangelo" n (m ai1 k @ l a1 n jh @ l ou) )
|
1040 |
+
( "Margot" n (m aa1 g ou) )
|
1041 |
+
( "Leonid" n (l i1 e n @ d) )
|
1042 |
+
( "Lehtinen" n (l ei t i1 n @ n) )
|
1043 |
+
( "Hafez" n (h a1 f e z) )
|
1044 |
+
( "Gomez" n (g ou1 m e z) )
|
1045 |
+
( "Gisela" n (jh i s e1 l @) )
|
1046 |
+
( "Elena" n (e l ei1 n @) )
|
1047 |
+
( "Chi" n (k ai1) )
|
1048 |
+
( "Ariz" n (a1 r i z) )
|
1049 |
+
( "Andre" n (aa1 n d r ei) )
|
1050 |
+
( "prizewinning" n (p r ai1 z w i n i ng) )
|
1051 |
+
( "cliches" n (k l ii sh ei z) )
|
1052 |
+
( "basics" n (b ei1 s i k s) )
|
1053 |
+
( "Yellowstone" n (y e1 l ou s t ou n) )
|
1054 |
+
( "Walesa" n (v a l e1 s @) )
|
1055 |
+
( "Stefan" n (s t e1 f a n) )
|
1056 |
+
( "Schwarzenegger" n (sh w oo1 t z e n ei g @ r) )
|
1057 |
+
( "Sanchez" n (s a1 n ch e z) )
|
1058 |
+
( "Nikita" n (n i k ii1 t @) )
|
1059 |
+
( "Navajo" n (n a1 v @ h ou) )
|
1060 |
+
( "Mitchelson" n (m i1 ch @ l s @ n ) )
|
1061 |
+
( "Menem" n (m e n @ m) )
|
1062 |
+
( "Laurent" n (l oo r o1 n) )
|
1063 |
+
( "Lafester" n (l @ f e1 s t @ r) )
|
1064 |
+
( "Janeiro" n (jh @ n e@1 r ou) )
|
1065 |
+
( "Isaacson" n (ai1 s i k s @ n) )
|
1066 |
+
( "Gromyko" n (g r ou m ii1 k ou) )
|
1067 |
+
( "Fergie" n (f @@1 g ii) )
|
1068 |
+
( "Eco" n (ii1 k ou) )
|
1069 |
+
( "DeWitt" n (d @ w i1 t) )
|
1070 |
+
( "Daryl" n (d a1 r @ l) )
|
1071 |
+
( "policymaking" n (p o1 l i s i m ei k i ng) )
|
1072 |
+
( "policymakers" n (p o1 l i s i m ei k @ r z) )
|
1073 |
+
( "nunciature" n (n @ n s ii1 @ ch u@ r) )
|
1074 |
+
( "noncommunist" n (n o n - k o1 m y uu n i s t) )
|
1075 |
+
( "kidnaping" n (k i d n a1 p i i ng) )
|
1076 |
+
( "facade" n (f @ s aa1 d) )
|
1077 |
+
( "disadvantaged" n (d i s @ d v a1 n t ei jh d) )
|
1078 |
+
( "antigovernment" n (a1 n t i g uh1 v @ n m @ n t) )
|
1079 |
+
( "Yves" n (ii1 v z) )
|
1080 |
+
( "Weisser" n (w ai1 z @ r) )
|
1081 |
+
( "Vitali" n (v i t a1 l ii) )
|
1082 |
+
( "Reiner" n (r ai1 n @ r) )
|
1083 |
+
( "Raisa" n (r ai1 s @) )
|
1084 |
+
( "ROTC" n (aa1 r ou1 t ii1 s ii1) )
|
1085 |
+
( "Nicholson" n (n i1 k @ l s @ n) )
|
1086 |
+
( "Mustafa" n (m uh1 s t a f @) )
|
1087 |
+
( "Gras" n (g r aa1) )
|
1088 |
+
( "Gershwin" n (g @@ sh w @ n) )
|
1089 |
+
( "Gibbs" n (g i1 b z ) )
|
1090 |
+
( "Freud" n (f r oi1 d) )
|
1091 |
+
( "Doubleday" n (d uh1 b @ l d ei) )
|
1092 |
+
( "Beyer" n (b ei1 @ r) )
|
1093 |
+
( "Arrington" n (a1 r i ng t @ n) )
|
1094 |
+
( "Anastasia" n (a1 n a s t ei1 s i @) )
|
1095 |
+
( "Allison" n (a1 l i s o n) )
|
1096 |
+
( "Ahmed" n (aa1 m e d) )
|
1097 |
+
( "geopolitical" n (jh ii1 ou p @ l i1 t @ k @ l) )
|
1098 |
+
( "bookstores" n (b u1 k s t oo1 z) )
|
1099 |
+
( "Zhai" n (z ai1) )
|
1100 |
+
( "Xiaoping" n (sh au1 p i ng) )
|
1101 |
+
( "Xiao" n (sh au1) )
|
1102 |
+
( "Winbush" n (w i1 n b uu sh) )
|
1103 |
+
( "Whitaker" n (w i1 t @ k @ r) )
|
1104 |
+
( "Vytautas" n (v ai t au1 t @ s) )
|
1105 |
+
( "Swaggart" n (s w a1 g @ t) )
|
1106 |
+
( "Reilly" n (r ai1 l ii) )
|
1107 |
+
( "Reid" n (r ii1 d) )
|
1108 |
+
( "Nikolai" n (n i1 k ou l ai) )
|
1109 |
+
( "Motown" n (m ou1 t au n) )
|
1110 |
+
( "Melamed" n (m e1 l @ m e d) )
|
1111 |
+
( "Medved" n (m e1 d v e1 d) )
|
1112 |
+
( "Mazowiecki" n (m @ z au1 s k ii) )
|
1113 |
+
( "Mahon" n (m ei1 h @ n) )
|
1114 |
+
( "Leninist" n (l e1 n @ n i s t) )
|
1115 |
+
( "Jong" n (y o1 ng) )
|
1116 |
+
( "Huston" n (h uu1 s t @ n) )
|
1117 |
+
( "Gumbel" n (g uh1 m b @ l) )
|
1118 |
+
( "Guillermo" n (g u w ii @@1 m ou) )
|
1119 |
+
( "Fuchs" n (f uu1 k s) )
|
1120 |
+
( "Flynn" n (f l i1 n) )
|
1121 |
+
( "Dou" n (d ou1) )
|
1122 |
+
( "Dahmer" n (d aa1 m @ r) )
|
1123 |
+
( "Croatian" n (k r ou ei1 sh @ n) )
|
1124 |
+
( "Capriati" n (k a p r i a1 t ii) )
|
1125 |
+
( "Buthelezi" n (b u t @ l ei1 z ii) )
|
1126 |
+
( "Bhopal" n (b ou p a1 l) )
|
1127 |
+
( "Arcata" n ( aa k a1 t @) )
|
1128 |
+
( "Abrams" n (ei1 b r @ m z) )
|
1129 |
+
( "gutsy" n (g uh1 t s ii) )
|
1130 |
+
( "debuted" n (d ei b y uu1 d) )
|
1131 |
+
( "bipartisanship" n (b ai p aa1 t @ s @ n sh i p) )
|
1132 |
+
( "Webb" n (w e1 b) )
|
1133 |
+
( "Ulam" n (ou1 l @ m) )
|
1134 |
+
( "Shultz" n (sh u1 l t z) )
|
1135 |
+
( "Rosenberg" n (r ou1 s @ n b @@ g) )
|
1136 |
+
( "Regan" n (r ii g @ n) )
|
1137 |
+
( "Noboru" n (n ou b ou1 r uu) )
|
1138 |
+
( "Moshe" n (m o1 sh ei) )
|
1139 |
+
( "Martinez" n (m aa t @ n e1 z) )
|
1140 |
+
( "Klaus" n (k l au1 s) )
|
1141 |
+
( "Islamabad" n (i s l a1 m @ b a d) )
|
1142 |
+
( "Heinrich" n (h ai1 n r i k) )
|
1143 |
+
( "Greenpeace" n (g r ii1 n p ii s) )
|
1144 |
+
( "Geraldo" n (jh e r a1 l d ou) )
|
1145 |
+
( "Donahue" n (d o1 n @ h y uu) )
|
1146 |
+
( "Dmitri" n (d @ m ii1 t r ii) )
|
1147 |
+
( "Dietrich" n (d ii1 t r i k) )
|
1148 |
+
( "Croats" n (k r o1 a t s) )
|
1149 |
+
( "Cione" n (s i ou1 n ii) )
|
1150 |
+
( "Cher" n (sh e1 r) )
|
1151 |
+
( "Chavira" n (sh a v ii1 r @) )
|
1152 |
+
( "Camelot" n (k a1 m @ l o t) )
|
1153 |
+
( "Beethoven" n (b ei1 t h ou v @ n) )
|
1154 |
+
( "Awadi" n (@ w a1 d ii) )
|
1155 |
+
( "Avianca" n (a v i a1 n k @) )
|
1156 |
+
( "Andean" n ( a1 n d i @ n) )
|
1157 |
+
( "Alberto" n (a l b @@1 t ou) )
|
1158 |
+
( "Aaron" n (ei1 r @ n) )
|
1159 |
+
( "misdemeanor" n (m i s d @ m ii1 n @ r ) )
|
1160 |
+
( "mammograms" n (m a1 m @ g r a m z) )
|
1161 |
+
( "detente" n (d ei t o1 n t ) )
|
1162 |
+
( "Vladivostok" n (v l a d @ v o1 s t o k) )
|
1163 |
+
( "Turkmenistan" n (t @@ k m e1 n i s t a n) )
|
1164 |
+
( "Stalinism" n (s t a1 l @ n @ z m) )
|
1165 |
+
( "Seiji" n (s ei1 jh ii) )
|
1166 |
+
( "Prager" n (p r a1 g @ r) )
|
1167 |
+
( "Pinochet" n (p i1 n @ sh ei) )
|
1168 |
+
( "Phnom" n (p @ n o1 m) )
|
1169 |
+
( "Penh" n (p e1 n) )
|
1170 |
+
( "Mengistu" n (m e n g ii1 s t uu) )
|
1171 |
+
( "McManus" n (m @ k m a1 n @ s) )
|
1172 |
+
( "Marsalis" n (m a r s a1 l @ s) )
|
1173 |
+
( "Lou" n (l uu1) )
|
1174 |
+
( "Huang" n (w a1 ng) )
|
1175 |
+
( "Gwynne" n (g w i1 n) )
|
1176 |
+
( "Giroux" n (jh ii r ou1) )
|
1177 |
+
( "Feinstein" n (f ei1 n s t ai n) )
|
1178 |
+
( "Farabundo" n (f a r @ b uh1 n d ou) )
|
1179 |
+
( "Euphrates" n (y uu f r ei1 t ii z) )
|
1180 |
+
( "Dushanbe" n (d @ sh a1 n b @) )
|
1181 |
+
( "Dante" n (d aa1 n t ei) )
|
1182 |
+
( "Chen" n (ch e1 n) )
|
1183 |
+
( "Carr" n (k aa1) )
|
1184 |
+
( "Cadillac" n (k a1 d @ l a k) )
|
1185 |
+
( "Buenos" n (b w ei1 n @ s) )
|
1186 |
+
( "Branagh" n (b r a1 n @) )
|
1187 |
+
( "Bikkembergs" n (b i1 k @ m b @@ g s) )
|
1188 |
+
( "Andreas" n (a n d r ei1 @ s) )
|
1189 |
+
( "wacky" n (w a1 k ii) )
|
1190 |
+
( "stockpiled" n (s t o1 k p ai l d) )
|
1191 |
+
( "salsa" n (s a1 l t s a) )
|
1192 |
+
( "protege" n (p r o1 t @ jh ei) )
|
1193 |
+
( "newsmagazine" n (n y uu1 z m a1 g @ z ii n) )
|
1194 |
+
( "labored" n (l ei1 b @@ d) )
|
1195 |
+
( "deterrence" n (d @ t e@1 r @ n s) )
|
1196 |
+
( "anticommunist" n (a1 n t i k o1 m y uu n @ s t) )
|
1197 |
+
( "acknowledgment" n (@ k n o1 l i jh m @ n t) )
|
1198 |
+
( "Valerie" n (v a1 l @ r ii) )
|
1199 |
+
( "Sheppard" n (sh e1 p @ d) )
|
1200 |
+
( "Ryzhkov" n (r ai1 zh k o f) )
|
1201 |
+
( "Raphael" n (r a f ai1 l) )
|
1202 |
+
( "Quebecois" n (k w i1 b e k w aa) )
|
1203 |
+
( "Profumo" n (p r ou f y u1 m ou) )
|
1204 |
+
( "Mondale" n (m o1 n d ei l) )
|
1205 |
+
( "Minh" n (m i1 n) )
|
1206 |
+
( "Menachem" n ( m e n a1 k @ m) )
|
1207 |
+
( "Mecke" n (m e1 k) )
|
1208 |
+
( "McClure" n (m @ k l u@1) )
|
1209 |
+
( "Magubane" n (m a1 g u b a n ii) )
|
1210 |
+
( "Kupreyev" n (k @ p r ei1 e v) )
|
1211 |
+
( "Krikalev" n (k r i1 k @ l e v) )
|
1212 |
+
( "Khamenei" n (k @ m ei1 n ii) )
|
1213 |
+
( "Kgase" n (k @ g a1 s ii) )
|
1214 |
+
( "Kennan" n (k ii1 n @ n) )
|
1215 |
+
( "Juan" n (w aa1 n ) )
|
1216 |
+
( "Helena" n (h e l e1 n @) )
|
1217 |
+
( "Gomes" n (g ou1 m e z) )
|
1218 |
+
( "Genome" n (jh ii1 n ou m) )
|
1219 |
+
( "Foretich" n (f oo1 r t i k) )
|
1220 |
+
( "Evan" n (e1 v @ n) )
|
1221 |
+
( "Eagleburger" n (ii1 g @ l b @@ g @ r) )
|
1222 |
+
( "Dhabi" n (d aa1 b ii) )
|
1223 |
+
( "Darwin" n (d aa1 w i n) )
|
1224 |
+
( "Camille" n (k a m ii1 l) )
|
1225 |
+
( "Brzezinski" n (b r @ zh i1 n s k ii) )
|
1226 |
+
( "Boyz" n (b oi1 z) )
|
1227 |
+
( "Ayckbourn" n (ei1 k b oo n) )
|
1228 |
+
( "Ariel" n (ei1 r i e l) )
|
1229 |
+
( "Andres" n (a1 n d r e z) )
|
1230 |
+
( "yds" n (y aa1 d z) )
|
1231 |
+
( "sures" n (sh u@1 z) )
|
1232 |
+
( "subtext" n (s uh1 b t e k s t) )
|
1233 |
+
( "siecle" n (s i e1 k @ l ) )
|
1234 |
+
( "savoring" n (s ei1 v @ r i ng) )
|
1235 |
+
( "savior" n (s ei1 v i@ r) )
|
1236 |
+
( "resupply" n (r ii1 s @ p l ai) )
|
1237 |
+
( "paycheck" n (p ei1 ch e k) )
|
1238 |
+
( "ole" n (ou l ei1) )
|
1239 |
+
( "micromastia" n (m ai1 k r o m a1 s t i @) )
|
1240 |
+
( "farmland" n (f aa1 m l a n d) )
|
1241 |
+
( "ethicists" n (e1 th @ s i s t s) )
|
1242 |
+
( "brio" n (b r ii1 ou) )
|
1243 |
+
( "Wynton" n (w i1 n t @ n) )
|
1244 |
+
( "Woodrow" n (w u1 d r ou) )
|
1245 |
+
( "Webber" n (w e1 b @ r) )
|
1246 |
+
( "Uzbeks" n (u1 z b e k s) )
|
1247 |
+
( "Stateside" n (s t ei1 t s ai d) )
|
1248 |
+
( "Smiley" n (s m ai1 l ii) )
|
1249 |
+
( "Schreiber" n (sh r ei1 b @ r) )
|
1250 |
+
( "Ruhollah" n (r u h ou1 l @) )
|
1251 |
+
( "Rivera" n (r i b e1 r @) )
|
1252 |
+
( "Reingold" n (r ai1 n g ou l d) )
|
1253 |
+
( "Purvis" n (p @@1 v i s) )
|
1254 |
+
( "Prawer" n (p r oo1 @ r) )
|
1255 |
+
( "Pamyat" n (p a1 m y a t) )
|
1256 |
+
( "Orion" n (ou r ai1 @ n) )
|
1257 |
+
( "Opel" n (ou1 p @ l) )
|
1258 |
+
( "Oates" n (ou1 t s) )
|
1259 |
+
( "Nina" n (n ii1 n @) )
|
1260 |
+
( "Naisbitt" n (n ei1 z b i t) )
|
1261 |
+
( "NEC" n (e1 n ii1 s ii1) )
|
1262 |
+
( "McElroy" n (m a1 k @ l r oi) )
|
1263 |
+
( "McCrae" n (m @ k r ei1) )
|
1264 |
+
( "Maura" n (m au1 r @) )
|
1265 |
+
( "Maida" n (m ai1 d @) )
|
1266 |
+
( "Lopez" n (l ou1 p e z) )
|
1267 |
+
( "Leonardo" n (l ii o n aa1 d ou) )
|
1268 |
+
( "Kunst" n (k uu1 n s t) )
|
1269 |
+
( "Kouchner" n (k au ch n @ r) )
|
1270 |
+
( "Kiichi" n (k ii ii1 ch ii) )
|
1271 |
+
( "Kagan" n (k ei1 g @ n) )
|
1272 |
+
( "Joaquin" n (jh ou a1 k @ n ) )
|
1273 |
+
( "Jaruzelski" n (y a r @ z e1 l s k ii) )
|
1274 |
+
( "Imelda" n (i m e1 l d @) )
|
1275 |
+
( "Howards" n (h au1 @ d z) )
|
1276 |
+
( "Heisler" n (h ai1 s l @ r) )
|
1277 |
+
( "Guth" n (g u1 th) )
|
1278 |
+
( "Gearheart" n (g i@1 h aa t) )
|
1279 |
+
( "Fukuyama" n (f uu1 k u y a1 m @) )
|
1280 |
+
( "Foucault" n (f ou1 k @ l t) )
|
1281 |
+
( "Farrar" n (f a1 r @ r) )
|
1282 |
+
( "Exocet" n (e1 k s @ s e t) )
|
1283 |
+
( "Etzioni" n (e t z i ou1 n ii) )
|
1284 |
+
( "Entartete" n (e1 n t aa t e t) )
|
1285 |
+
( "Connery" n (k o1 n @ r ii) )
|
1286 |
+
( "Chavez" n (sh a1 v @ z) )
|
1287 |
+
( "Callahan" n (k a1 l @ h a n) )
|
1288 |
+
( "CPOP" n (s ii1 p o p) )
|
1289 |
+
( "Bundestag" n (b u1 n d @ s t a g) )
|
1290 |
+
( "Boyett" n (b oi e1 t) )
|
1291 |
+
( "Bianco" n (b i a1 n k ou) )
|
1292 |
+
( "Axel" n (a1 k s @ l) )
|
1293 |
+
( "Amherst" n (a1 m h @@ s t) )
|
1294 |
+
( "Alfonsin" n (a l f o1 n s @ n) )
|
1295 |
+
( "unsavory" n (uh n s ei1 v r ii) )
|
1296 |
+
( "surefire" n (sh u@1 f ai @) )
|
1297 |
+
( "polygraph" n (p o1 l i g r a f) )
|
1298 |
+
( "nuanced" n (n y uu1 @ n s t) )
|
1299 |
+
( "nisei" n (n ii1 s ei) )
|
1300 |
+
( "mustache" n (m uh s t a1 sh ) )
|
1301 |
+
( "laboring" n (l ei1 b @ r i ng) )
|
1302 |
+
( "laborers" n (l ei1 b @ r @ z) )
|
1303 |
+
( "homegrown" n (h ou1 m g r ou n) )
|
1304 |
+
( "farfetched" n (f aa1 f e ch d) )
|
1305 |
+
( "diva" n (d ii1 v @) )
|
1306 |
+
( "characterizations" n (k a r @ k t @ r ai z ei1 sh @ n) )
|
1307 |
+
( "carcinogen" n (k aa1 s i jh @ n) )
|
1308 |
+
( "behemoth" n (b @ h ii1 m o th) )
|
1309 |
+
( "academe" n (a1 k @ d ii m) )
|
1310 |
+
|
1311 |
+
;; More apearing in multiple articles
|
1312 |
+
|
1313 |
+
( "Hussein" n (h @ s ei1 n) )
|
1314 |
+
( "perestroika" n (p e r @ s t r oi1 k @) )
|
1315 |
+
( "Tresniowski" n (t r e s n i au1 s k ii) )
|
1316 |
+
( "Monroe" n (m o n r ou1) )
|
1317 |
+
( "Khomeini" n (k o m ei1 n ii) )
|
1318 |
+
( "Lech" n (l e1 k) )
|
1319 |
+
( "Ryan" n (r ai1 @ n) )
|
1320 |
+
( "Fernando" n (f @@ n a1 n d ou) )
|
1321 |
+
( "Gaddafi" n (g @ d a1 f ii) )
|
1322 |
+
( "Muammar" n (m u a1 m @ r) )
|
1323 |
+
( "Melissa" n (m @ l i1 s @) )
|
1324 |
+
( "Cornell" n (k oo n e1 l) )
|
1325 |
+
( "Yevgeni" n (y e v g e1 n ii) )
|
1326 |
+
( "backup" n (b a1 k uh p) )
|
1327 |
+
( "Anatoli" n (a n @ t ou1 l ii) )
|
1328 |
+
( "Tadeusz" n (t a1 d y uu z) )
|
1329 |
+
( "Pablo" n (p a1 b l ou) )
|
1330 |
+
( "Alzheimer" n (a1 l t z ai m @ r) )
|
1331 |
+
( "Alzheimers" n (a1 l t z ai m @ r z) )
|
1332 |
+
( "Calvin" n (k a1 l v @ n) )
|
1333 |
+
( "Bernstein" n (b @@1 n s t ii n) )
|
1334 |
+
( "Ricardo" n (r i k aa1 d ou) )
|
1335 |
+
( "Rafsanjani" n (r a f s @ n jh aa1 n ii) )
|
1336 |
+
( "fatally" n (f ei1 t @ l ii) )
|
1337 |
+
( "cutoff" n (k uh1 t o v) )
|
1338 |
+
( "Alfredo" n (a l f r ei1 d ou) )
|
1339 |
+
( "Alain" n (a l a1 n) )
|
1340 |
+
( "Einstein" n (ai1 n s t ai n) )
|
1341 |
+
( "fi" n (f ii1) )
|
1342 |
+
( "Raul" n (r @ uu1 l) )
|
1343 |
+
( "Bethesda" n (b @ th e1 s d @) )
|
1344 |
+
( "Ungeheuer" n (uh n g @ h oo r) )
|
1345 |
+
( "Rudulph" n (r uu1 d @ l f) )
|
1346 |
+
( "Molotov" n (m o1 l @ t o v) )
|
1347 |
+
( "sci" n (s ai1) )
|
1348 |
+
( "culturally" n (k uh1 l ch @ r @ l ii) )
|
1349 |
+
( "Jaime" n (h ai1 m ii) )
|
1350 |
+
( "Chevy" n (sh e1 v ii) )
|
1351 |
+
( "Chamorro" n (ch @ m o1 r ou) )
|
1352 |
+
( "Auschwitz" n (au1 sh v i t s) )
|
1353 |
+
( "flavored" n (f l ei1 v @ d) )
|
1354 |
+
( "decor" n (d ei k oo1 r) )
|
1355 |
+
( "Olivier" n (@ l i1 v i ei1) )
|
1356 |
+
( "Leona" n (l ii ou1 n @) )
|
1357 |
+
( "spearheaded" n (s p i@1 h e d @ d ) )
|
1358 |
+
( "adamantly" n (a1 d @ m @ n y l ii) )
|
1359 |
+
( "Stallone" n (s t @ l ou1 n) )
|
1360 |
+
( "Ludtke" n (l uh1 d k @) )
|
1361 |
+
( "catalogs" n (k a1 t @ l o g z) )
|
1362 |
+
( "Strauss" n (s t r au1 s) )
|
1363 |
+
( "Schlesinger" n (sh l e1 s i ng @ r) )
|
1364 |
+
( "Rutgers" n (r uh1 t g @ z ) )
|
1365 |
+
( "Georgi" n (g i oo1 g ii) )
|
1366 |
+
( "Faulkner" n (f oo1 l k n @ r) )
|
1367 |
+
( "Bonfante" n (b o1 n f aa n t ii) )
|
1368 |
+
( "plowed" n (p l au1 d) )
|
1369 |
+
( "grownup" n (g r ou1 n uh p) )
|
1370 |
+
( "Zulu" n (z uu1 l uu) )
|
1371 |
+
( "Sri" n (sh r ii1) )
|
1372 |
+
( "Richter" n (r i1 k t @ r) )
|
1373 |
+
( "Oleg" n (ou1 l e g) )
|
1374 |
+
( "Michele" n (m i sh e1 l) )
|
1375 |
+
( "Marcel" n (m aa s e1 l) )
|
1376 |
+
( "Mapplethorpe" n (m ei1 p @ l th oo p) )
|
1377 |
+
( "Cafe" n (k a1 f ei1) )
|
1378 |
+
( "vocals" n (v ou1 k @ l z) )
|
1379 |
+
( "parenting" n (p ei1 r e n t i ng) )
|
1380 |
+
( "emigres" n (e1 m @ g r ei z) )
|
1381 |
+
( "communique" n (k o m y uu1 n i k ei1) )
|
1382 |
+
( "Sunni" n (s uh1 n ii) )
|
1383 |
+
( "Reno" n (r ii1 n ou) )
|
1384 |
+
( "Rajiv" n (r @ jh ii1 v) )
|
1385 |
+
( "Miguel" n (m i g w e1 l) )
|
1386 |
+
( "Malibu" n (m a1 l i b uu) )
|
1387 |
+
( "Inkatha" n (i n k aa1 t @) )
|
1388 |
+
( "HarperCollins" n (h aa1 p @ k oo1 l @ n z) )
|
1389 |
+
( "Ajemian" n (@ jh i1 m i @ n) )
|
1390 |
+
( "superstars" n (s uu1 p @ s t aa z) )
|
1391 |
+
( "rancor" n (r a1 n k oo r) )
|
1392 |
+
( "expansionism" n (e g s p a1 n sh @ n @ z m) )
|
1393 |
+
( "bookstore" n (b u1 k s t oo r) )
|
1394 |
+
( "anemic" n (@ n ii1 m i k) )
|
1395 |
+
( "Rehnquist" n (r e1 n k w i s t) )
|
1396 |
+
( "Rafael" n (r a f ai1 l) )
|
1397 |
+
( "Michaels" n ( m ai1 k @ l z) )
|
1398 |
+
( "Koppel" n (k o1 p @ l) )
|
1399 |
+
( "Crowe" n (k r ou1) )
|
1400 |
+
( "Cesar" n (s ii1 s @ r) )
|
1401 |
+
( "moviemakers" n (m uu1 v i m ei1 k @ r z) )
|
1402 |
+
( "moviegoer" n (m uu1 v i g ou @ r))
|
1403 |
+
( "emigre" n (e1 m i g r ei) )
|
1404 |
+
( "cafes" n (k a f ei1 z) )
|
1405 |
+
( "authored" n (oo1 th @@ d) )
|
1406 |
+
( "Potomac" n (p ou1 t @ m a k) )
|
1407 |
+
( "Javier" n (y ei1 v i ei1) )
|
1408 |
+
( "Eliot" n (e1 l i o t ) )
|
1409 |
+
( "Arsenio" n (aa s ii1 n i ou) )
|
1410 |
+
( "skewed" n (s k y uu1 d) )
|
1411 |
+
( "reinvent" n (r ii1 i n v e1 n t) )
|
1412 |
+
( "naivete" n (n ai ii1 v i t ii) )
|
1413 |
+
( "musings" n (m y uu1 z i ng z) )
|
1414 |
+
( "couture" n (k @ t y u@1) )
|
1415 |
+
( "adrenaline" n (@ d r e1 n @ l i n) )
|
1416 |
+
( "acerbic" n (@ s @@1 b i k) )
|
1417 |
+
( "Mahal" n (m @ h a1 l) )
|
1418 |
+
( "Lauren" n (l o1 r @ n) )
|
1419 |
+
( "Ehrenreich" n (e1 r @ n r i k) )
|
1420 |
+
( "Antonin" n (a1 n t @ n i n) )
|
1421 |
+
( "Anton" n (a1 n t o n) )
|
1422 |
+
( "splashy" n (s p l a1 sh ii) )
|
1423 |
+
( "preschool" n (p r ii1 s k u l) )
|
1424 |
+
( "forebears" n (f oo1 r b e@ z) )
|
1425 |
+
( "Rene" n (r e n ei1) )
|
1426 |
+
( "Katharine" n (k a1 th r i n) )
|
1427 |
+
( "Herzegovina" n (h @@ t s @ g @ v ii1 n @) )
|
1428 |
+
( "Gerhard" n (g e@1 h aa d) )
|
1429 |
+
( "Gerasimov" n (g @ r a1 s @ m o v) )
|
1430 |
+
( "existential" n (e g s i s t e1 n sh @ l) )
|
1431 |
+
( "befuddled" n (b @ f uh1 d @ l d) )
|
1432 |
+
( "Philippe" n (f ii l ii1 p) )
|
1433 |
+
( "PAC" n (p ii1 ei1 s ii1) )
|
1434 |
+
( "Marquez" n (m aa k e1 z) )
|
1435 |
+
( "Kennedys" n (k e1 n @ d @ z) )
|
1436 |
+
( "Jorge" n (y oo jh) )
|
1437 |
+
( "Gallagher" n (g a1 l @ h @ r) )
|
1438 |
+
( "FlorCruz" n (f l oo1 r - k r uu z) )
|
1439 |
+
( "Costello" n (k o s t e1 l ou1) )
|
1440 |
+
( "tenured" n (t e1 n y u@ d) )
|
1441 |
+
( "entrepreneurship" n (o1 n t r @ p r @ n y u@1 sh i p) )
|
1442 |
+
( "elites" n (i l ii1 t s) )
|
1443 |
+
( "Ziyang" n (z ii1 y a ng) )
|
1444 |
+
( "Zhao" n (zh au1) )
|
1445 |
+
( "Leninism" n (l e1 n @ n @ z m) )
|
1446 |
+
( "Lakers" n (l ei1 k @ z) )
|
1447 |
+
( "Kryuchkov" n (k r ai1 ch k o v) )
|
1448 |
+
( "Josef" n (y ou1 s i f) )
|
1449 |
+
( "Gulag" n (g uu1 l a g) )
|
1450 |
+
( "Crimea" n (k r ai m ii1 @) )
|
1451 |
+
( "Caltech" n (k a1 l t e k) )
|
1452 |
+
( "bombings" n (b o1 m i ng z) )
|
1453 |
+
( "Aires" n (ei1 r ii z) )
|
1454 |
+
( "vu" n (v uu1) )
|
1455 |
+
( "viral" n (v ai1 r @ l) )
|
1456 |
+
( "stressful" n (s t r e1 s f @ l) )
|
1457 |
+
( "reprise" n (r i p r ai1 z) )
|
1458 |
+
( "replicate" n (r e1 p l i k ei t) )
|
1459 |
+
( "omnipresent" n (o1 m n i p r e1 s @ n t) )
|
1460 |
+
( "nouveau" n (m uu v ou1 ) )
|
1461 |
+
( "moviemaking" n (m uu1 v i m ei1 k i ng) )
|
1462 |
+
( "hallway" n (h oo1 l w ei1) )
|
1463 |
+
( "fiance" n (f i o1 n s i1) )
|
1464 |
+
( "demographics" n (d e1 m @ g r a1 f i k z) )
|
1465 |
+
( "attache" n (@ t a sh ei1) )
|
1466 |
+
( "Toni" n (t ou1 n ii) )
|
1467 |
+
( "Shimon" n (sh i m o1 n) )
|
1468 |
+
( "Schmidt" n (sh m i1 t) )
|
1469 |
+
( "Revlon" n (r e1 v l o n) )
|
1470 |
+
( "Pont" n (p o1 n t) )
|
1471 |
+
( "Ozal" n (o z a1 l) )
|
1472 |
+
( "Hubble" n (h uh1 b @ l) )
|
1473 |
+
( "Hasan" n (h @ s a1 n) )
|
1474 |
+
( "Fuhrer" n (f y uu1 r @ r) )
|
1475 |
+
( "Aleksandr" n (a l e k z a1 n d @ r) )
|
1476 |
+
( "stanch" n (s t oo1 n ch) )
|
1477 |
+
( "premieres" n (p r e m i @@1 z) )
|
1478 |
+
( "plow" n (p l au1) )
|
1479 |
+
( "passe" n (p a s ei1) )
|
1480 |
+
( "northward" n (n oo1 th w @@ d) )
|
1481 |
+
( "favoritism" n (f ei1 v r @ t @ z m) )
|
1482 |
+
( "deja" n (d ei1 zh @) )
|
1483 |
+
( "caliber" n (k a1 l @ b @ r) )
|
1484 |
+
( "ballyhooed" n (b a l i h uu1 d) )
|
1485 |
+
( "anemia" n (@ n ii1 m i @) )
|
1486 |
+
( "Weimar" n (w ei1 m @ r) )
|
1487 |
+
( "Streisand" n (s t r ai1 s @ n d) )
|
1488 |
+
( "Shakespearean" n (sh ei1 k s p i@ r i @ n) )
|
1489 |
+
( "Seiichi" n (s ei1 ii ch ii) )
|
1490 |
+
( "Sarandon" n (s @ r a1 n d @ n) )
|
1491 |
+
( "Rahman" n (r aa1 m a n) )
|
1492 |
+
( "Manet" n (m a n ei1) )
|
1493 |
+
( "Lamar" n (l @ m aa) )
|
1494 |
+
( "Gup" n (g uh1 p) )
|
1495 |
+
( "Gazeta" n (g @ z e1 t @) )
|
1496 |
+
( "videocassettes" n (v i1 d i ou - k a s e1 t s) )
|
1497 |
+
( "prizewinner" n (p r ai1 z w i n @ r) )
|
1498 |
+
( "nationhood" n (n ei1 sh @ n h uu d) )
|
1499 |
+
( "labors" n (l ei1 b @ z) )
|
1500 |
+
( "hallways" n (h oo1 l w ei z) )
|
1501 |
+
( "genocidal" n (jh e1 n @ s ai1 d @ l) )
|
1502 |
+
( "fide" n (f ai1 d ii) )
|
1503 |
+
( "eponymous" n (e p o1 n @ m @ s) )
|
1504 |
+
( "Zbigniew" n (z @ b i1 g n i e v) )
|
1505 |
+
( "Tito" n (t ii1 t ou) )
|
1506 |
+
( "Schroeder" n (sh r ou1 d @ r) )
|
1507 |
+
( "Romeo" n (r ou1 m i ou) )
|
1508 |
+
( "Roemer" n (r ou1 m @ r) )
|
1509 |
+
( "Mussolini" n (m u1 s i l ii1 n ii) )
|
1510 |
+
( "Lai" n (l ai1) )
|
1511 |
+
( "Karim" n (k a r ii1 m) )
|
1512 |
+
( "Indochina" n (i1 n d @ ch ai1 n @) )
|
1513 |
+
( "Francesco" n (f r a n ch e1 s k ou) )
|
1514 |
+
( "Emilio" n (e m ii1 l i ou) )
|
1515 |
+
( "Ellington" n (e1 l i ng t @ n) )
|
1516 |
+
( "Eisner" n (ai1 s n @ r) )
|
1517 |
+
( "Chopin" n (sh ou1 p a n) )
|
1518 |
+
( "Bowie" n (b au1 ii) )
|
1519 |
+
( "yd" n (y aa1 d) )
|
1520 |
+
( "suburbanites" n (s @ b @@1 b @ n ai1 t z ) )
|
1521 |
+
( "rehab" n (r ii1 h a b) )
|
1522 |
+
( "passersby" n (p a1 s @ s b ai) )
|
1523 |
+
( "officeholders" n (o1 f i s h ou l d @ z) )
|
1524 |
+
( "nomenklatura" n (n o m e1 n k l @ t y uu1 r @) )
|
1525 |
+
( "noir" n (n w aa1 r) )
|
1526 |
+
( "mater" n (m ei1 t @ r) )
|
1527 |
+
( "expansionist" n (i g s p a1 n sh @ n @ s t) )
|
1528 |
+
( "epochal" n (e p o1 k @ l) )
|
1529 |
+
( "entree" n (o1 n t r ei) )
|
1530 |
+
( "denouement" n (d @ n oi1 m e n t) )
|
1531 |
+
( "cutthroat" n (k uh1 t th r ou t) )
|
1532 |
+
( "Versailles" n (v @@ s ai1) )
|
1533 |
+
( "Valeri" n (v a1 l @ r ii) )
|
1534 |
+
( "Su" n (s uu1) )
|
1535 |
+
( "Sharif" n (sh @ r ii1 f) )
|
1536 |
+
( "Saavedra" n (s aa1 v e d r @) )
|
1537 |
+
( "Raleigh" n (r a1 l ei) )
|
1538 |
+
( "Ochoa" n (o ch o1 @) )
|
1539 |
+
( "Marianne" n (m a r i a1 n) )
|
1540 |
+
( "Lucille" n (l uu s ii1 l) )
|
1541 |
+
( "Lindbergh" n (l i1 n d b @@ g) )
|
1542 |
+
( "Hermes" n (h @@1 m ii z) )
|
1543 |
+
( "Goethe" n (g ou1 th @) )
|
1544 |
+
( "Danielle" n (d a n i e1 l) )
|
1545 |
+
( "Constantine" n (k o1 n s t @ n t ii n) )
|
1546 |
+
( "Capone" n (k @ p ou1 n) )
|
1547 |
+
( "Buffett" n (b uu f ei1) )
|
1548 |
+
( "Brigham" n (b r i1 g @ m) )
|
1549 |
+
( "Archie" n (aa1 ch ii) )
|
1550 |
+
( "Amos" n (ei1 m @ s) )
|
1551 |
+
( "Afro" n (a1 f r ou) )
|
1552 |
+
( "unrivaled" n (uh n r ai1 v @ l d) )
|
1553 |
+
( "triage" n (t r ii a1 zh) )
|
1554 |
+
( "theatergoers" n (th i@1 t @ g ou @ r z) )
|
1555 |
+
( "submachine" n (s uh1 b m @ sh ii1 n) )
|
1556 |
+
( "stereotypical" n (s t e1 r i@ t i1 p @ k @ l) )
|
1557 |
+
( "skeletal" n (s k e1 l @ t @ l) )
|
1558 |
+
( "sidekick" n (s ai1 d k i k) )
|
1559 |
+
( "savored" n (s ei1 v @ d) )
|
1560 |
+
( "sadomasochistic" n (s ei1 d ou m a1 s @ k i1 s t i k) )
|
1561 |
+
( "ress" n (r e1 s) )
|
1562 |
+
( "predawn" n (p r ii1 d oo n) )
|
1563 |
+
( "postmodern" n (p ou1 s t m o d @ n) )
|
1564 |
+
( "postcommunist" n (p ou1 s t k o1 m uu n @ s t) )
|
1565 |
+
( "outmaneuvered" n (au1 t m a n uu1 v @@ d) )
|
1566 |
+
( "multicolored" n (m uh1 l t i k uh l @ d) )
|
1567 |
+
( "maneuvered" n (m a n uu1 v @@ d) )
|
1568 |
+
( "liter" n (l ii1 t @ r) )
|
1569 |
+
( "laborer" n (l ei1 b @ r @ r) )
|
1570 |
+
( "falloff" n (f oo1 l o v) )
|
1571 |
+
( "facades" n (f @ s a1 d z) )
|
1572 |
+
( "destabilize" n (d ii s t ei1 b @ l ai z) )
|
1573 |
+
( "coincidentally" n (k ou1 i n s @ d e1 n t @ l ii) )
|
1574 |
+
( "carcinogens" n (k aa1 s i jh @ n z) )
|
1575 |
+
( "antinuclear" n (a1 n t i n y uu1 k l i@ r) )
|
1576 |
+
( "aerobic" n (ei r ou1 b i k ) )
|
1577 |
+
( "Yusuf" n (y uu1 s @ f) )
|
1578 |
+
( "Willem" n (w i1 l e m) )
|
1579 |
+
( "Ventura" n (v e n ch y uu1 r @) )
|
1580 |
+
( "Saharan" n (s @ h a1 r @ n) )
|
1581 |
+
( "Rutherford" n (r uh1 th @ f oo d) )
|
1582 |
+
( "Psycho" n (s ai1 k ou) )
|
1583 |
+
( "Miserables" n (m ii z @ r aa1 b l @) )
|
1584 |
+
( "Mimi" n (m ii1 m ii) )
|
1585 |
+
( "Milos" n (m ai1 l ou s) )
|
1586 |
+
( "Magellan" n (m a g e1 l @ n) )
|
1587 |
+
( "Kosovo" n (k @ s ou1 v ou) )
|
1588 |
+
( "Komsomolskaya" n (k o1 m s @ m o1 l s k ai @) )
|
1589 |
+
( "Julio" n (jh uu1 l i ou) )
|
1590 |
+
( "Jozef" n (y ou1 z e f) )
|
1591 |
+
( "Gucci" n (g uu1 ch ii) )
|
1592 |
+
( "Gonzalo" n (g o n z a1 l ou) )
|
1593 |
+
( "Gillespie" n (g i l e1 s p ii) )
|
1594 |
+
( "Ghaith" n (g ei1 th) )
|
1595 |
+
( "Gacha" n (g a1 ch @) )
|
1596 |
+
( "Fairbanks" n (f e@1 t b a n k s) )
|
1597 |
+
( "Duvalier" n (d u v a1 l i ei) )
|
1598 |
+
( "Dont" n (d ou1 n t) )
|
1599 |
+
( "Danube" n (d a1 n y uu b) )
|
1600 |
+
( "Cong" n (k o1 ng) )
|
1601 |
+
( "Cajun" n (k ei1 jh @ n) )
|
1602 |
+
( "Angelenos" n (a1 n jh i l ii1 n ou s) )
|
1603 |
+
( "Abel" n (ei1 b @ l) )
|
1604 |
+
( "Allis" n (a1 l @ s) )
|
1605 |
+
( "zeitgeist" n (z ai1 t g ai s t) )
|
1606 |
+
( "superhero" n (s uu1 p @ h ii1 r ou) )
|
1607 |
+
( "racetrack" n (r ei1 s - t r a k) )
|
1608 |
+
( "materiel" n (m a t ii1 r i e l) )
|
1609 |
+
( "jazzman" n (jh a1 z m a n) )
|
1610 |
+
( "greats" n (g r ei1 t s) )
|
1611 |
+
( "faux" n (f ou1) )
|
1612 |
+
( "emphysema" n (e1 m f @ s ii1 m @) )
|
1613 |
+
( "divisiveness" n (d @ v ai1 s i f n @ s) )
|
1614 |
+
( "bicoastal" n (b ai1 k ou1 s t @ l) )
|
1615 |
+
( "apolitical" n (ei1 p @ l i1 t @ k @ l) )
|
1616 |
+
( "Shepard" n (sh e1 p @ d) )
|
1617 |
+
( "Romero" n (r ou m e1 r ou) )
|
1618 |
+
( "Pacino" n (p @ ch ii1 n ou) )
|
1619 |
+
( "Montenegro" n (m o n t @ n ii1 g r ou) )
|
1620 |
+
( "Lourdes" n (l uu1 r @ d z) )
|
1621 |
+
( "Kai" n (k ai1) )
|
1622 |
+
( "Jamil" n (jh a m ii1 l ) )
|
1623 |
+
( "Horatio" n (h @ r ei1 sh i ou) )
|
1624 |
+
( "Elias" n (e1 l i @ s) )
|
1625 |
+
( "Dumas" n (d uu1 m a s) )
|
1626 |
+
( "Delors" n (d @ l oo1 r z) )
|
1627 |
+
( "Chang" n (ch a1 ng) )
|
1628 |
+
( "Andropov" n (a n d r o1 p o v ) )
|
1629 |
+
( "Alvarez" n (a l v a1 r e z) )
|
1630 |
+
( "whammy" n (w a1 m ii) )
|
1631 |
+
( "wannabes" n (w o1 n @ b ii z) )
|
1632 |
+
( "underage" n (uh1 n d @ r ei1 jh) )
|
1633 |
+
( "uncaring" n (uh n k ei1 r i ng) )
|
1634 |
+
( "sidelined" n (s ai1 d l ai n d) )
|
1635 |
+
( "saber" n (s ei1 b @ r) )
|
1636 |
+
( "redraw" n (r ii1 d r oo) )
|
1637 |
+
( "recyclable" n (r ii s ai1 k l @ b @ l) )
|
1638 |
+
( "phenom" n (f ii1 n ou m) )
|
1639 |
+
( "paternalistic" n (p a t @@1 n @ l i s t i k) )
|
1640 |
+
( "overleveraged" n (ou1 v @ l e1 v @ r ei jh d) )
|
1641 |
+
( "nouvelle" n (n uu v e1 l) )
|
1642 |
+
( "microchip" n (m ai1 k r ou ch i p) )
|
1643 |
+
( "lifesaving" n (l ai1 f s ei1 v i ng) )
|
1644 |
+
( "hormonal" n (h oo r m ou1 n @ l) )
|
1645 |
+
( "homophobic" n (h ou1 m @ f ou1 b i k) )
|
1646 |
+
( "gravitational" n (g r a v @ t ei1 sh @ n @ l) )
|
1647 |
+
( "faxes" n (f a1 k s @ s) )
|
1648 |
+
( "energize" n (e1 n @ jh ai z) )
|
1649 |
+
( "counterrevolution" n (k au1 n t @ r e1 v @ l uu1 sh @ n) )
|
1650 |
+
( "burgers" n (b @@1 g @ z) )
|
1651 |
+
( "bimonthly" n (b ai1 m uh1 n th l ii) )
|
1652 |
+
( "Zulus" n (z uu1 l uu z) )
|
1653 |
+
( "Zimmerman" n (z i1 m @ m @ n) )
|
1654 |
+
( "Zia" n (z ii1 @) )
|
1655 |
+
( "Vincennes" n (v a1 n s e n) )
|
1656 |
+
( "Tri" n (t r ai1) )
|
1657 |
+
( "Tigris" n (t ai1 g r i s) )
|
1658 |
+
( "Schumer" n (sh u1 m @ r) )
|
1659 |
+
( "Prokofiev" n (p r ou k o1 f i e v) )
|
1660 |
+
( "Minnelli" n (m i n e1 l ii) )
|
1661 |
+
( "McMurtry" n (m @ k m @@1 t ii) )
|
1662 |
+
( "Macbeth" n (m a k b e1 th) )
|
1663 |
+
( "Loren" n (l oo1 r @ n) )
|
1664 |
+
( "Levi" n (l ii1 v ai) )
|
1665 |
+
( "Kumiko" n (k uu1 m i k ou) )
|
1666 |
+
( "Jovanovich" n (jh ou v a1 n @ v i ch) )
|
1667 |
+
( "Jamieson" n (jh ei1 m @ s @ n) )
|
1668 |
+
( "Guthrie" n (g uh1 th r ii) )
|
1669 |
+
( "Frankenstein" n (f r a1 n k @ n s t ai n) )
|
1670 |
+
( "Farrakhan" n (f a1 r @ k aa n) )
|
1671 |
+
( "Dubai" n (d uu b ai1) )
|
1672 |
+
( "Dreyfuss" n (d r ei1 f @ s) )
|
1673 |
+
( "Croatians" n (k r ou ei1 sh @ n z) )
|
1674 |
+
( "Cezanne" n (s e z a1 n) )
|
1675 |
+
( "Basinger" n (b a1 s i n jh @ r) )
|
1676 |
+
( "Bankshares" n (b a1 n k sh e@ z) )
|
1677 |
+
( "Antoine" n (a1 n t w o n) )
|
1678 |
+
( "Achille" n (a k i1 l ii) )
|
1679 |
+
( "trucking" n (t r uh1 k i ng) )
|
1680 |
+
( "storefronts" n (s t oo1 r f r uh n t s) )
|
1681 |
+
( "socioeconomic" n (s ou1 sh i o e1 k @ n o1 m i k) )
|
1682 |
+
( "rivaled" n (r ai1 v @ l d) )
|
1683 |
+
( "reusable" n (r ii y uu1 z @ b @ l) )
|
1684 |
+
( "pizazz" n (p i z a1 z) )
|
1685 |
+
( "overreaction" n (ou1 v @ r ii a1 k sh @ n) )
|
1686 |
+
( "osteoporosis" n (o1 s t i o p o r ou1 s @ s) )
|
1687 |
+
( "limo" n (l i1 m ou) )
|
1688 |
+
( "interagency" n (i1 n t @ ei1 jh e n s ii) )
|
1689 |
+
( "imperatives" n (i m p e1 r @ t i v z) )
|
1690 |
+
( "humorless" n (h y uu1 m @ l @ s) )
|
1691 |
+
( "flatbed" n (f l a1 t b e d) )
|
1692 |
+
( "extraterrestrial" n (e1 k s t r @ t @ r e1 s t r i @ l) )
|
1693 |
+
( "colorless" n (k uh1 l @ r l @ s) )
|
1694 |
+
( "coed" n (k ou e1 d) )
|
1695 |
+
( "chauffeured" n (sh ou f @@1 d) )
|
1696 |
+
( "bluesy" n (b l uu1 z ii) )
|
1697 |
+
( "biomedical" n (b ai1 ou m e1 d i k @ l) )
|
1698 |
+
( "biochemist" n (b ai1 ou k e1 m @ s t ) )
|
1699 |
+
( "bebop" n (b ii1 b o p) )
|
1700 |
+
( "barroom" n (b aa1 r uu m) )
|
1701 |
+
( "accompli" n (@ k o1 m p l ei) )
|
1702 |
+
( "Vaughan" n (v oo1 n) )
|
1703 |
+
( "Ty" n (t ai1) )
|
1704 |
+
( "Szczesny" n (zh @ zh e1 s n ii) )
|
CosyVoice-ttsfrd/resource/festival/dicts/oald/oald_lts_rules.scm
ADDED
The diff for this file is too large to render.
See raw diff
|
|
CosyVoice-ttsfrd/resource/festival/dicts/oald/oaldlex.scm
ADDED
@@ -0,0 +1,347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1998 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
|
34 |
+
|
35 |
+
(defvar oaldlexdir (path-append lexdir "oald"))
|
36 |
+
|
37 |
+
(require 'pos)
|
38 |
+
|
39 |
+
(define (oald_lts_function word feats)
|
40 |
+
"(oald_lts_function word feats)
|
41 |
+
Function called when word is not found in lexicon. Uses
|
42 |
+
LTS rules trained from the original lexicon, and lexical stress
|
43 |
+
prediction rules."
|
44 |
+
(require 'lts)
|
45 |
+
(if (not (boundp 'oald_lts_rules))
|
46 |
+
(load (path-append oaldlexdir "oald_lts_rules.scm")))
|
47 |
+
(let ((dcword (downcase word))
|
48 |
+
(syls) (phones))
|
49 |
+
(if (string-matches dcword "[a-z]*")
|
50 |
+
(begin
|
51 |
+
(set! lts_pos feats)
|
52 |
+
(set! phones (lts_predict dcword oald_lts_rules))
|
53 |
+
(set! syls (lex.syllabify.phstress phones))
|
54 |
+
)
|
55 |
+
(set! syls nil))
|
56 |
+
(list word nil syls)))
|
57 |
+
|
58 |
+
(define (mrpa_addenda)
|
59 |
+
"(mrpa_addenda)
|
60 |
+
Add a whole host of various entries to the current lexicon with
|
61 |
+
mrpa phones."
|
62 |
+
; (lex.add.entry
|
63 |
+
; '("a's" dt (((ei z) 1))))
|
64 |
+
; (lex.add.entry
|
65 |
+
; '("e's" dt (((ii z) 1))))
|
66 |
+
; (lex.add.entry
|
67 |
+
; '("i's" dt (((ai z) 1))))
|
68 |
+
; (lex.add.entry
|
69 |
+
; '("o's" dt (((ou z) 1))))
|
70 |
+
; (lex.add.entry
|
71 |
+
; '("u's" dt (((y uu z) 1))))
|
72 |
+
; (lex.add.entry
|
73 |
+
; '("r's" dt (((aa z) 1))))
|
74 |
+
(lex.add.entry
|
75 |
+
'("a" dt (((@) 0))))
|
76 |
+
(lex.add.entry
|
77 |
+
'("a" n (((ei) 1))))
|
78 |
+
(lex.add.entry
|
79 |
+
'("ac" n (((ei) 1) ((s ii) 1))))
|
80 |
+
(lex.add.entry
|
81 |
+
'("us" prp (((uh s) 0))))
|
82 |
+
(lex.add.entry
|
83 |
+
'("'s" pos (((@ z) 0))))
|
84 |
+
(lex.add.entry
|
85 |
+
'("'s" n (((@ z) 0))))
|
86 |
+
(lex.add.entry
|
87 |
+
'("the" dt (((dh @) 0))))
|
88 |
+
(lex.add.entry
|
89 |
+
'("taylor" n (((t ei) 1) ((l @) 0))))
|
90 |
+
(lex.add.entry
|
91 |
+
'("who" prp ((( h uu ) 0))))
|
92 |
+
(lex.add.entry
|
93 |
+
'("algorithm" n (((a l) 1) ((g o) 0) ((r i th m) 0))))
|
94 |
+
(lex.add.entry
|
95 |
+
'("algorithms" n (((a l) 1) ((g o) 0) ((r i th m z) 0))))
|
96 |
+
(lex.add.entry
|
97 |
+
'("algorithmic" n (((a l) 2) ((g o) 0) ((r i th) 1) ((m i k) 0))))
|
98 |
+
(lex.add.entry
|
99 |
+
'("alices" n (((a) 1) ((l i) 0) ((s i z) 0))))
|
100 |
+
(lex.add.entry
|
101 |
+
'( "Angeles" n (((a n) 1) ((jh i) 0) ((l ii z) 0))))
|
102 |
+
(lex.add.entry
|
103 |
+
'( "atr" n ((( ei ) 1) (( t ii ) 1) (( aa ) 1))))
|
104 |
+
(lex.add.entry
|
105 |
+
'( "att" n ((( ei ) 1) (( t ii ) 1) (( a n d ) 0) (( t ii ) 1))))
|
106 |
+
(lex.add.entry
|
107 |
+
'( "awb" n ((( ei ) 1) ((d uh b) 1) ((l y uu) 0) ((b ii) 1))))
|
108 |
+
(lex.add.entry
|
109 |
+
'("color" n (((k uh) 1) ((l @) 0))))
|
110 |
+
(lex.add.entry
|
111 |
+
'("colors" n (((k uh) 1) ((l @ z) 0))))
|
112 |
+
(lex.add.entry
|
113 |
+
'("colored" j (((k uh) 1) ((l @ d) 0))))
|
114 |
+
(lex.add.entry
|
115 |
+
'("coloring" j (((k uh) 1) ((l @) 0) ((r i ng ) 0))))
|
116 |
+
(lex.add.entry
|
117 |
+
'("cdrom" n (((s ii) 1) ((d ii) 1) ((r o m) 1))))
|
118 |
+
(lex.add.entry
|
119 |
+
'("cdroms" n (((s ii) 1) ((d ii) 1) ((r o m z) 1))))
|
120 |
+
(lex.add.entry
|
121 |
+
'("cepstra" n (((k e p) 1) ((s t r @) 0))))
|
122 |
+
(lex.add.entry
|
123 |
+
'("cepstral" n (((k e p) 1) ((s t r @ l) 0))))
|
124 |
+
(lex.add.entry
|
125 |
+
'("cepstrum" n (((k e p) 1) ((s t r @ m) 0))))
|
126 |
+
(lex.add.entry
|
127 |
+
'("co" nil (((k ou) 1))))
|
128 |
+
(lex.add.entry
|
129 |
+
'( "cstr" n ((( s ii ) 1) (( e s ) 1) (( t ii ) 1) (( aa ) 1)) ))
|
130 |
+
(lex.add.entry
|
131 |
+
'( "cogsci" n ((( k o g ) 1) (( s ai) 1))))
|
132 |
+
(lex.add.entry
|
133 |
+
'("database" n (((d ei) 1) ((t @) 0) ((b ei s) 1))))
|
134 |
+
(lex.add.entry
|
135 |
+
'("databases" n (((d ei) 1) ((t @) 0) ((b ei) 1) ((s i z) 0))))
|
136 |
+
(lex.add.entry
|
137 |
+
'("diphone" n (((d ai) 1) ((f ou n) 0))))
|
138 |
+
(lex.add.entry
|
139 |
+
'("diphones" n (((d ai) 1) ((f ou n s) 0))))
|
140 |
+
(lex.add.entry
|
141 |
+
'( "edinburgh" n ((( e ) 1) ((d i n ) 0) ((b r @) 0))))
|
142 |
+
(lex.add.entry
|
143 |
+
'( "email" n ((( ii ) 1) (( m ei l) 0))))
|
144 |
+
(lex.add.entry
|
145 |
+
'( "emailed" n ((( ii ) 1) (( m ei l d) 0))))
|
146 |
+
(lex.add.entry
|
147 |
+
'( "emacs" n ((( ii ) 1) (( m a k s) 0))))
|
148 |
+
(lex.add.entry
|
149 |
+
'( "favorite" j (((f ei) 1) ((v @) 0) ((r i t) 0))))
|
150 |
+
(lex.add.entry
|
151 |
+
'( "favor" n (((f ei) 1) ((v @) 0))))
|
152 |
+
(lex.add.entry
|
153 |
+
'( "favors" n (((f ei) 1) ((v @ z) 0))))
|
154 |
+
(lex.add.entry
|
155 |
+
'( "favoring" n (((f ei) 1) ((v @) 0) ((r i ng) 0))))
|
156 |
+
(lex.add.entry
|
157 |
+
'( "favored" n (((f ei) 1) ((v @ d) 0))))
|
158 |
+
(lex.add.entry
|
159 |
+
'("globally" a (((g l ou) 1) ((b @) 0) ((l ii) 0))))
|
160 |
+
(lex.add.entry
|
161 |
+
'("gorbachev" m (((g oo) 1) ((b @) 0) ((ch e v) 0))))
|
162 |
+
(lex.add.entry
|
163 |
+
'("grave" n (((g r ei v) 1))))
|
164 |
+
(lex.add.entry
|
165 |
+
'("graves" j (((g r ei v z) 1))))
|
166 |
+
(lex.add.entry
|
167 |
+
'("greece" n (((g r ii s) 1))))
|
168 |
+
(lex.add.entry
|
169 |
+
'("hong" j (((h o ng) 1))))
|
170 |
+
(lex.add.entry
|
171 |
+
'("hz" n (((h @@ t z) 1))))
|
172 |
+
(lex.add.entry
|
173 |
+
'("lead" led (((l e d) 1))))
|
174 |
+
(lex.add.entry
|
175 |
+
'("lead" liid (((l ii d) 1))))
|
176 |
+
(lex.add.entry
|
177 |
+
'("innovative" j (((i) 2) ((n @) 0) ((v ei) 1) ((t i v) 0))))
|
178 |
+
(lex.add.entry
|
179 |
+
'("job" n (((jh o b) 1))))
|
180 |
+
(lex.add.entry
|
181 |
+
'("jobs" n (((jh o b z) 1))))
|
182 |
+
(lex.add.entry
|
183 |
+
'( "Jr" n (((jh uu) 1) ((n i@) 0))))
|
184 |
+
(lex.add.entry
|
185 |
+
'("kong" n (((k o ng) 1))))
|
186 |
+
(lex.add.entry
|
187 |
+
'("khz" n (((k i) 1) ((l ou) 0) ((h @@ t z) 1))))
|
188 |
+
(lex.add.entry
|
189 |
+
'("labor" n (((l ei) 1) ((b @) 0))))
|
190 |
+
(lex.add.entry
|
191 |
+
'( "Los" n ((( l o s) 1))))
|
192 |
+
(lex.add.entry
|
193 |
+
'("lower" v (((l ou) 1) ((@) 0))))
|
194 |
+
(lex.add.entry
|
195 |
+
'("lowered" v (((l ou) 1) ((@ d) 0))))
|
196 |
+
(lex.add.entry
|
197 |
+
'("lowering" v (((l ou) 1) ((@) 0) ((r i ng ) 0))))
|
198 |
+
(lex.add.entry
|
199 |
+
'( "mbrola" n (((e m) 0) ((b r ou) 1) ((l @ ) 0))))
|
200 |
+
(lex.add.entry
|
201 |
+
'("mhz" n (((m e) 1) ((g @) 0) ((h @@ t z) 1))))
|
202 |
+
(lex.add.entry
|
203 |
+
'("minute" n (((m i) 1) ((n i t) 0))))
|
204 |
+
(lex.add.entry
|
205 |
+
'("ms" n (((e m) 1) ((e s) 1))))
|
206 |
+
(lex.add.entry
|
207 |
+
'("no" dt (((n ou) 1))))
|
208 |
+
(lex.add.entry
|
209 |
+
'("pault" n ((( p oo l) 1) ((t ii) 1))))
|
210 |
+
(lex.add.entry
|
211 |
+
'("put" v (((p u t) 1))))
|
212 |
+
(lex.add.entry
|
213 |
+
'("putting" v (((p u) 1) ((t i ng) 0))))
|
214 |
+
(lex.add.entry
|
215 |
+
'( "psola" n ((( p i ) 0) (( s ou ) 1) (( l @ ) 0 ))))
|
216 |
+
(lex.add.entry
|
217 |
+
'("read" red (((r e d) 1))))
|
218 |
+
(lex.add.entry
|
219 |
+
'("read" riid (((r ii d) 1))))
|
220 |
+
(lex.add.entry
|
221 |
+
'("reuter" n (((r oi) 1) ((t @@) 0))))
|
222 |
+
(lex.add.entry
|
223 |
+
'("reuters" n (((r oi) 1) ((t @@ s) 0))))
|
224 |
+
(lex.add.entry
|
225 |
+
'("row" v (((r ou) 1))))
|
226 |
+
(lex.add.entry
|
227 |
+
'("row" n (((r ou) 1))))
|
228 |
+
(lex.add.entry
|
229 |
+
'( "San" n (((s a n) 1))))
|
230 |
+
(lex.add.entry
|
231 |
+
'("second" n (((s e) 1) ((k @ n d) 0))))
|
232 |
+
(lex.add.entry
|
233 |
+
'("seconds" n (((s e) 1) ((k @ n d z) 0))))
|
234 |
+
(lex.add.entry
|
235 |
+
'("sixteenth" n (((s i k s) 2) ((t ii n th) 1))))
|
236 |
+
(lex.add.entry
|
237 |
+
'("sony" n (((s ou) 1) ((n ii) 1))))
|
238 |
+
(lex.add.entry
|
239 |
+
'("SSML" v (((e s) 1) ((e s) 1) ((e m) 1) ((e l) 0))))
|
240 |
+
(lex.add.entry
|
241 |
+
'("sun" n (((s uh n) 1))))
|
242 |
+
(lex.add.entry
|
243 |
+
'("synthesise" v (((s i n) 1) ((th @) 0) ((s ai z) 0))))
|
244 |
+
(lex.add.entry
|
245 |
+
'("synthesised" v (((s i n) 1) ((th @) 0) ((s ai z d) 0))))
|
246 |
+
(lex.add.entry
|
247 |
+
'("synthesizer" n (((s i n) 1) ((th @) 0) ((s ai) 0) ((z @) 0))))
|
248 |
+
(lex.add.entry
|
249 |
+
'("synthesiser" n (((s i n) 1) ((th @) 0) ((s ai) 0) ((z @) 0))))
|
250 |
+
(lex.add.entry
|
251 |
+
'("synthesizers" n (((s i n) 1) ((th @) 0) ((s ai) 0) ((z @ z) 0))))
|
252 |
+
(lex.add.entry
|
253 |
+
'("synthesisers" n (((s i n) 1) ((th @) 0) ((s ai) 0) ((z @ z) 0))))
|
254 |
+
(lex.add.entry
|
255 |
+
'( "and" aend ((( a n d ) 1))))
|
256 |
+
(lex.add.entry
|
257 |
+
'( "and" ahnd ((( @ n d ) 0))))
|
258 |
+
(lex.add.entry
|
259 |
+
'( "to" to ((( t @ ) 0))))
|
260 |
+
(lex.add.entry
|
261 |
+
'( "to" tuu ((( t uu ) 1))))
|
262 |
+
(lex.add.entry
|
263 |
+
'("for" faor (((f oo) 1))))
|
264 |
+
(lex.add.entry
|
265 |
+
'("for" fer (((f @) 0))))
|
266 |
+
(lex.add.entry
|
267 |
+
'( "tobi" n ((( t ou ) 1) (( b ii ) 0))))
|
268 |
+
(lex.add.entry
|
269 |
+
'("todays" n (((t @) 0) ((d ei z) 1))))
|
270 |
+
(lex.add.entry
|
271 |
+
'( "tts" n ((( t ii ) 1) (( t ii ) 1) (( e s ) 1))))
|
272 |
+
(lex.add.entry
|
273 |
+
'( "ulaw" n ((( m y uu ) 1) (( l oo ) 0))))
|
274 |
+
(lex.add.entry
|
275 |
+
'( "uk" n ((( y uu ) 1) (( k ei ) 1))))
|
276 |
+
(lex.add.entry
|
277 |
+
'("waveform" n (((w ei v) 1) ((f oo m) 0))))
|
278 |
+
(lex.add.entry
|
279 |
+
'("winds" n (((w i n d z) 1)) ))
|
280 |
+
(lex.add.entry
|
281 |
+
'("wind" v (((w ai n d) 1)) ))
|
282 |
+
(lex.add.entry
|
283 |
+
'("within" a (((w i) 0) ((dh i n) 1))))
|
284 |
+
(lex.add.entry
|
285 |
+
'("*" n (((a s) 1) ((t @) 0) ((r i s k) 0))))
|
286 |
+
(lex.add.entry
|
287 |
+
'("%" n (((p @) 0) ((s e n t) 1))))
|
288 |
+
(lex.add.entry
|
289 |
+
'("&" n (((a n d) 1)))) ; Original: (((a m p) 1) ((@@ s) 0) ((a n d) 0)))
|
290 |
+
(lex.add.entry
|
291 |
+
'("$" n (((d o) 1) ((l @) 0))))
|
292 |
+
(lex.add.entry
|
293 |
+
'("#" n (((h a sh) 1))))
|
294 |
+
(lex.add.entry
|
295 |
+
'("@" n (((a t) 1))))
|
296 |
+
(lex.add.entry
|
297 |
+
'("+" n (((p l uh s) 0))))
|
298 |
+
(lex.add.entry
|
299 |
+
'("^" n (((k a) 1) ((r e t) 0))))
|
300 |
+
(lex.add.entry
|
301 |
+
'("~" n (((t i l) 1) ((d @) 0))))
|
302 |
+
(lex.add.entry
|
303 |
+
'("=" n (((ii) 1) ((k w @ l) 0))))
|
304 |
+
(lex.add.entry
|
305 |
+
'("/" n (((s l a sh) 1))))
|
306 |
+
(lex.add.entry
|
307 |
+
'("\\" n (((b a k) 1) ((s l a sh) 1))))
|
308 |
+
(lex.add.entry
|
309 |
+
'("_" n (((uh n) 1) ((d @) 0) ((s k oo) 1))))
|
310 |
+
(lex.add.entry
|
311 |
+
'("|" n (((v @@) 1) ((t i) 0) ((k @ l) 0) ((b aa) 1))))
|
312 |
+
(lex.add.entry
|
313 |
+
'(">" n ((( g r ei ) 1) ((t @@) 0) ((dh a n) 1))))
|
314 |
+
(lex.add.entry
|
315 |
+
'("<" n ((( l e s) 1) ((dh a n) 1))))
|
316 |
+
(lex.add.entry
|
317 |
+
'("[" n ((( l e f t) 1) ((b r a) 1) ((k i t) 0))))
|
318 |
+
(lex.add.entry
|
319 |
+
'("]" n ((( r ai t) 1) ((b r a) 1) ((k i t) 0))))
|
320 |
+
(lex.add.entry
|
321 |
+
'(" " n (((s p ei s) 1))))
|
322 |
+
(lex.add.entry
|
323 |
+
'("\t" n (((t a b) 1))))
|
324 |
+
(lex.add.entry
|
325 |
+
'("\n" n (((n y uu) 1) ((l ai n) 1))))
|
326 |
+
(lex.add.entry '("." punc nil))
|
327 |
+
(lex.add.entry '("'" punc nil))
|
328 |
+
(lex.add.entry '(":" punc nil))
|
329 |
+
(lex.add.entry '(";" punc nil))
|
330 |
+
(lex.add.entry '("," punc nil))
|
331 |
+
(lex.add.entry '("-" punc nil))
|
332 |
+
(lex.add.entry '("\"" punc nil))
|
333 |
+
(lex.add.entry '("`" punc nil))
|
334 |
+
(lex.add.entry '("?" punc nil))
|
335 |
+
(lex.add.entry '("!" punc nil))
|
336 |
+
)
|
337 |
+
|
338 |
+
(lex.create "oald")
|
339 |
+
(lex.set.compile.file (path-append oaldlexdir "ali.oald.lex"))
|
340 |
+
(lex.set.phoneset "mrpa")
|
341 |
+
(lex.set.lts.method 'oald_lts_function)
|
342 |
+
(lex.set.pos.map english_pos_map_wp39_to_wp20)
|
343 |
+
(mrpa_addenda)
|
344 |
+
|
345 |
+
|
346 |
+
(provide 'oaldlex)
|
347 |
+
|
CosyVoice-ttsfrd/resource/festival/dicts/wsj.wp39.poslexR
ADDED
The diff for this file is too large to render.
See raw diff
|
|
CosyVoice-ttsfrd/resource/festival/dicts/wsj.wp39.tri.ngrambin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac8ba772b5f3e0a6f48fce9b485914df1a281315e5a4f5ca38db959d74797b1e
|
3 |
+
size 143569
|
CosyVoice-ttsfrd/resource/festival/etc/email_filter
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
###########################################################################
|
3 |
+
## ##
|
4 |
+
## Centre for Speech Technology Research ##
|
5 |
+
## University of Edinburgh, UK ##
|
6 |
+
## Copyright (c) 1996,1997 ##
|
7 |
+
## All Rights Reserved. ##
|
8 |
+
## ##
|
9 |
+
## Permission is hereby granted, free of charge, to use and distribute ##
|
10 |
+
## this software and its documentation without restriction, including ##
|
11 |
+
## without limitation the rights to use, copy, modify, merge, publish, ##
|
12 |
+
## distribute, sublicense, and/or sell copies of this work, and to ##
|
13 |
+
## permit persons to whom this work is furnished to do so, subject to ##
|
14 |
+
## the following conditions: ##
|
15 |
+
## 1. The code must retain the above copyright notice, this list of ##
|
16 |
+
## conditions and the following disclaimer. ##
|
17 |
+
## 2. Any modifications must be clearly marked as such. ##
|
18 |
+
## 3. Original authors' names are not deleted. ##
|
19 |
+
## 4. The authors' names are not used to endorse or promote products ##
|
20 |
+
## derived from this software without specific prior written ##
|
21 |
+
## permission. ##
|
22 |
+
## ##
|
23 |
+
## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ##
|
24 |
+
## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
|
25 |
+
## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
|
26 |
+
## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ##
|
27 |
+
## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
|
28 |
+
## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
|
29 |
+
## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
|
30 |
+
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
|
31 |
+
## THIS SOFTWARE. ##
|
32 |
+
## ##
|
33 |
+
###########################################################################
|
34 |
+
## ##
|
35 |
+
## Email filter for tts text mode ##
|
36 |
+
## usage: email_filter email_message >filtered_message ##
|
37 |
+
## ##
|
38 |
+
## Extracts the From and Subject lines form the head and the body of ##
|
39 |
+
## of the message, I suppose it could also do signature extraction ##
|
40 |
+
## ##
|
41 |
+
###########################################################################
|
42 |
+
grep "^From: " $1
|
43 |
+
echo
|
44 |
+
grep "^Subject: " $1
|
45 |
+
echo
|
46 |
+
# delete up to first blank line (i.e. the header)
|
47 |
+
sed '1,/^$/ d' $1
|
CosyVoice-ttsfrd/resource/festival/festdoc.scm
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;; Author: Alan W Black
|
34 |
+
;;; Date: August 1996
|
35 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
36 |
+
;;; Save documentation strings as texinfo files
|
37 |
+
;;;
|
38 |
+
;;; Finds all functions with documentation, and all variables with
|
39 |
+
;;; documentation, sorts and dumps the information in doc/festfunc.texi
|
40 |
+
;;; and doc/festvars.texi
|
41 |
+
;;;
|
42 |
+
;;; The makefile in the doc directory runs the compiled festival binary and
|
43 |
+
;;; causes these files to be created form the currently defined functions
|
44 |
+
;;; and variables
|
45 |
+
;;;
|
46 |
+
;;; Also provides function to extract manual section for documentation
|
47 |
+
;;; string and send a url to Netscape to display it
|
48 |
+
;;;
|
49 |
+
|
50 |
+
(define (make-doc)
|
51 |
+
"(make-doc)
|
52 |
+
Find function and variable document strings and save them in texinfo
|
53 |
+
format to respective files."
|
54 |
+
(format t "Making function, feature and variable lists\n")
|
55 |
+
|
56 |
+
;; Need to ensure all library files are actually loaded if they contain
|
57 |
+
;; funcstions/variables which have to be put in the manual
|
58 |
+
(require 'display)
|
59 |
+
(require 'mbrola)
|
60 |
+
(require 'tilt)
|
61 |
+
|
62 |
+
(make-a-doc "festfunc.texi" 'function)
|
63 |
+
(make-a-doc "festfeat.texi" 'features)
|
64 |
+
(make-a-doc "festvars.texi" 'vars))
|
65 |
+
|
66 |
+
(define (make-a-doc outfile doclist)
|
67 |
+
"(make-a-doc FILENAME DOCLIST)
|
68 |
+
Make a texinfo document in FILENAME as a texinfo table, items are
|
69 |
+
from DOCLIST. DOCLIST names which doclist to use, it may be
|
70 |
+
one of 'function, 'features or 'vars."
|
71 |
+
(let ((outfp (fopen outfile "wb")))
|
72 |
+
(format outfp "@table @code\n")
|
73 |
+
;; Yes I am so lazy I'm not willing to write a sort function in Scheme
|
74 |
+
(sort-and-dump-docstrings doclist outfp)
|
75 |
+
(format outfp "@end table\n")
|
76 |
+
(fclose outfp)))
|
77 |
+
|
78 |
+
;;;
|
79 |
+
;;; Documentation string may refer to a section in the manual
|
80 |
+
;;; If it does then we can automatically go to that section in the
|
81 |
+
;;; menu using Netscape.
|
82 |
+
;;;
|
83 |
+
|
84 |
+
(defvar manual-browser "netscape"
|
85 |
+
"manual-browser
|
86 |
+
The Unix program name of your Netscape Navigator browser.
|
87 |
+
[see Getting some help]")
|
88 |
+
|
89 |
+
(defvar manual-url
|
90 |
+
(format nil "http://www.cstr.ed.ac.uk/projects/festival/manual-%s.%s.%s/"
|
91 |
+
(car festival_version_number)
|
92 |
+
(car (cdr festival_version_number))
|
93 |
+
(car (cdr (cdr festival_version_number))))
|
94 |
+
"manual-url
|
95 |
+
The default URL for the Festival Manual in html format. You may
|
96 |
+
reset this to a file://.../... type URL on you're local machine.
|
97 |
+
[see Getting some help]")
|
98 |
+
|
99 |
+
;;; Paul got this idea from VM, the email system for emacs and
|
100 |
+
;;; I found out how to do this from their code, thanks Kyle
|
101 |
+
|
102 |
+
(define (send-url-to-netscape url)
|
103 |
+
"(send-url-to-netscape URL)
|
104 |
+
Send given URL to netscape for display. This is primarily used to
|
105 |
+
display parts of the manual referenced in documentation strings."
|
106 |
+
(system
|
107 |
+
(string-append
|
108 |
+
manual-browser
|
109 |
+
" -remote \"openURL( "
|
110 |
+
url
|
111 |
+
" )\" ")))
|
112 |
+
|
113 |
+
(define (lastline string)
|
114 |
+
"(lastline STRING)
|
115 |
+
Returns the part of the string which between the last newline and the
|
116 |
+
end of string."
|
117 |
+
(let ((ns (string-after string "\n")))
|
118 |
+
(if (string-equal ns "")
|
119 |
+
string
|
120 |
+
(lastline ns))))
|
121 |
+
|
122 |
+
(define (manual-sym symbol)
|
123 |
+
"(manual-sym SYMBOL)
|
124 |
+
Display the section in the manual that SYMBOL's docstring has
|
125 |
+
identified as the most relevant. The section is named on the
|
126 |
+
last line of a documentation string with no newlines within it
|
127 |
+
prefixed by \"[see \" with a \"]\" just immediately before the end
|
128 |
+
of the documentation string. The manual section name is translated to
|
129 |
+
the section in the HTML version of the manual and a URL is
|
130 |
+
and sent to Netscape for display. [see Getting some help]"
|
131 |
+
(let ((section (string-before (string-after
|
132 |
+
(lastline (eval (list 'doc symbol)))
|
133 |
+
"[see ")
|
134 |
+
"]")))
|
135 |
+
(cond
|
136 |
+
((string-equal section "")
|
137 |
+
(eval (list 'doc symbol))) ;; nothing there
|
138 |
+
(t
|
139 |
+
(manual section)))))
|
140 |
+
|
141 |
+
(define (manual section)
|
142 |
+
"(manual SECTION)
|
143 |
+
Display SECTION in the manual. SECTION is a string identifying
|
144 |
+
a manual section (it could be an initial substring. If SECTION
|
145 |
+
is nil or unspecifed then the Manual table of contents is displayed.
|
146 |
+
This uses netscape to display the manual page so you must have that
|
147 |
+
(use variable manual-browser to identify it) and the variable
|
148 |
+
manual-url pointing to a copy of the manual. [see Getting some help]"
|
149 |
+
(let ((tmpfile (make_tmp_filename))
|
150 |
+
(manual-section))
|
151 |
+
(cond
|
152 |
+
((string-matches section "\"")
|
153 |
+
(string-append "Invalid section reference containing quote: "
|
154 |
+
section "\n"))
|
155 |
+
((not section)
|
156 |
+
(send-url-to-netscape (string-append manual-url "festival_toc.html")))
|
157 |
+
(t ;; find section in manual
|
158 |
+
(get_url (string-append manual-url "festival_toc.html") tmpfile)
|
159 |
+
(system
|
160 |
+
(string-append
|
161 |
+
"grep -i \"^<LI><A NAME.*" section "\" \"" tmpfile
|
162 |
+
"\" | sed 's/^.*HREF=.//' | sed 's/.>.*$//' > \""
|
163 |
+
tmpfile ".out\""))
|
164 |
+
(set! manual-section (load (string-append tmpfile ".out") t))
|
165 |
+
(cond
|
166 |
+
((not manual-section)
|
167 |
+
(string-append "No section called: " section))
|
168 |
+
(t
|
169 |
+
(send-url-to-netscape (string-append manual-url (car manual-section)))
|
170 |
+
(delete-file tmpfile)
|
171 |
+
(delete-file (string-append tmpfile ".out"))
|
172 |
+
"Sent manual reference url to netscape."))))))
|
173 |
+
|
174 |
+
(provide 'festdoc)
|
175 |
+
|
176 |
+
|
177 |
+
|
178 |
+
|
CosyVoice-ttsfrd/resource/festival/holmes_phones.scm
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;; ;;
|
3 |
+
;; Centre for Speech Technology Research ;;
|
4 |
+
;; University of Edinburgh, UK ;;
|
5 |
+
;; Copyright (c) 1996,1997 ;;
|
6 |
+
;; All Rights Reserved. ;;
|
7 |
+
;; ;;
|
8 |
+
;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;; this software and its documentation without restriction, including ;;
|
10 |
+
;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;; the following conditions: ;;
|
14 |
+
;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;; conditions and the following disclaimer. ;;
|
16 |
+
;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;; derived from this software without specific prior written ;;
|
20 |
+
;; permission. ;;
|
21 |
+
;; ;;
|
22 |
+
;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;; THIS SOFTWARE. ;;
|
31 |
+
;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;
|
34 |
+
;; A definition of the Holmes phone set used by the Donovan LPC
|
35 |
+
;; diphone synthesizer, the rest of the synthesis process will
|
36 |
+
;; typically use mrpa phones and map to these.
|
37 |
+
;;
|
38 |
+
;; Hmm not sure I've got the right mapping (as usual)
|
39 |
+
|
40 |
+
(defPhoneSet
|
41 |
+
holmes
|
42 |
+
;;; Phone Features
|
43 |
+
(;; vowel or consonant
|
44 |
+
(vc + -)
|
45 |
+
;; vowel length: short long dipthong schwa
|
46 |
+
(vlng s l d a 0)
|
47 |
+
;; vowel height: high mid low
|
48 |
+
(vheight 1 2 3 - 0)
|
49 |
+
;; vowel frontness: front mid back
|
50 |
+
(vfront 1 2 3 - 0)
|
51 |
+
;; lip rounding
|
52 |
+
(vrnd + - 0)
|
53 |
+
;; consonant type: stop fricative affricative nasal lateral approximant
|
54 |
+
(ctype s f a n l r 0)
|
55 |
+
;; place of articulation: labial alveolar palatal labio-dental
|
56 |
+
;; dental velar glottal
|
57 |
+
(cplace l a p b d v g 0)
|
58 |
+
;; consonant voicing
|
59 |
+
(cvox + - 0)
|
60 |
+
)
|
61 |
+
;; Phone set members
|
62 |
+
(
|
63 |
+
;; Note these features were set by awb so they are wrong !!!
|
64 |
+
(ee + l 1 1 - 0 0 0) ;; beet
|
65 |
+
(i + s 1 1 - 0 0 0) ;; bit
|
66 |
+
(ai + d 2 1 - 0 0 0) ;; gate
|
67 |
+
(e + s 2 1 - 0 0 0) ;; get
|
68 |
+
(aa + s 3 1 - 0 0 0) ;; fat
|
69 |
+
(ar + l 3 3 - 0 0 0) ;; father
|
70 |
+
(aw + l 3 3 + 0 0 0) ;; lawn
|
71 |
+
(oa + d 2 2 - 0 0 0) ;; lone
|
72 |
+
(oo + s 1 3 + 0 0 0) ;; full
|
73 |
+
(uu + l 1 3 + 0 0 0) ;; fool
|
74 |
+
(o + s 2 3 + 0 0 0)
|
75 |
+
(er + l 2 2 - 0 0 0) ;; murder
|
76 |
+
(a + a 2 2 - 0 0 0) ;; about
|
77 |
+
(u + s 2 3 - 0 0 0) ;; but
|
78 |
+
(ie + d 3 2 - 0 0 0) ;; hide
|
79 |
+
(ou + d 3 2 + 0 0 0) ;; how
|
80 |
+
(oi + d 3 3 + 0 0 0) ;; toy
|
81 |
+
(eer + d 2 1 - 0 0 0)
|
82 |
+
(air + d 1 1 - 0 0 0)
|
83 |
+
(oor + d 3 1 + 0 0 0)
|
84 |
+
;; (yu + l 2 3 + 0 0 +) ;; you ???
|
85 |
+
|
86 |
+
(p - 0 0 0 0 s l -)
|
87 |
+
(b - 0 0 0 0 s l +)
|
88 |
+
(t - 0 0 0 0 s a -)
|
89 |
+
(d - 0 0 0 0 s a +)
|
90 |
+
(k - 0 0 0 0 s v -)
|
91 |
+
(g - 0 0 0 0 s v +)
|
92 |
+
(f - 0 0 0 0 f b -)
|
93 |
+
(v - 0 0 0 0 f b +)
|
94 |
+
(th - 0 0 0 0 f d -)
|
95 |
+
(dh - 0 0 0 0 f d +)
|
96 |
+
(s - 0 0 0 0 f a -)
|
97 |
+
(z - 0 0 0 0 f a +)
|
98 |
+
(sh - 0 0 0 0 f p -)
|
99 |
+
(zh - 0 0 0 0 f p +)
|
100 |
+
(h - 0 0 0 0 f g -)
|
101 |
+
(m - 0 0 0 0 n l +)
|
102 |
+
(n - 0 0 0 0 n a +)
|
103 |
+
(ng - 0 0 0 0 n v +)
|
104 |
+
(ch - 0 0 0 0 a p -)
|
105 |
+
(j - 0 0 0 0 a p +)
|
106 |
+
(l - 0 0 0 0 l a +)
|
107 |
+
(w - 0 0 0 0 r l +)
|
108 |
+
(y - 0 0 0 0 r p +)
|
109 |
+
(r - 0 0 0 0 r a +)
|
110 |
+
;; (wh - 0 - - + l l -) ;; ??
|
111 |
+
;; (wh - 0 - - + l l +) ;; map to w
|
112 |
+
(# - 0 0 0 0 0 0 -)
|
113 |
+
)
|
114 |
+
)
|
115 |
+
|
116 |
+
(PhoneSet.silences '(#))
|
117 |
+
|
118 |
+
(provide 'holmes_phones)
|
CosyVoice-ttsfrd/resource/festival/klatt_durs.scm
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Phone duration info for Klatt rules, for mrpa phone set
|
35 |
+
|
36 |
+
(set! duration_klatt_params
|
37 |
+
'(
|
38 |
+
(a 230.0 80.0)
|
39 |
+
(aa 240.0 100.0)
|
40 |
+
(@ 120.0 60.0)
|
41 |
+
(@@ 180.0 80.0)
|
42 |
+
(ai 250.0 150.0)
|
43 |
+
(au 240.0 100.0)
|
44 |
+
(b 85.0 60.0)
|
45 |
+
(ch 70.0 50.0)
|
46 |
+
(d 75.0 50.0)
|
47 |
+
(dh 50.0 30.0)
|
48 |
+
(e 150.0 70.0)
|
49 |
+
(e@ 270.0 130.0)
|
50 |
+
(ei 180.0 100.0)
|
51 |
+
(f 100.0 80.0)
|
52 |
+
(g 80.0 60.0)
|
53 |
+
(h 80.0 20.0)
|
54 |
+
(i 135.0 40.0)
|
55 |
+
(i@ 230.0 100.0)
|
56 |
+
(ii 155.0 55)
|
57 |
+
(jh 70.0 50.0)
|
58 |
+
(k 80.0 60.0)
|
59 |
+
(l 80.0 40.0)
|
60 |
+
(m 70.0 60.0)
|
61 |
+
(n 60.0 50.0)
|
62 |
+
(ng 95.0 60.0)
|
63 |
+
(o 240.0 130.0)
|
64 |
+
(oi 280.0 150.0)
|
65 |
+
(oo 240.0 130.0)
|
66 |
+
(ou 220.0 80.0)
|
67 |
+
(p 90.0 50.0)
|
68 |
+
(r 80.0 30.0)
|
69 |
+
(s 105.0 60.0)
|
70 |
+
(sh 105.0 80.0)
|
71 |
+
(t 75.0 50.0)
|
72 |
+
(th 90.0 60.0)
|
73 |
+
(u 210.0 70.0)
|
74 |
+
(u@ 230.0 110.0)
|
75 |
+
(uh 160.0 60.0)
|
76 |
+
(uu 230.0 150.0)
|
77 |
+
(v 60.0 40.0)
|
78 |
+
(w 80.0 60.0)
|
79 |
+
(y 80.0 40.0)
|
80 |
+
(z 75.0 40.0)
|
81 |
+
(zh 70.0 40.0)
|
82 |
+
(# 100.0 100.0)
|
83 |
+
))
|
84 |
+
|
85 |
+
(provide 'klatt_durs)
|
CosyVoice-ttsfrd/resource/festival/lexicons.scm
ADDED
@@ -0,0 +1,274 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Definition of various lexicons
|
35 |
+
;;;
|
36 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
37 |
+
|
38 |
+
;;; If there exists a sudirectory of the lib-path called dicts then that
|
39 |
+
;;; is used as the lexicon directory by default. If it doesn't exist
|
40 |
+
;;; we set lexdir to the directory in CSTR where our lexicons are.
|
41 |
+
;;; In non-CSTR installations where lexicons are not in lib/dicts,
|
42 |
+
;;; you should set lexdir in sitevars.scm
|
43 |
+
|
44 |
+
(defvar lexdir
|
45 |
+
(if (probe_file (path-append libdir "dicts"))
|
46 |
+
(path-append libdir "dicts/")
|
47 |
+
;; else we'll guess we're in the CSTR filespace
|
48 |
+
(path-as-directory "/projects/festival/lib/dicts/"))
|
49 |
+
"lexdir
|
50 |
+
The directory where the lexicon(s) are, by default.")
|
51 |
+
|
52 |
+
(require 'pos) ;; for part of speech mapping
|
53 |
+
|
54 |
+
(define (setup_cstr_lex)
|
55 |
+
"(setup_cstr_lexicon)
|
56 |
+
Define and setup the CSTR lexicon. The CSTR lexicon consists
|
57 |
+
of about 25,000 entries in the mrpa phone set. A large number of
|
58 |
+
specific local entries are also added to the addenda."
|
59 |
+
(if (not (member_string "mrpa" (lex.list)))
|
60 |
+
(begin
|
61 |
+
(lex.create "mrpa")
|
62 |
+
(lex.set.compile.file (path-append lexdir "cstrlex.out"))
|
63 |
+
(lex.set.phoneset "mrpa")
|
64 |
+
(lex.set.lts.method 'lts_rules)
|
65 |
+
(lex.set.lts.ruleset 'nrl)
|
66 |
+
(lex.set.pos.map english_pos_map_wp39_to_wp20)
|
67 |
+
(mrpa_addenda)
|
68 |
+
(lex.add.entry
|
69 |
+
'("previous" nil (((p r ii) 1) ((v ii) 0) ((@ s) 0))))
|
70 |
+
(lex.add.entry
|
71 |
+
'("audio" () (((oo d) 1) ((ii) 0) ((ou) 0))))
|
72 |
+
(lex.add.entry
|
73 |
+
'("modules" () (((m o d) 1) ((uu l s) 0))))
|
74 |
+
)))
|
75 |
+
|
76 |
+
(define (setup_oald_lex)
|
77 |
+
"(setup_oald_lexicon)
|
78 |
+
Define and setup the CUVOALD lexicon. This is derived from the
|
79 |
+
Computer Users Version of the Oxford Advanced Learners' Dictionary
|
80 |
+
of Current English. This version includes a trained set of letter
|
81 |
+
to sound rules which have also been used to reduce the actual lexicon
|
82 |
+
size by over half, for those entries that the lts model gets exactly
|
83 |
+
the same."
|
84 |
+
(if (not (member_string "oald" (lex.list)))
|
85 |
+
(load (path-append lexdir "oald/oaldlex.scm"))))
|
86 |
+
|
87 |
+
(define (setup_cmu_lex)
|
88 |
+
"(setup_cmu_lex)
|
89 |
+
Lexicon derived from the CMU lexicon (cmudict-0.4), around 100,000 entries,
|
90 |
+
in the radio phoneset (sort of darpa-like). Includes letter to sound
|
91 |
+
rule model trained from this data, and uses the lexical stress predictor
|
92 |
+
from OALD."
|
93 |
+
(if (not (member_string "cmu" (lex.list)))
|
94 |
+
(load (path-append lexdir "cmu/cmulex.scm"))))
|
95 |
+
|
96 |
+
(define (setup_cmumt_lex)
|
97 |
+
"(setup_cmumt_lex)
|
98 |
+
Lexicon derived from the CMU lexicon (cmudict-0.4), around 100,000 entries,
|
99 |
+
in the radio phoneset (sort of darpa-like). Includes letter to sound
|
100 |
+
rule model trained from this data, and uses the lexical stress predictor
|
101 |
+
from OALD."
|
102 |
+
(if (not (member_string "cmumt" (lex.list)))
|
103 |
+
(load (path-append lexdir "cmu_mt/cmumtlex.scm"))))
|
104 |
+
|
105 |
+
(define (setup_cmu6_lex)
|
106 |
+
"(setup_cmu6_lex)
|
107 |
+
Lexicon derived from the CMU lexicon (cmudict-0.6), around 100,000 entries,
|
108 |
+
in the radio phoneset (sort of darpa-like). Includes letter to sound
|
109 |
+
rule model trained from this data, the format of this lexicon is suitable
|
110 |
+
for the UniSyn metrical phonology modules. That is the entries are
|
111 |
+
not syllabified,"
|
112 |
+
(if (not (member_string "cmu6" (lex.list)))
|
113 |
+
(load (path-append lexdir "cmu6/cmu6lex.scm"))))
|
114 |
+
|
115 |
+
(define (setup_moby_lex)
|
116 |
+
"(setup_moby_lexicon)
|
117 |
+
Define and setup the MOBY lexicon. This is derived from the public
|
118 |
+
domain version of the Moby (TM) Pronunciator II lexicon. It can be
|
119 |
+
converted automatically to British English mrpa phoneset which of
|
120 |
+
course is sub-optimal. It contains around 120,000 entries and has part
|
121 |
+
of speech information for homographs."
|
122 |
+
(if (not (member_string "moby" (lex.list)))
|
123 |
+
(begin
|
124 |
+
(lex.create "moby")
|
125 |
+
; (lex.set.compile.file (path-append lexdir "mobylex.out"))
|
126 |
+
(lex.set.compile.file "/home/awb/src/mobypron/mobylex.out")
|
127 |
+
(lex.set.phoneset "mrpa")
|
128 |
+
(lex.set.lts.method 'lts_rules)
|
129 |
+
(lex.set.lts.ruleset 'nrl)
|
130 |
+
(lex.set.pos.map english_pos_map_wp39_to_wp20)
|
131 |
+
(lex.add.entry
|
132 |
+
'("a" dt (((@) 0))))
|
133 |
+
(lex.add.entry
|
134 |
+
'("the" dt (((dh @) 0))))
|
135 |
+
(lex.add.entry
|
136 |
+
'("taylor" n (((t ei) 1) ((l @) 0))))
|
137 |
+
(lex.add.entry
|
138 |
+
'("who" prp ((( h uu ) 0))))
|
139 |
+
(mrpa_addenda))))
|
140 |
+
|
141 |
+
(define (setup_beep_lex)
|
142 |
+
"(setup_beep_lex)
|
143 |
+
Lexicon derived from the British English Example Pronunciation dictionary
|
144 |
+
(BEEP) from Tony Robinson [email protected]. Around 160,000 entries."
|
145 |
+
(if (not (member_string "beep" (lex.list)))
|
146 |
+
(begin
|
147 |
+
(lex.create "beep")
|
148 |
+
(lex.set.compile.file (path-append lexdir "beep_lex.out"))
|
149 |
+
(lex.set.phoneset "mrpa")
|
150 |
+
(lex.set.lts.method 'lts_rules)
|
151 |
+
(lex.set.lts.ruleset 'nrl)
|
152 |
+
(lex.set.pos.map english_pos_map_wp39_to_wp20)
|
153 |
+
(lex.add.entry
|
154 |
+
'("taylor" nil (((t ei) 1) ((l @) 0))))
|
155 |
+
(mrpa_addenda))))
|
156 |
+
|
157 |
+
;;; The nrl letter to sound rules produce mrpa phone set so we need
|
158 |
+
;;; to do some fancy things to make them work for American English
|
159 |
+
(define (f2b_lts word features)
|
160 |
+
"(f2b_lts WORD FEATURES)
|
161 |
+
Letter to sound rule system for f2b (American English), uses the NRL
|
162 |
+
LTS ruleset and maps the result to the radio phone set."
|
163 |
+
'("unknown" nil (((ah n) 0) ((n ow n) 1)))
|
164 |
+
)
|
165 |
+
|
166 |
+
;;; A CART tree for predicting lexical stress for strings of phones
|
167 |
+
;;; generated by the LTS models. This was actually trained from
|
168 |
+
;;; OALD as that's the only lexicon with stress and part of speech information
|
169 |
+
;;; It trained in a phoneset independent way and may be used be either
|
170 |
+
;;; OALD or CMU models (and probably MOBY and OGI lex too).
|
171 |
+
;;; On held out data it gets
|
172 |
+
;;; 07390 378 7768 [7390/7768] 95.134
|
173 |
+
;;; 1 512 8207 8719 [8207/8719] 94.128
|
174 |
+
;;; 7902 8585
|
175 |
+
;;; total 16487 correct 15597.000 94.602%
|
176 |
+
;;;
|
177 |
+
(set! english_stress_tree
|
178 |
+
'((sylpos < 1.7)
|
179 |
+
((1))
|
180 |
+
((ph_vlng is a)
|
181 |
+
((0))
|
182 |
+
((ph_vheight is 1)
|
183 |
+
((num2end < 1.5)
|
184 |
+
((ph_vfront is 1)
|
185 |
+
((ph_vlng is s) ((0)) ((pos is v) ((1)) ((0))))
|
186 |
+
((pos is n) ((0)) ((sylpos < 2.2) ((1)) ((0)))))
|
187 |
+
((ph_vlng is l)
|
188 |
+
((1))
|
189 |
+
((ph_vfront is 1)
|
190 |
+
((num2end < 2.4)
|
191 |
+
((0))
|
192 |
+
((pos is a)
|
193 |
+
((num2end < 3.3) ((sylpos < 2.3) ((1)) ((0))) ((0)))
|
194 |
+
((sylpos < 3.2)
|
195 |
+
((num2end < 3.3) ((0)) ((pos is v) ((1)) ((0))))
|
196 |
+
((0)))))
|
197 |
+
((0)))))
|
198 |
+
((num2end < 1.5)
|
199 |
+
((pos is n)
|
200 |
+
((0))
|
201 |
+
((sylpos < 2.4)
|
202 |
+
((pos is v)
|
203 |
+
((1))
|
204 |
+
((ph_vlng is d)
|
205 |
+
((ph_vheight is 2) ((ph_vfront is 1) ((1)) ((0))) ((0)))
|
206 |
+
((1))))
|
207 |
+
((ph_vlng is d)
|
208 |
+
((sylpos < 3.3)
|
209 |
+
((pos is v)
|
210 |
+
((ph_vheight is 2) ((ph_vfront is 1) ((0)) ((1))) ((0)))
|
211 |
+
((0)))
|
212 |
+
((0)))
|
213 |
+
((ph_vheight is 2)
|
214 |
+
((1))
|
215 |
+
((ph_vrnd is +) ((1)) ((ph_vlng is l) ((0)) ((1))))))))
|
216 |
+
((ph_vlng is d)
|
217 |
+
((pos is v)
|
218 |
+
((sylpos < 2.4) ((1)) ((0)))
|
219 |
+
((ph_vfront is 2)
|
220 |
+
((pos is n)
|
221 |
+
((num2end < 2.4)
|
222 |
+
((ph_vrnd is +)
|
223 |
+
((0))
|
224 |
+
((sylpos < 2.2) ((1)) ((ph_vheight is 2) ((1)) ((0)))))
|
225 |
+
((sylpos < 2.4) ((ph_vheight is 2) ((0)) ((1))) ((0))))
|
226 |
+
((1)))
|
227 |
+
((ph_vheight is 2) ((1)) ((ph_vfront is 1) ((0)) ((1))))))
|
228 |
+
((pos is n)
|
229 |
+
((num2end < 2.4)
|
230 |
+
((ph_vfront is 3)
|
231 |
+
((sylpos < 2.3) ((1)) ((ph_vlng is l) ((1)) ((0))))
|
232 |
+
((1)))
|
233 |
+
((1)))
|
234 |
+
((1)))))))))
|
235 |
+
|
236 |
+
(define (lex_user_unknown_word word feats)
|
237 |
+
"(lex_user_unknown_word WORD FEATS)
|
238 |
+
Function called by lexicon when 'function type letter to sound rules
|
239 |
+
is defined. It is the user's responsibility to defined this function
|
240 |
+
themselves when they want to deal with unknown words themselves."
|
241 |
+
(error "lex_user_unknown_word: has not been defined by user"))
|
242 |
+
|
243 |
+
(define (Word utt)
|
244 |
+
"(Word utt)
|
245 |
+
Construct (synthesis specific) syllable/segments from Word relation
|
246 |
+
using current lexicon and specific module."
|
247 |
+
(let ((rval (apply_method 'Word_Method utt)))
|
248 |
+
(cond
|
249 |
+
(rval rval) ;; new style
|
250 |
+
(t
|
251 |
+
(Classic_Word utt)))))
|
252 |
+
|
253 |
+
(define (find_oovs vocab oovs)
|
254 |
+
(let ((fd (fopen vocab "r"))
|
255 |
+
(ofd (fopen oovs "w"))
|
256 |
+
(e 0)
|
257 |
+
(oov 0)
|
258 |
+
(entry))
|
259 |
+
|
260 |
+
(while (not (equal? (set! entry (readfp fd)) (eof-val)))
|
261 |
+
(set! e (+ 1 e))
|
262 |
+
(if (not (lex.lookup_all entry))
|
263 |
+
(begin
|
264 |
+
(set! oov (+ 1 oov))
|
265 |
+
(format ofd "%l\n" (lex.lookup entry nil))))
|
266 |
+
)
|
267 |
+
(format t ";; %d words %d oov %2.2f oov_rate\n"
|
268 |
+
e oov (/ (* oov 100.0) e))
|
269 |
+
)
|
270 |
+
)
|
271 |
+
|
272 |
+
|
273 |
+
(provide 'lexicons)
|
274 |
+
|
CosyVoice-ttsfrd/resource/festival/mbrola.scm
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Support for MBROLA as an external module.
|
35 |
+
;;;
|
36 |
+
|
37 |
+
;;; You might want to set this in your sitevars.scm
|
38 |
+
(defvar mbrola_progname "/cstr/external/mbrola/mbrola"
|
39 |
+
"mbrola_progname
|
40 |
+
The program name for mbrola.")
|
41 |
+
(defvar mbrola_database "fr1"
|
42 |
+
"mbrola_database
|
43 |
+
The name of the MBROLA database to usde during MBROLA Synthesis.")
|
44 |
+
|
45 |
+
(define (MBROLA_Synth utt)
|
46 |
+
"(MBROLA_Synth UTT)
|
47 |
+
Synthesize using MBROLA as external module. Basically dump the info
|
48 |
+
from this utterance. Call MBROLA and reload the waveform into utt.
|
49 |
+
[see MBROLA]"
|
50 |
+
(let ((filename (make_tmp_filename))
|
51 |
+
)
|
52 |
+
(save_segments_mbrola utt filename)
|
53 |
+
(system (string-append mbrola_progname " "
|
54 |
+
mbrola_database " "
|
55 |
+
filename " "
|
56 |
+
filename ".au"))
|
57 |
+
(utt.import.wave utt (string-append filename ".au"))
|
58 |
+
(apply_hooks after_synth_hooks utt)
|
59 |
+
(delete-file filename)
|
60 |
+
(delete-file (string-append filename ".au"))
|
61 |
+
utt))
|
62 |
+
|
63 |
+
(define (save_segments_mbrola utt filename)
|
64 |
+
"(save_segments_mbrola UTT FILENAME)
|
65 |
+
Save segment information in MBROLA format in filename. The format is
|
66 |
+
phone duration (ms) [% position F0 target]*. [see MBROLA]"
|
67 |
+
(let ((fd (fopen filename "w")))
|
68 |
+
(mapcar
|
69 |
+
(lambda (segment)
|
70 |
+
(save_seg_mbrola_entry
|
71 |
+
(item.feat segment 'name)
|
72 |
+
(item.feat segment 'segment_start)
|
73 |
+
(item.feat segment 'segment_duration)
|
74 |
+
(mapcar
|
75 |
+
(lambda (targ_item)
|
76 |
+
(list
|
77 |
+
(item.feat targ_item "pos")
|
78 |
+
(item.feat targ_item "f0")))
|
79 |
+
(item.relation.daughters segment 'Target)) ;; list of targets
|
80 |
+
fd))
|
81 |
+
(utt.relation.items utt 'Segment))
|
82 |
+
(fclose fd)))
|
83 |
+
|
84 |
+
(define (save_seg_mbrola_entry name start dur targs fd)
|
85 |
+
"(save_seg_mbrola_entry ENTRY NAME START DUR TARGS FD)
|
86 |
+
Entry contains, (name duration num_targs start 1st_targ_pos 1st_targ_val)."
|
87 |
+
(format fd "%s %d " name (nint (* dur 1000)))
|
88 |
+
(if targs ;; if there are any targets
|
89 |
+
(mapcar
|
90 |
+
(lambda (targ) ;; targ_pos and targ_val
|
91 |
+
(let ((targ_pos (car targ))
|
92 |
+
(targ_val (car (cdr targ))))
|
93 |
+
|
94 |
+
(format fd "%d %d "
|
95 |
+
(nint (* 100 (/ (- targ_pos start) dur))) ;; % pos of target
|
96 |
+
(nint (parse-number targ_val))) ;; target value
|
97 |
+
))
|
98 |
+
targs))
|
99 |
+
(terpri fd)
|
100 |
+
(terpri fd)
|
101 |
+
)
|
102 |
+
|
103 |
+
(provide 'mbrola)
|
CosyVoice-ttsfrd/resource/festival/mettree.scm
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1998 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Some (experimental) data for investigating metrical trees
|
35 |
+
;;;
|
36 |
+
|
37 |
+
;;; Set up generation of metrical tree, this includes getting
|
38 |
+
;;; a syntactic parse
|
39 |
+
;;;
|
40 |
+
;;; Use as
|
41 |
+
;;; (set! utt1 (metsynth (Utterance Text "For afternoon tea")))
|
42 |
+
;;; (utt.relation_tree utt1 'MetricalTree)
|
43 |
+
|
44 |
+
(require 'scfg)
|
45 |
+
(set! scfg_grammar (load (path-append libdir "scfg_wsj_wp20.gram") t))
|
46 |
+
|
47 |
+
(define (mettext utt)
|
48 |
+
(Initialize utt)
|
49 |
+
(Text utt)
|
50 |
+
(Token_POS utt)
|
51 |
+
(Token utt)
|
52 |
+
(POS utt)
|
53 |
+
(print "here1")
|
54 |
+
(Phrasify utt)
|
55 |
+
(print "here2")
|
56 |
+
(ProbParse utt)
|
57 |
+
(print "here3")
|
58 |
+
(auto_metrical_tree utt)
|
59 |
+
)
|
60 |
+
|
61 |
+
(define (metsynth utt)
|
62 |
+
(mettext utt)
|
63 |
+
(Wave_Synth utt)
|
64 |
+
)
|
65 |
+
|
66 |
+
;;; Assumed everything is using Roger diphones
|
67 |
+
|
68 |
+
;;(lex.create "cmu_mettree")
|
69 |
+
;;;(lex.set.phoneset "radio_phones")
|
70 |
+
;;(lex.set.phoneset "radio_phones")
|
71 |
+
|
72 |
+
(define (setup_cmu_mettree_lex)
|
73 |
+
"(setup_cmu_mettreelex)
|
74 |
+
Lexicon derived from the CMU lexicon (cmudict-0.1), around 100,000 entries,
|
75 |
+
in the radio phoneset (sort of darpa-like)."
|
76 |
+
(if (not (member_string "cmu_mettree" (lex.list)))
|
77 |
+
(begin
|
78 |
+
(print "making cmu lexicon")
|
79 |
+
(lex.create "cmu_mettree")
|
80 |
+
(lex.set.compile.file (path-append lexdir "cmu_mettree_lex.out"))
|
81 |
+
(lex.set.phoneset "radio")
|
82 |
+
(require 'lts__us) ;; US English letter to sound rules
|
83 |
+
(lex.set.lts.method 'lts_rules)
|
84 |
+
(lex.set.lts.ruleset 'nrl_us))))
|
85 |
+
|
86 |
+
(provide 'mettree)
|
87 |
+
|
88 |
+
|
CosyVoice-ttsfrd/resource/festival/multisyn/multisyn.scm
ADDED
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 2003, 2004 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Multisyn top level scheme code (Korin Richmond and Rob Clark)
|
35 |
+
;;;
|
36 |
+
|
37 |
+
; Requires
|
38 |
+
(require_module 'UniSyn)
|
39 |
+
(require_module 'MultiSyn)
|
40 |
+
(require 'multisyn_pauses)
|
41 |
+
(require 'target_cost)
|
42 |
+
|
43 |
+
;; use a global parameter to specify which UnitSelection voice
|
44 |
+
;; to use to synthesise a given utterance for now, because the
|
45 |
+
;; standard Festival synthesis mainline doesn't accept a voice
|
46 |
+
;; parameter. (This should be set to the current voice object)
|
47 |
+
(defvar currentMultiSynVoice nil)
|
48 |
+
(defvar relp t)
|
49 |
+
(defvar flattenVoice nil)
|
50 |
+
|
51 |
+
; extract utt list from a .data file
|
52 |
+
(define (load_utt_list filename)
|
53 |
+
"(load_utt_list filename)
|
54 |
+
Loads a fextvox .data file and extracts an utterance list."
|
55 |
+
(let (l entries)
|
56 |
+
(set! entries (load filename t))
|
57 |
+
(mapcar
|
58 |
+
(lambda (d)
|
59 |
+
(set! l (cons (car d) l))
|
60 |
+
t)
|
61 |
+
entries)
|
62 |
+
l))
|
63 |
+
|
64 |
+
;; SynthType definition, main entry point.
|
65 |
+
|
66 |
+
(defSynthType MultiSyn
|
67 |
+
;(print "Multisyn unit selection synthesis")
|
68 |
+
(defvar MultiSyn_module_hooks nil)
|
69 |
+
(Param.def "unisyn.window_name" "hanning")
|
70 |
+
(Param.def "unisyn.window_factor" 1.0)
|
71 |
+
;; Unisyn requires these to be set.
|
72 |
+
(set! us_abs_offset 0.0)
|
73 |
+
(set! us_rel_offset 0.0)
|
74 |
+
|
75 |
+
(apply_hooks MultiSyn_module_hooks utt) ;; 4processing of diphone names
|
76 |
+
|
77 |
+
;; find appropriate unit sequence and put sythesis
|
78 |
+
;; parameters in the Unit relation of the utterance structure
|
79 |
+
(voice.getUnits currentMultiSynVoice utt)
|
80 |
+
|
81 |
+
;(print "doing concat")
|
82 |
+
(us_unit_concat utt)
|
83 |
+
|
84 |
+
;(print "doing raw concat")
|
85 |
+
|
86 |
+
(utt.relation.create utt 'SourceSegments)
|
87 |
+
|
88 |
+
(set! do_prosmod (du_voice.prosodic_modification currentMultiSynVoice))
|
89 |
+
|
90 |
+
(if do_prosmod
|
91 |
+
(begin
|
92 |
+
(if (not (member 'f0 (utt.relationnames utt)))
|
93 |
+
(targets_to_f0 utt))
|
94 |
+
;; temporary fix
|
95 |
+
(if (utt.relation.last utt 'Segment)
|
96 |
+
(set! pm_end (+ (item.feat (utt.relation.last utt 'Segment) "end") 0.02))
|
97 |
+
(set! pm_end 0.02))
|
98 |
+
(us_f0_to_pitchmarks utt 'f0 'TargetCoef pm_end)
|
99 |
+
(us_mapping utt 'segment_single))
|
100 |
+
(begin
|
101 |
+
(utt.copy_relation utt 'SourceCoef 'TargetCoef)
|
102 |
+
(us_mapping utt "linear")))
|
103 |
+
|
104 |
+
|
105 |
+
;(print "generating wave")
|
106 |
+
;; specify something else if you don't want lpc
|
107 |
+
(us_generate_wave utt 'lpc)
|
108 |
+
)
|
109 |
+
|
110 |
+
|
111 |
+
; target cost scheme code
|
112 |
+
(define (targetcost it1 it2)
|
113 |
+
(Default_Target_Cost it1 it2))
|
114 |
+
|
115 |
+
; Evil function which writes the functions to actually load and switch new voices.
|
116 |
+
(define (make_voice_definition name srate config_function backoff_rules data_dir config)
|
117 |
+
"(make_voice_definition NAME SRATE CONFIG_FUNCTION BACKOFF_RULES DATA_DIR CONFIG)
|
118 |
+
Create the fuction definitions to load and unload a voice."
|
119 |
+
(let ((voice_name (string-append "voice_" name))
|
120 |
+
(free_name (string-append "free_voice_" name))
|
121 |
+
(pre_config_function (string-append config_function "_pre"))
|
122 |
+
(voice_variable (upcase (string-append "voice_" name))))
|
123 |
+
|
124 |
+
(eval (list 'defvar (intern voice_variable) nil))
|
125 |
+
|
126 |
+
(eval (list 'define (list (intern voice_name))
|
127 |
+
(list 'if (intern pre_config_function)
|
128 |
+
(list (intern pre_config_function) (intern voice_variable)))
|
129 |
+
(list 'if (list 'null (intern voice_variable))
|
130 |
+
(list 'set! (intern voice_variable)
|
131 |
+
(list 'multisyn_load_voice_modules
|
132 |
+
(list 'quote name)
|
133 |
+
srate
|
134 |
+
(list 'quote backoff_rules)
|
135 |
+
data_dir
|
136 |
+
(list 'quote config))))
|
137 |
+
(list (intern config_function) (intern voice_variable))
|
138 |
+
(list 'set! 'current-voice (list 'quote name))
|
139 |
+
(list 'define_current_voice_reset)
|
140 |
+
(list 'set! 'currentMultiSynVoice (intern voice_variable))
|
141 |
+
))
|
142 |
+
|
143 |
+
(eval (list 'define
|
144 |
+
(list (intern free_name))
|
145 |
+
(list 'cond
|
146 |
+
(list (list 'null (intern voice_variable))
|
147 |
+
(list 'error "Voice not currently loaded!"))
|
148 |
+
(list (list 'eq? 'currentMultiSynVoice (intern voice_variable))
|
149 |
+
(list 'error "Can't free current voice!"))
|
150 |
+
(list 't (list set! (intern voice_variable) 'nil))))))
|
151 |
+
nil)
|
152 |
+
|
153 |
+
(define (multisyn_load_voice_modules name srate backoff_rules base_dir module_list)
|
154 |
+
"(multisyn_add_module voice name srate backoff_rules base_dir module_list)
|
155 |
+
Add voice modules to a voice."
|
156 |
+
(let (voice)
|
157 |
+
(mapcar
|
158 |
+
(lambda (module_entry)
|
159 |
+
(let ((dirs (car module_entry))
|
160 |
+
(utt_list (load_utt_list (path-append base_dir
|
161 |
+
(cadr module_entry)))))
|
162 |
+
(if (null voice)
|
163 |
+
(set! voice (make_du_voice utt_list dirs srate))
|
164 |
+
(voice.addModule voice utt_list dirs srate))))
|
165 |
+
module_list)
|
166 |
+
(voice.setName voice name)
|
167 |
+
(if flattenVoice
|
168 |
+
(du_voice.setTargetCost voice "flat")
|
169 |
+
(du_voice.setTargetCost voice t))
|
170 |
+
(du_voice.setJoinCost voice t)
|
171 |
+
(format stderr "Please wait: Initialising multisyn voice.\n")
|
172 |
+
(voice.init voice)
|
173 |
+
(format stderr " Voice loaded successfully!\n")
|
174 |
+
(du_voice.set_ob_pruning_beam voice 0.25)
|
175 |
+
(du_voice.set_pruning_beam voice 0.25)
|
176 |
+
(du_voice.setDiphoneBackoff voice backoff_rules)
|
177 |
+
voice))
|
178 |
+
|
179 |
+
|
180 |
+
|
181 |
+
|
182 |
+
(define (define_current_voice_reset)
|
183 |
+
"(define_current_voice_reset)
|
184 |
+
Re-define (current_voice_reset) correctly."
|
185 |
+
(eval (list 'define
|
186 |
+
(list 'current_voice_reset)
|
187 |
+
(list 'multisyn_reset_globals))))
|
188 |
+
|
189 |
+
(define (multisyn_reset_globals)
|
190 |
+
"(multisyn_reset_globals)
|
191 |
+
Reset multisyn specific global variables."
|
192 |
+
(Param.set 'unisyn.window_symmetric 1))
|
193 |
+
|
194 |
+
|
195 |
+
(provide 'multisyn)
|
CosyVoice-ttsfrd/resource/festival/multisyn/multisyn_pauses.scm
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 2003, 2004 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Multisyn Pause module (Rob Clark and Korin Richmond)
|
35 |
+
;;;
|
36 |
+
;;;
|
37 |
+
|
38 |
+
(defvar BB_Pause "B_300")
|
39 |
+
(defvar B_Pause "B_150")
|
40 |
+
(defvar mB_Pause "B_150") ; shouldn't be used
|
41 |
+
|
42 |
+
(define (MultiSyn_Pauses utt)
|
43 |
+
"(MultiSyn_Pauses UTT)
|
44 |
+
Predict pause insertion in a Multisyn unit selection utterance structure."
|
45 |
+
(let ((words (utt.relation.items utt 'Word)) lastword tpname)
|
46 |
+
(if words
|
47 |
+
(begin
|
48 |
+
(insert_initial_pause utt) ;; always have a start pause
|
49 |
+
(set! lastword (car (last words)))
|
50 |
+
(mapcar
|
51 |
+
(lambda (w)
|
52 |
+
(let ((pbreak (item.feat w "pbreak"))
|
53 |
+
(emph (item.feat w "R:Token.parent.EMPH")))
|
54 |
+
(cond
|
55 |
+
((string-equal pbreak "BB")
|
56 |
+
(unitselection_pause_insert w BB_Pause))
|
57 |
+
((string-equal pbreak "mB")
|
58 |
+
(unitselection_pause_insert w mB_Pause))
|
59 |
+
((string-equal pbreak "B")
|
60 |
+
(unitselection_pause_insert w B_Pause)))))
|
61 |
+
words)
|
62 |
+
;; The embarassing bit. Remove any words labelled as punc or fpunc
|
63 |
+
(mapcar
|
64 |
+
(lambda (w)
|
65 |
+
(let ((pos (item.feat w "pos")))
|
66 |
+
(if (or (string-equal "punc" pos)
|
67 |
+
(string-equal "fpunc" pos))
|
68 |
+
(let ((pbreak (item.feat w "pbreak"))
|
69 |
+
(wp (item.relation w 'Phrase)))
|
70 |
+
(if (and (string-matches pbreak "BB?")
|
71 |
+
(item.relation.prev w 'Word))
|
72 |
+
(item.set_feat
|
73 |
+
(item.relation.prev w 'Word) "pbreak" pbreak))
|
74 |
+
(item.relation.remove w 'Word)
|
75 |
+
;; can't refer to w as we've just deleted it
|
76 |
+
(item.relation.remove wp 'Phrase)))))
|
77 |
+
words)))
|
78 |
+
;(utt.relation.print utt 'Word)
|
79 |
+
;(utt.relation.print utt 'Segment)
|
80 |
+
utt))
|
81 |
+
|
82 |
+
(define (unitselection_pause_insert word pause)
|
83 |
+
"(pause_insert word pause)
|
84 |
+
Insert segments needed for a pause."
|
85 |
+
(let ((silence (car (cadr (car (PhoneSet.description '(silences))))))
|
86 |
+
(seg (item.relation (find_last_seg word) 'Segment))
|
87 |
+
pause_item)
|
88 |
+
;(format stderr " inserting pause after: %s.\n" (item.name seg))
|
89 |
+
;(format stderr " Inserting pause\n")
|
90 |
+
; if next seg is not silence insert one.
|
91 |
+
(if (or (not (item.next seg))
|
92 |
+
(not (string-equal (item.name (item.next seg)) silence)))
|
93 |
+
(item.insert seg (list silence) 'after))
|
94 |
+
; insert pause after that if not the end.
|
95 |
+
(if (item.next (item.next seg))
|
96 |
+
(begin
|
97 |
+
(set! pause_item (item.insert (item.next seg) (list pause) 'after))
|
98 |
+
;if next seg after that is not silence add one.
|
99 |
+
(if (not (string-equal (item.name (item.next pause_item)) silence))
|
100 |
+
(item.insert pause_item (list silence) 'after))))))
|
101 |
+
|
102 |
+
(provide 'multisyn_pauses)
|
CosyVoice-ttsfrd/resource/festival/multisyn/radio_phones_multisyn.scm
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997,2003, 2004 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; A definition of the radio phone set used in the BU RADIO FM
|
35 |
+
;;; corpus, some people call this the darpa set. This one
|
36 |
+
;;; has the closures removed and pauses added for multisyn
|
37 |
+
;;;
|
38 |
+
|
39 |
+
(defPhoneSet
|
40 |
+
radio_multisyn
|
41 |
+
;;; Phone Features
|
42 |
+
(;; vowel or consonant
|
43 |
+
(vc + -)
|
44 |
+
;; vowel length: short long dipthong schwa
|
45 |
+
(vlng s l d a 0)
|
46 |
+
;; vowel height: high mid low
|
47 |
+
(vheight 1 2 3 0)
|
48 |
+
;; vowel frontness: front mid back
|
49 |
+
(vfront 1 2 3 0)
|
50 |
+
;; lip rounding
|
51 |
+
(vrnd + - 0)
|
52 |
+
;; consonant type: stop fricative affricate nasal lateral approximant
|
53 |
+
(ctype s f a n l r 0)
|
54 |
+
;; place of articulation: labial alveolar palatal labio-dental
|
55 |
+
;; dental velar glottal
|
56 |
+
(cplace l a p b d v g 0)
|
57 |
+
;; consonant voicing
|
58 |
+
(cvox + - 0)
|
59 |
+
)
|
60 |
+
;; Phone set members
|
61 |
+
(
|
62 |
+
;; multisyn extras
|
63 |
+
(# - 0 0 0 0 0 0 -) ;; slience ...
|
64 |
+
(B_10 - 0 0 0 0 0 0 -) ;; Pauses
|
65 |
+
(B_20 - 0 0 0 0 0 0 -) ;; Pauses
|
66 |
+
(B_30 - 0 0 0 0 0 0 -) ;; Pauses
|
67 |
+
(B_40 - 0 0 0 0 0 0 -) ;; Pauses
|
68 |
+
(B_50 - 0 0 0 0 0 0 -) ;; Pauses
|
69 |
+
(B_100 - 0 0 0 0 0 0 -) ;; Pauses
|
70 |
+
(B_150 - 0 0 0 0 0 0 -) ;; Pauses
|
71 |
+
(B_200 - 0 0 0 0 0 0 -) ;; Pauses
|
72 |
+
(B_250 - 0 0 0 0 0 0 -) ;; Pauses
|
73 |
+
(B_300 - 0 0 0 0 0 0 -) ;; Pauses
|
74 |
+
(B_400 - 0 0 0 0 0 0 -) ;; Pauses
|
75 |
+
|
76 |
+
;; Note these features were set by awb so they are wrong !!!
|
77 |
+
(aa + l 3 3 - 0 0 0) ;; father
|
78 |
+
(ae + s 3 1 - 0 0 0) ;; fat
|
79 |
+
(ah + s 2 2 - 0 0 0) ;; but
|
80 |
+
(ao + l 3 3 + 0 0 0) ;; lawn
|
81 |
+
(aw + d 3 2 - 0 0 0) ;; how
|
82 |
+
(ax + a 2 2 - 0 0 0) ;; about
|
83 |
+
(axr + a 2 2 - r a +)
|
84 |
+
(ay + d 3 2 - 0 0 0) ;; hide
|
85 |
+
(b - 0 0 0 0 s l +)
|
86 |
+
(ch - 0 0 0 0 a p -)
|
87 |
+
(d - 0 0 0 0 s a +)
|
88 |
+
(dh - 0 0 0 0 f d +)
|
89 |
+
(dx - a 0 0 0 s a +) ;; ??
|
90 |
+
(eh + s 2 1 - 0 0 0) ;; get
|
91 |
+
(el + s 0 0 0 l a +)
|
92 |
+
(em + s 0 0 0 n l +)
|
93 |
+
(en + s 0 0 0 n a +)
|
94 |
+
(er + a 2 2 - r 0 0) ;; always followed by r (er-r == axr)
|
95 |
+
(ey + d 2 1 - 0 0 0) ;; gate
|
96 |
+
(f - 0 0 0 0 f b -)
|
97 |
+
(g - 0 0 0 0 s v +)
|
98 |
+
(hh - 0 0 0 0 f g -)
|
99 |
+
(hv - 0 0 0 0 f g +)
|
100 |
+
(ih + s 1 1 - 0 0 0) ;; bit
|
101 |
+
(iy + l 1 1 - 0 0 0) ;; beet
|
102 |
+
(jh - 0 0 0 0 a p +)
|
103 |
+
(k - 0 0 0 0 s v -)
|
104 |
+
(l - 0 0 0 0 l a +)
|
105 |
+
(m - 0 0 0 0 n l +)
|
106 |
+
(n - 0 0 0 0 n a +)
|
107 |
+
(nx - 0 0 0 0 n d +) ;; ???
|
108 |
+
(ng - 0 0 0 0 n v +)
|
109 |
+
(ow + d 2 3 + 0 0 0) ;; lone
|
110 |
+
(oy + d 2 3 + 0 0 0) ;; toy
|
111 |
+
(p - 0 0 0 0 s l -)
|
112 |
+
(r - 0 0 0 0 r a +)
|
113 |
+
(s - 0 0 0 0 f a -)
|
114 |
+
(sh - 0 0 0 0 f p -)
|
115 |
+
(t - 0 0 0 0 s a -)
|
116 |
+
(th - 0 0 0 0 f d -)
|
117 |
+
(uh + s 1 3 + 0 0 0) ;; full
|
118 |
+
(uw + l 1 3 + 0 0 0) ;; fool
|
119 |
+
(v - 0 0 0 0 f b +)
|
120 |
+
(w - 0 0 0 0 r l +)
|
121 |
+
(y - 0 0 0 0 r p +)
|
122 |
+
(z - 0 0 0 0 f a +)
|
123 |
+
(zh - 0 0 0 0 f p +)
|
124 |
+
(pau - 0 0 0 0 0 0 -)
|
125 |
+
(h# - 0 0 0 0 0 0 -)
|
126 |
+
(brth - 0 0 0 0 0 0 -)
|
127 |
+
)
|
128 |
+
)
|
129 |
+
|
130 |
+
(PhoneSet.silences '(# pau h# brth))
|
131 |
+
|
132 |
+
(provide 'radio_phones_multisyn)
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
|
CosyVoice-ttsfrd/resource/festival/multisyn/send_xwaves.scm
ADDED
@@ -0,0 +1,318 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 2003, 2004 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; xwaves interface for festival for multisyn (Rob Clark)
|
35 |
+
;;;
|
36 |
+
;;; This is never loaded by defualt.
|
37 |
+
;;; You'd need to change the paths here for this to currently work outside of CSTR.
|
38 |
+
;;; If anyone else ends up using it let me know and I'll make it more robust.
|
39 |
+
;;;
|
40 |
+
|
41 |
+
;; Send commands to xwaves
|
42 |
+
|
43 |
+
(defvar send_xwaves_command "/cstr/linux/entropic/esps531.linux/bin/send_xwaves")
|
44 |
+
(defvar spectrogram_command "/cstr/linux/entropic/esps531.linux/bin/sgram")
|
45 |
+
(defvar data_path "/projects/cougar/data/cstr/nina")
|
46 |
+
|
47 |
+
(set! xw_object_count 0)
|
48 |
+
(set! xw_active_list nil)
|
49 |
+
|
50 |
+
;;
|
51 |
+
;; Display a synthesised utterance
|
52 |
+
;;
|
53 |
+
(define (xwaves_display_utterance utt)
|
54 |
+
"(xwaves_display_utterance utt)
|
55 |
+
Display join and target information for an utterance."
|
56 |
+
(let ((units (utt.relation.items utt 'Unit))
|
57 |
+
(object (xw_name_object))
|
58 |
+
wavfile specfile segfile diphfile joinfile targfile sourcefile timefile)
|
59 |
+
|
60 |
+
(set! wavfile (xw_make_tmp_filename object))
|
61 |
+
(set! specfile (xw_make_tmp_filename object))
|
62 |
+
(set! segfile (xw_make_tmp_filename object))
|
63 |
+
(set! diphfile (xw_make_tmp_filename object))
|
64 |
+
(set! joinfile (xw_make_tmp_filename object))
|
65 |
+
(set! targfile (xw_make_tmp_filename object))
|
66 |
+
(set! sourcefile (xw_make_tmp_filename object))
|
67 |
+
(set! timefile (xw_make_tmp_filename object))
|
68 |
+
|
69 |
+
; display resulting waveform
|
70 |
+
(utt.save.wave utt wavfile 'riff)
|
71 |
+
(xwaves_show_general object wavfile 1500 200 10 10)
|
72 |
+
; display resulting spectrogram
|
73 |
+
(xw_genspec wavfile specfile)
|
74 |
+
(xwaves_show_general object specfile 1500 400 10 260)
|
75 |
+
; segments
|
76 |
+
(utt.save.unit_selection_segs utt segfile)
|
77 |
+
(xwaves_show_labels object segfile specfile)
|
78 |
+
; Unit information
|
79 |
+
(utt.save.unit_selection_info utt diphfile joinfile targfile sourcefile timefile)
|
80 |
+
(xwaves_show_labels object timefile specfile)
|
81 |
+
(xwaves_show_labels object sourcefile specfile)
|
82 |
+
(xwaves_show_labels object targfile specfile)
|
83 |
+
(xwaves_show_labels object joinfile specfile)
|
84 |
+
(xwaves_show_labels object diphfile specfile)
|
85 |
+
; mark files
|
86 |
+
(xw_register_active object (list wavfile specfile segfile diphfile joinfile sourcefile timefile))
|
87 |
+
))
|
88 |
+
|
89 |
+
;;
|
90 |
+
;; Edit a diphone source
|
91 |
+
;;
|
92 |
+
|
93 |
+
(define (xwaves_edit_diphone utt id)
|
94 |
+
"(xwaves_edit_diphone utt id)
|
95 |
+
Access the source diphone for label correction."
|
96 |
+
(let ((diphone nil)
|
97 |
+
segfilename
|
98 |
+
wavefilename
|
99 |
+
(utt (Utterance Text nil))
|
100 |
+
segs
|
101 |
+
(seg nil)
|
102 |
+
(start 0)
|
103 |
+
end)
|
104 |
+
|
105 |
+
;; find unit.
|
106 |
+
(mapcar
|
107 |
+
(lambda (unit)
|
108 |
+
(if (string-equal (format nil "_%s" id) (item.feat unit id))
|
109 |
+
(set! diphone unit)))
|
110 |
+
(utt.relation.items utt 'Unit))
|
111 |
+
(if (null diphone)
|
112 |
+
(error (format nil "Diphone with id _%s not found in utterance.")))
|
113 |
+
(set! uttname (item.feat diphone "source_utt"))
|
114 |
+
(set! end (item.feat diphone "source_end"))
|
115 |
+
|
116 |
+
(set! segfilename (format nil "%s/lab/%s.lab" data_path uttname))
|
117 |
+
(set! wavefilename (format nil "%s/wav/%s.wav" data_path uttname))
|
118 |
+
(utt.relation.load utt 'Segment segfilename)
|
119 |
+
|
120 |
+
(set! segs (utt.relation.items utt 'Segment))
|
121 |
+
(while (and segs
|
122 |
+
(not (equal? (item.feat (car segs) "end") end)))
|
123 |
+
(set! segs (cdr segs)))
|
124 |
+
|
125 |
+
if null seg ...
|
126 |
+
|
127 |
+
(if (item.prev diphone)
|
128 |
+
(set! start (item.feat seg "start"))
|
129 |
+
(set! start 0))
|
130 |
+
|
131 |
+
|
132 |
+
))
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
;;
|
139 |
+
;; Interface with xwaves.
|
140 |
+
;;
|
141 |
+
|
142 |
+
|
143 |
+
(define (xwaves_show_general object file width height xpos ypos)
|
144 |
+
"(xwaves_show_general object file width height xpos ypos)
|
145 |
+
Display an wave or track file."
|
146 |
+
(xw_send (format nil "make name %s file %s width %d height %d loc_x %d loc_y %d" object file width height xpos ypos)))
|
147 |
+
|
148 |
+
(define (xwaves_show_wave object file)
|
149 |
+
"(xwaves_show_wave object file)
|
150 |
+
Display a waveform."
|
151 |
+
(xwaves_show_general object file 1500 200 10 10))
|
152 |
+
|
153 |
+
(define (xwaves_show_labels object file attachto)
|
154 |
+
"(xwaves_show_labels object file attachto)
|
155 |
+
Display a label file."
|
156 |
+
(xw_send (format nil "send make signal %s name %s file %s color 125" attachto object file))
|
157 |
+
(xw_send "send activate fields 1 2 3 4 5"))
|
158 |
+
|
159 |
+
|
160 |
+
(define (xwaves_attach_xlabel)
|
161 |
+
"(xwaves_attach_xlabel)
|
162 |
+
Attach xlabel to xwaves."
|
163 |
+
(xw_send "attach function xlabel"))
|
164 |
+
|
165 |
+
(define (xwaves_set_markers object left right)
|
166 |
+
"(xwaves_set_markers object left right)
|
167 |
+
Set the markers."
|
168 |
+
(xw_send (format nil "%s set l_marker_time %f" object left))
|
169 |
+
(xw_send (format nil "%s set r_marker_time %f" object right)))
|
170 |
+
|
171 |
+
(define (xwaves_bracket_markers object file)
|
172 |
+
"(xwaves_bracket_markers object file)
|
173 |
+
Bracket markers."
|
174 |
+
(xw_send (format nil "%s bracket file %s " object file)))
|
175 |
+
|
176 |
+
(define (xwaves_close_windows object)
|
177 |
+
"(xwaves_close_windows object)
|
178 |
+
Close currently open windows related to object or all if nil.."
|
179 |
+
(cond
|
180 |
+
((null object)
|
181 |
+
(xw_send "kill"))
|
182 |
+
(t
|
183 |
+
(xw_send (format nil "kill name %s" object))))
|
184 |
+
(xw_clear_active_list object))
|
185 |
+
|
186 |
+
|
187 |
+
(define (xwaves_wait)
|
188 |
+
"(xwaves_wait)
|
189 |
+
Wait for xwaves continue signal."
|
190 |
+
(xw_send "pause"))
|
191 |
+
|
192 |
+
|
193 |
+
;;
|
194 |
+
;; Object naming
|
195 |
+
;;
|
196 |
+
(define (xw_name_object)
|
197 |
+
"(xw_name_object)
|
198 |
+
Generate a name for this object."
|
199 |
+
(let (name)
|
200 |
+
(set! name (string-append "obj" xw_object_count))
|
201 |
+
(set! xw_object_count (+ xw_object_count 1))
|
202 |
+
name))
|
203 |
+
|
204 |
+
;;
|
205 |
+
;; Temp file lists
|
206 |
+
;;
|
207 |
+
|
208 |
+
(define (xw_clear_active_list object)
|
209 |
+
"(xw_clear_active_list)
|
210 |
+
Clear active list of specified object, or all if nil."
|
211 |
+
(let (new_active_list)
|
212 |
+
(mapcar
|
213 |
+
(lambda (objectlist)
|
214 |
+
(cond
|
215 |
+
((or (null object)
|
216 |
+
(string-equal object (car objectlist)))
|
217 |
+
(mapcar
|
218 |
+
(lambda (file)
|
219 |
+
(delete-file file))
|
220 |
+
(cadr objectlist)))
|
221 |
+
(t
|
222 |
+
(set! new_active_list (cons objectlist new_active_list)))))
|
223 |
+
xw_active_list)
|
224 |
+
(set! xw_active_list new_active_list))
|
225 |
+
nil)
|
226 |
+
|
227 |
+
|
228 |
+
(define (xw_register_active object flist)
|
229 |
+
"(xw_register_active object flist)
|
230 |
+
Adds an object and its filenames to the active list."
|
231 |
+
(set! xw_active_list (cons (cons object (list flist)) xw_active_list))
|
232 |
+
nil)
|
233 |
+
|
234 |
+
(define (xw_make_tmp_filename object)
|
235 |
+
"(xw_make_tmp_filename)
|
236 |
+
make tmp file name which incorporates object name."
|
237 |
+
(format nil "%s_%s" (make_tmp_filename) object))
|
238 |
+
|
239 |
+
|
240 |
+
;;
|
241 |
+
;; Low level xwaves stuff.
|
242 |
+
;;
|
243 |
+
|
244 |
+
(define (xw_genspec wavfile specfile)
|
245 |
+
"(xw_genspec wavfile specfile)
|
246 |
+
Generate a spectrogram file."
|
247 |
+
(system (format nil "%s -dHAMMING -o8 -E0.94 -S2 -w8 %s %s\n" spectrogram_command wavfile specfile)))
|
248 |
+
|
249 |
+
(define (xw_send command)
|
250 |
+
"(xw_send command)
|
251 |
+
Send a command to xwaves."
|
252 |
+
(system (format nil "%s %s\n" send_xwaves_command command)))
|
253 |
+
|
254 |
+
|
255 |
+
|
256 |
+
;;
|
257 |
+
;; General Festival stuff.
|
258 |
+
;;
|
259 |
+
|
260 |
+
|
261 |
+
(define (utt.save.unit_selection_segs utt filename)
|
262 |
+
"(utt.save.unit_selection_segs utt filename)
|
263 |
+
Save unit selection segments of UTT in a FILE in xlabel format."
|
264 |
+
(let ((fd (fopen filename "w")))
|
265 |
+
(format fd "#\n")
|
266 |
+
(mapcar
|
267 |
+
(lambda (info)
|
268 |
+
(format fd "%2.4f 100 %s\n" (car info) (car (cdr info))))
|
269 |
+
(utt.features utt 'Segment '(source_end name)))
|
270 |
+
(fclose fd)
|
271 |
+
utt))
|
272 |
+
|
273 |
+
(define (utt.save.unit_selection_info utt diphfile joinfile targfile sourcefile timefile)
|
274 |
+
"(utt.save.unit_selection_info utt diphfile joinfile targfile sourcefile timefile)
|
275 |
+
Save stuff in xlabel format."
|
276 |
+
(let ((fdd (fopen diphfile "w"))
|
277 |
+
(fdj (fopen joinfile "w"))
|
278 |
+
(fdt (fopen targfile "w"))
|
279 |
+
(fds (fopen sourcefile "w"))
|
280 |
+
(fdx (fopen timefile "w"))
|
281 |
+
real_join)
|
282 |
+
(format fdd "#\n")
|
283 |
+
(format fdj "#\n")
|
284 |
+
(format fdt "#\n")
|
285 |
+
(format fds "#\n")
|
286 |
+
(format fdx "#\n")
|
287 |
+
(mapcar
|
288 |
+
(lambda (unit)
|
289 |
+
(set! real_join "")
|
290 |
+
(if (item.next unit)
|
291 |
+
(if (not (string-equal (item.feat unit 'source_utt)
|
292 |
+
(item.feat (item.next unit) 'source_utt)))
|
293 |
+
(set! real_join "*")))
|
294 |
+
(format fdd "%2.4f 100 %s %s\n"
|
295 |
+
(item.feat unit 'end)
|
296 |
+
(item.feat unit 'name)
|
297 |
+
real_join)
|
298 |
+
(format fdj "%2.4f 100 %s\n"
|
299 |
+
(item.feat unit 'end)
|
300 |
+
(if (item.next unit)
|
301 |
+
(item.feat (item.next unit) 'join_cost)
|
302 |
+
0))
|
303 |
+
(format fdt "%2.4f 100 %s\n"
|
304 |
+
(item.feat unit 'end)
|
305 |
+
(item.feat unit 'target_cost))
|
306 |
+
(format fds "%2.4f 100 %s\n"
|
307 |
+
(item.feat unit 'end)
|
308 |
+
(item.feat unit 'source_utt))
|
309 |
+
(format fdx "%2.4f 100 %s\n"
|
310 |
+
(item.feat unit 'end)
|
311 |
+
(item.feat unit 'source_end)))
|
312 |
+
(utt.relation.items utt 'Unit))
|
313 |
+
(fclose fdd)
|
314 |
+
(fclose fdj)
|
315 |
+
(fclose fdt)
|
316 |
+
(fclose fds)
|
317 |
+
(fclose fdx)
|
318 |
+
utt))
|
CosyVoice-ttsfrd/resource/festival/multisyn/target_cost.scm
ADDED
@@ -0,0 +1,410 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 2003, 2004 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Multisyn scheme target cost (Rob Clark and Korin Richmond)
|
35 |
+
;;;
|
36 |
+
;;;
|
37 |
+
|
38 |
+
(define (Default_Target_Cost targ cand)
|
39 |
+
"(Default_Target_Cost targ cand)
|
40 |
+
A Default Target Cost function."
|
41 |
+
(let ((cost 0))
|
42 |
+
(mapcar
|
43 |
+
(lambda (row)
|
44 |
+
(set! cost (+ cost (tc_eval_row row targ cand))))
|
45 |
+
target_matrix)
|
46 |
+
(set! cost (/ cost target_matrix_weight))
|
47 |
+
cost))
|
48 |
+
|
49 |
+
|
50 |
+
(define (tc_eval_row row targ cand)
|
51 |
+
"(tc_eval_row row targ cand)
|
52 |
+
Evaluate a target matrix row."
|
53 |
+
(let ((weight (car row))
|
54 |
+
(func (cadr row))
|
55 |
+
(result 0))
|
56 |
+
(set! result (* weight (eval (list func targ cand))))
|
57 |
+
result))
|
58 |
+
|
59 |
+
;;
|
60 |
+
;; Target cost Matrix
|
61 |
+
;; '(weight function)
|
62 |
+
|
63 |
+
(define (get_matrix_weight m)
|
64 |
+
(let ((w 0))
|
65 |
+
(mapcar
|
66 |
+
(lambda (x)
|
67 |
+
(set! w (+ w (car x))))
|
68 |
+
m)
|
69 |
+
w))
|
70 |
+
|
71 |
+
|
72 |
+
(set! test_matrix_max_weight 1)
|
73 |
+
(set! test_matrix
|
74 |
+
'(
|
75 |
+
(10 tc_stress )
|
76 |
+
(5 tc_syl_pos )
|
77 |
+
(5 tc_word_pos)
|
78 |
+
(6 tc_partofspeech)
|
79 |
+
(7 tc_phrase_pos)
|
80 |
+
(4 tc_left_context)
|
81 |
+
(3 tc_right_context)
|
82 |
+
(25 tc_bad_f0) ;; set to equal 1/3 of total cost (so high because interaction with join)
|
83 |
+
; (0 tc_segment_score) ;; was 4. turned off until utterances are built for this.
|
84 |
+
(10 tc_bad_duration) ;; was 6
|
85 |
+
))
|
86 |
+
|
87 |
+
(set! test_matrix_weight (* test_matrix_max_weight (get_matrix_weight test_matrix)))
|
88 |
+
|
89 |
+
(set! target_matrix test_matrix)
|
90 |
+
(set! target_matrix_weight test_matrix_weight)
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
;;
|
95 |
+
;; tc_stress
|
96 |
+
;;
|
97 |
+
;; Compares stress on any vowel which form part of the diphone. stress
|
98 |
+
;; conditions must match for a zero target cost.
|
99 |
+
;;
|
100 |
+
|
101 |
+
(define (tc_stress targ cand)
|
102 |
+
"(tc_stress targ cand)
|
103 |
+
Target Cost stressed. 0 - stress patterns match [ compares: 0 unstressed vs. > 0 stressed ]
|
104 |
+
1 - stress miss-match.
|
105 |
+
"
|
106 |
+
(let ((c 0)
|
107 |
+
cand_stress targ_stress)
|
108 |
+
;(format t "my_is_vowel %l\n" (my_is_vowel targ))
|
109 |
+
;(format t "phone_is_silence %l\n" (phone_is_silence (item.feat targ 'name)))
|
110 |
+
;; For first segment
|
111 |
+
(if (and (not (phone_is_silence (item.feat targ 'name)))
|
112 |
+
(my_is_vowel targ))
|
113 |
+
(begin
|
114 |
+
(set! cand_stress (item.feat cand "R:SylStructure.parent.stress"))
|
115 |
+
(set! targ_stress (item.feat targ "R:SylStructure.parent.stress"))
|
116 |
+
(if (or (and (eq? cand_stress 0) (> targ_stress 0))
|
117 |
+
(and (eq? targ_stress 0) (> cand_stress 0)))
|
118 |
+
(set! c 1))))
|
119 |
+
;; For second segment
|
120 |
+
;(format t "n.my_is_vowel %l\n" (my_is_vowel (item.next targ)))
|
121 |
+
;(format t "n.phone_is_silence %l\n" (phone_is_silence (item.feat targ 'n.name)))
|
122 |
+
(if (and (not (phone_is_silence (item.feat targ 'n.name)))
|
123 |
+
(my_is_vowel (item.next targ)))
|
124 |
+
(begin
|
125 |
+
(set! cand_stress (item.feat cand "n.R:SylStructure.parent.stress"))
|
126 |
+
(set! targ_stress (item.feat targ "n.R:SylStructure.parent.stress"))
|
127 |
+
(if (or (and (eq? cand_stress 0) (> targ_stress 0))
|
128 |
+
(and (eq? targ_stress 0) (> cand_stress 0)))
|
129 |
+
(set! c 1))))
|
130 |
+
; (format t "tc_stress: %l\n" c)
|
131 |
+
c))
|
132 |
+
|
133 |
+
|
134 |
+
;;
|
135 |
+
;; tc_syl_position
|
136 |
+
;;
|
137 |
+
;; Find and compare diphone position in syllabic structure.
|
138 |
+
;; Values are: inter - diphone crosses syllable boundary.
|
139 |
+
;; initial - diphone is syllable initial.
|
140 |
+
;; medial - diphone is syllable medial
|
141 |
+
;; final - diphone is syllable final
|
142 |
+
;; returns 0 for a match 1 for a mismatch.
|
143 |
+
;;
|
144 |
+
(define (tc_syl_pos targ cand)
|
145 |
+
"(tc_syl_pos targ cand)
|
146 |
+
Score position in syllable."
|
147 |
+
(let ((targ_pos "medial")
|
148 |
+
(cand_pos "medial")
|
149 |
+
(targ_syl (get_syl targ))
|
150 |
+
(targ_next_syl (get_syl (item.next targ)))
|
151 |
+
(cand_syl (get_syl cand))
|
152 |
+
(cand_next_syl (get_syl (item.next cand))))
|
153 |
+
;; target
|
154 |
+
(cond
|
155 |
+
((not (equal? targ_syl targ_next_syl))
|
156 |
+
(set! targ_pos "inter"))
|
157 |
+
((not (equal? targ_syl (get_syl (item.prev targ))))
|
158 |
+
(set! targ_pos "initial"))
|
159 |
+
((not (equal? targ_next_syl (get_syl (item.next (item.next targ)))))
|
160 |
+
(set! targ_pos "final")))
|
161 |
+
;; candidate
|
162 |
+
(cond
|
163 |
+
((not (equal? cand_syl cand_next_syl))
|
164 |
+
(set! cand_pos "inter"))
|
165 |
+
((not (equal? cand_syl (get_syl (item.prev cand))))
|
166 |
+
(set! cand_pos "initial"))
|
167 |
+
((not (equal? cand_next_syl (get_syl (item.next (item.next cand)))))
|
168 |
+
(set! cand_pos "final")))
|
169 |
+
; (format t "targ_syl: %l cand_syl %l\n" targ_pos cand_pos)
|
170 |
+
(if (equal? targ_pos cand_pos) 0 1)))
|
171 |
+
|
172 |
+
;;
|
173 |
+
;; tc_word_position
|
174 |
+
;;
|
175 |
+
;; Find and compare diphone position in word structure
|
176 |
+
;; Values are: inter - diphone crosses word boundary.
|
177 |
+
;; initial - diphone is word initial.
|
178 |
+
;; medial - diphone is word medial
|
179 |
+
;; final - diphone is word final
|
180 |
+
;; returns 0 for a match 1 for a mismatch.
|
181 |
+
;;
|
182 |
+
(define (tc_word_pos targ cand)
|
183 |
+
"(tc_word_pos targ cand)
|
184 |
+
Score position in word."
|
185 |
+
(let ((targ_pos "medial")
|
186 |
+
(cand_pos "medial")
|
187 |
+
(targ_word (get_word targ))
|
188 |
+
(targ_next_word (get_word (item.next targ)))
|
189 |
+
(cand_word (get_word cand))
|
190 |
+
(cand_next_word (get_word (item.next cand))))
|
191 |
+
;; target
|
192 |
+
(cond
|
193 |
+
((not (equal? targ_word targ_next_word))
|
194 |
+
(set! targ_pos "inter"))
|
195 |
+
((not (equal? targ_word (get_word (item.prev targ))))
|
196 |
+
(set! targ_pos "initial"))
|
197 |
+
((not (equal? targ_next_word (get_word (item.next (item.next targ)))))
|
198 |
+
(set! targ_pos "final")))
|
199 |
+
;; candidate
|
200 |
+
(cond
|
201 |
+
((not (equal? cand_word cand_next_word))
|
202 |
+
(set! cand_pos "inter"))
|
203 |
+
((not (equal? cand_word (get_word (item.prev cand))))
|
204 |
+
(set! cand_pos "initial"))
|
205 |
+
((not (equal? cand_next_word (get_word (item.next (item.next cand)))))
|
206 |
+
(set! cand_pos "final")))
|
207 |
+
; (format t "targ_word: %l cand_word %l\n" targ_pos cand_pos)
|
208 |
+
(if (equal? targ_pos cand_pos) 0 1)))
|
209 |
+
|
210 |
+
|
211 |
+
|
212 |
+
;;
|
213 |
+
;; tc_phrase_position
|
214 |
+
;;
|
215 |
+
;; Position (of word) in phrase
|
216 |
+
;; initial/medial/final
|
217 |
+
;;
|
218 |
+
;; 0 - match, 1 - mismatch
|
219 |
+
;;
|
220 |
+
(define (tc_phrase_pos targ cand)
|
221 |
+
"(tc_phrase_pos targ cand)
|
222 |
+
Score position in phrase."
|
223 |
+
(let ((targ_word (get_word targ))
|
224 |
+
(cand_word (get_word cand)))
|
225 |
+
(cond
|
226 |
+
((and (null targ_word)
|
227 |
+
(null cand_word))
|
228 |
+
0)
|
229 |
+
((or (null targ_word)
|
230 |
+
(null cand_word))
|
231 |
+
1)
|
232 |
+
((string-equal (item.feat targ_word 'pbreak)
|
233 |
+
(item.feat cand_word 'pbreak))
|
234 |
+
0)
|
235 |
+
(t 1))))
|
236 |
+
|
237 |
+
;;
|
238 |
+
;; tc_partofspeech
|
239 |
+
;;
|
240 |
+
;;
|
241 |
+
;;
|
242 |
+
(define (tc_partofspeech targ cand)
|
243 |
+
"(tc_partofspeech targ cand)
|
244 |
+
Score part of speech."
|
245 |
+
(let ((targ_word (get_word targ))
|
246 |
+
(cand_word (get_word cand))
|
247 |
+
targ_pos cand_pos)
|
248 |
+
(if targ_word
|
249 |
+
(set! targ_pos (simple_pos (item.feat targ_word 'pos))))
|
250 |
+
(if cand_word
|
251 |
+
(set! cand_pos (simple_pos (item.feat cand_word 'pos))))
|
252 |
+
;(format t "targ_pos %l cand_pos %l\n" targ_pos cand_pos)
|
253 |
+
(if (equal? targ_pos cand_pos) 0 1)))
|
254 |
+
|
255 |
+
(define (score_contexts targ_context cand_context)
|
256 |
+
"(score_contexts targ_context cand_context)
|
257 |
+
If both context items are nil, then score is 0.
|
258 |
+
If both context items are not nil, and are the same, then
|
259 |
+
score is 0. Otherwise, score is 1."
|
260 |
+
(if (and targ_context cand_context)
|
261 |
+
(if (equal? (item.feat targ_context "name")
|
262 |
+
(item.feat cand_context "name"))
|
263 |
+
0
|
264 |
+
1)
|
265 |
+
(if (and (equal? targ_context nil)
|
266 |
+
(equal? cand_context nil))
|
267 |
+
0
|
268 |
+
1)))
|
269 |
+
|
270 |
+
|
271 |
+
(define (tc_left_context targ cand)
|
272 |
+
"(tc_left_context targ cand)
|
273 |
+
Score left phonetic context."
|
274 |
+
(let ((targ_context (item.prev targ))
|
275 |
+
(cand_context (item.prev cand)))
|
276 |
+
(score_contexts targ_context cand_context)))
|
277 |
+
|
278 |
+
;;
|
279 |
+
;; tc_right_context
|
280 |
+
;;
|
281 |
+
;;
|
282 |
+
;;
|
283 |
+
(define (tc_right_context targ cand)
|
284 |
+
"(tc_right_context targ cand)
|
285 |
+
Score right phonetic context."
|
286 |
+
(let ((targ_context (item.next (item.next targ)))
|
287 |
+
(cand_context (item.next (item.next cand))))
|
288 |
+
(score_contexts targ_context cand_context)))
|
289 |
+
|
290 |
+
|
291 |
+
;;
|
292 |
+
;; tc_segment_score
|
293 |
+
;;
|
294 |
+
;; This currently thresholds based on looking at the distributions of the scores.
|
295 |
+
;; A nice exp function may be better.
|
296 |
+
(define (tc_segment_score targ cand)
|
297 |
+
"tc_segment_score targ cand)
|
298 |
+
A bad alignment score make a bad segment."
|
299 |
+
(let ((score 0))
|
300 |
+
(if (not (phone_is_silence (item.feat cand "name")))
|
301 |
+
(set! score (+ score (item.feat cand 'score))))
|
302 |
+
(if (not (phone_is_silence (item.feat (item.next cand) "name")))
|
303 |
+
(set! score (+ score (item.feat (item.next cand) 'score))))
|
304 |
+
(cond
|
305 |
+
((> score -4000) ;2000 (x2) is 7.5%
|
306 |
+
0)
|
307 |
+
((> score -5000) ;2500 (x2) is 5.0%
|
308 |
+
0.5)
|
309 |
+
(t 1))))
|
310 |
+
|
311 |
+
;;
|
312 |
+
;; tc_bad_duration
|
313 |
+
;;
|
314 |
+
;; If the segment is marked as having a weird duration penalise it.
|
315 |
+
;; We allow bad_dur to be set on the target so resynthesis works
|
316 |
+
;; and so you could ask for really long/short segments.
|
317 |
+
;;
|
318 |
+
(define (tc_bad_duration targ cand)
|
319 |
+
(if (equal? (item.feat targ "bad_dur")
|
320 |
+
(item.feat cand "bad_dur"))
|
321 |
+
0
|
322 |
+
1))
|
323 |
+
|
324 |
+
|
325 |
+
;;
|
326 |
+
;; tc_bad_f0
|
327 |
+
;;
|
328 |
+
;; If the candidate is deemed to have an inappropriate f0, then penalise it.
|
329 |
+
;;
|
330 |
+
;; Specifically, if the targ/cand segment type is expected to be voiced, then
|
331 |
+
;; an f0 of zero is bad (results from poor pitch tracking). In such a case,
|
332 |
+
;; the join cost would then favour other units with f0 (since the euclidean
|
333 |
+
;; distance between two zeros is very small ;)
|
334 |
+
;; We want to avoid that.
|
335 |
+
;;
|
336 |
+
;; Presumeably, we also want to penalise cases where supposedly voiceless
|
337 |
+
;; candidates have an f0 != 0 (either a consequence of bad pitch tracking
|
338 |
+
;; or bad labelling) but that's not done here yet...
|
339 |
+
;;
|
340 |
+
;; (the function itself has been implemented in C for convenience, and
|
341 |
+
;; this stub is left here just for this note ;)
|
342 |
+
|
343 |
+
(define (tc_bad_f0 targ cand)
|
344 |
+
(let ((score (temp_tc_bad_f0 targ cand))
|
345 |
+
(name (format nil "%s_%s"
|
346 |
+
(item.feat targ "name")
|
347 |
+
(item.feat (item.next targ) "name"))))
|
348 |
+
(if (not (equal? score 0.0))
|
349 |
+
(format t "f0 score for %s is %f\n" name score))
|
350 |
+
score))
|
351 |
+
|
352 |
+
;;
|
353 |
+
;; Is a segment a vowel? ( ph_is_a_vowel doesn't seem to work)
|
354 |
+
;;
|
355 |
+
(define (my_is_vowel seg)
|
356 |
+
(if seg
|
357 |
+
(if (equal? (item.feat seg 'ph_vc) "+")
|
358 |
+
t
|
359 |
+
nil)))
|
360 |
+
|
361 |
+
|
362 |
+
|
363 |
+
;; get the syllable from sysstructure in normal utterance
|
364 |
+
;;
|
365 |
+
(define (get_syl seg)
|
366 |
+
(let (syl)
|
367 |
+
(if seg
|
368 |
+
(set! syl (item.relation.parent seg 'SylStructure)))
|
369 |
+
syl))
|
370 |
+
|
371 |
+
;; get the word from sylstructure in normal utterance
|
372 |
+
;;
|
373 |
+
(define (get_word seg)
|
374 |
+
(let ((syl (get_syl seg))
|
375 |
+
word)
|
376 |
+
(if syl
|
377 |
+
(set! word (item.parent syl)))
|
378 |
+
word))
|
379 |
+
|
380 |
+
|
381 |
+
;; simple pos
|
382 |
+
;;
|
383 |
+
(define (simple_pos pos)
|
384 |
+
(let (spos)
|
385 |
+
(cond
|
386 |
+
((member_string pos '(vbd vb vbn vbz vbp vbg))
|
387 |
+
(set! spos "v"))
|
388 |
+
((member_string pos '(nn nnp nns nnps fw sym ls))
|
389 |
+
(set! spos "n"))
|
390 |
+
((member_string pos '(dt gin prp cc of to cd md pos wdt wp wrb ex uh pdt))
|
391 |
+
(set! spos "func"))
|
392 |
+
((member_string pos '(jj jjr jjs 1 2 rb rp rbr rbs))
|
393 |
+
(set! spos "other")))
|
394 |
+
spos))
|
395 |
+
|
396 |
+
|
397 |
+
;; debugging
|
398 |
+
|
399 |
+
(define (test_target_cost utt1 utt2)
|
400 |
+
(let ((segs1 (utt.relation.items utt1 'Segment))
|
401 |
+
(segs2 (utt.relation.items utt2 'Segment))
|
402 |
+
(tc 0))
|
403 |
+
(while (and segs1 segs2)
|
404 |
+
(set! tc (Default_Target_Cost (car segs1) (car segs2)))
|
405 |
+
(format t "targ: %l cand: %l cost: %l\n" (item.name (car segs1)) (item.name (car segs2)) tc)
|
406 |
+
(set! segs1 (cdr segs1))
|
407 |
+
(set! segs2 (cdr segs2)))))
|
408 |
+
|
409 |
+
|
410 |
+
(provide 'target_cost)
|
CosyVoice-ttsfrd/resource/festival/phoneset.scm
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1999 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;; Author: Alan W Black
|
34 |
+
;;; Date: April 1999
|
35 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
36 |
+
;;;
|
37 |
+
;;; Support code for phone set definitions
|
38 |
+
;;;
|
39 |
+
|
40 |
+
(defmac (defPhoneSet form)
|
41 |
+
(list 'defPhoneSet_real
|
42 |
+
(list 'quote (cadr form))
|
43 |
+
(list 'quote (car (cddr form)))
|
44 |
+
(list 'quote (cadr (cddr form)))))
|
45 |
+
|
46 |
+
(define (defPhoneSet_real name featdefs phones)
|
47 |
+
"(defPhoneSet NAME FEATTYPES PHONES)
|
48 |
+
Define a phone set with given name, feature types and
|
49 |
+
list of phones. This also selects name as the current phoneset."
|
50 |
+
(let (info)
|
51 |
+
(if (not (eq? 'Features (car featdefs)))
|
52 |
+
(begin
|
53 |
+
;; Old format that has the same number of phone features for
|
54 |
+
;; all phones
|
55 |
+
(set! info
|
56 |
+
(mapcar
|
57 |
+
(lambda (ph)
|
58 |
+
(let ((fvs
|
59 |
+
(mapcar
|
60 |
+
list
|
61 |
+
(mapcar car featdefs)
|
62 |
+
(cdr ph))))
|
63 |
+
(ps_check_fvals
|
64 |
+
(cons (car ph) (cons (list 'type t) fvs))
|
65 |
+
(cons t fvs))
|
66 |
+
(list (car ph) fvs)))
|
67 |
+
phones)))
|
68 |
+
;; else
|
69 |
+
;; New format where types are specified so phones may have
|
70 |
+
;; different features
|
71 |
+
(set! info
|
72 |
+
(mapcar
|
73 |
+
(lambda (ph)
|
74 |
+
(let ((fvs
|
75 |
+
(cons
|
76 |
+
(list 'type (cadr ph))
|
77 |
+
(mapcar
|
78 |
+
list
|
79 |
+
(mapcar car (cdr (assoc (cadr ph) (cdr featdefs))))
|
80 |
+
(cddr ph)))))
|
81 |
+
(ps_check_fvals
|
82 |
+
(cons (car ph) fvs)
|
83 |
+
(assoc (cadr ph) (cdr featdefs)))
|
84 |
+
(list (car ph) fvs)))
|
85 |
+
(cdr phones))))
|
86 |
+
(Param.set
|
87 |
+
(string-append "phonesets." name)
|
88 |
+
info)
|
89 |
+
(PhoneSet.select name)
|
90 |
+
(list name info)))
|
91 |
+
|
92 |
+
(define (ps_check_fvals fvs featdefs)
|
93 |
+
"(ps_check_fvals fvs featdefs)
|
94 |
+
Check that feature values in a phone definition are in the defined
|
95 |
+
set of possibles."
|
96 |
+
(mapcar
|
97 |
+
(lambda (fp)
|
98 |
+
(let ((def (cdr (assoc (car fp) (cdr featdefs)))))
|
99 |
+
(cond
|
100 |
+
((not def)
|
101 |
+
(error "Phoneset definition: phone has no defined type" fvs))
|
102 |
+
((not (member_string (car (cdr fp)) def))
|
103 |
+
(error
|
104 |
+
(format nil "Phoneset definition: phone feature %l is undefined" fp) fvs)))))
|
105 |
+
(cdr (cdr fvs))))
|
106 |
+
|
107 |
+
(define (PhoneSet.select name)
|
108 |
+
"(PhoneSet.select name)
|
109 |
+
Select named phonset as current."
|
110 |
+
(if (feats.present Param (string-append "phonesets." name))
|
111 |
+
(Param.set "phoneset" (Param.get (string-append "phonesets." name)))
|
112 |
+
(error "no phoneset defined: " name)))
|
113 |
+
|
114 |
+
(define (PhoneSet.description name)
|
115 |
+
"(PhoneSet.description)
|
116 |
+
Return (lisp) representation of current phoneset."
|
117 |
+
(feats.tolisp (Param.get "phoneset")))
|
118 |
+
|
119 |
+
(define (PhoneSet.list)
|
120 |
+
"(PhoneSet.list)
|
121 |
+
List of the names of the currently defined phonesets."
|
122 |
+
;; This isn't a particularly efficient way to get the answer
|
123 |
+
(mapcar car (feats.tolisp (Param.get "phonesets"))))
|
124 |
+
|
125 |
+
(define (PhoneSet.silences sils)
|
126 |
+
"(PhoneSet.silences SILLIST)
|
127 |
+
Define the silence phones for the currently selected phoneset."
|
128 |
+
(Param.set "phoneset.silences" sils))
|
129 |
+
|
130 |
+
(provide 'phoneset)
|
131 |
+
|
132 |
+
|
133 |
+
|
134 |
+
|
CosyVoice-ttsfrd/resource/festival/phrase.scm
ADDED
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Phrase boundary prediction.
|
35 |
+
;;;
|
36 |
+
;;; Two methods supported, if POS is enabled we use ngrams for that
|
37 |
+
;;; otherwise we use a CART tree
|
38 |
+
;;;
|
39 |
+
;;; Models trained from the IBM/Lancaster Spoken English Corpus and
|
40 |
+
;;; Boston University's FM Radio Corpus.
|
41 |
+
|
42 |
+
;;;
|
43 |
+
;;; Here's a very simple CART tree for predicting phrase breaks
|
44 |
+
;;; based on punctuation only
|
45 |
+
;;;
|
46 |
+
(set! simple_phrase_cart_tree
|
47 |
+
'
|
48 |
+
((lisp_token_end_punc in ("?" "." ":"))
|
49 |
+
((BB))
|
50 |
+
((lisp_token_end_punc in ("'" "\"" "," ";"))
|
51 |
+
((B))
|
52 |
+
((n.name is 0) ;; end of utterance
|
53 |
+
((BB))
|
54 |
+
((NB))))))
|
55 |
+
|
56 |
+
(define (token_end_punc word)
|
57 |
+
"(token_end_punc UTT WORD)
|
58 |
+
If punctuation at end of related Token and if WORD is last word
|
59 |
+
in Token return punc, otherwise 0."
|
60 |
+
(if (item.relation.next word "Token")
|
61 |
+
"0"
|
62 |
+
(item.feat word "R:Token.parent.punc")))
|
63 |
+
|
64 |
+
;;; This is a simple CART tree used after boundaries are predicted
|
65 |
+
;;; by the probabilistic method to get two levels of break
|
66 |
+
(set! english_phrase_type_tree
|
67 |
+
'((pbreak is NB)
|
68 |
+
((num_break is 1)
|
69 |
+
((mB))
|
70 |
+
((R:Token.parent.EMPH is 1)
|
71 |
+
((NB))
|
72 |
+
((n.R:Token.parent.EMPH is 1)
|
73 |
+
((NB))
|
74 |
+
((NB)))))
|
75 |
+
((pbreak is BB)
|
76 |
+
((BB))
|
77 |
+
((pbreak is mB)
|
78 |
+
((mB))
|
79 |
+
((name in ("." "!" "?"));; only (potentially) change Bs to BBs
|
80 |
+
((BB))
|
81 |
+
((B)))))))
|
82 |
+
|
83 |
+
(set! f2b_phrase_cart_tree
|
84 |
+
'
|
85 |
+
((gpos is punc)
|
86 |
+
(((1 0.00238095) (3 0) (4 0.997619) B))
|
87 |
+
(((4 0.00238095) (3 0) (1 0.997619) NB))))
|
88 |
+
|
89 |
+
;;; For more detailed prediction of phrase breaks we use POS and
|
90 |
+
;;; probability distribution of breaks
|
91 |
+
;;; These models were trained using data from the Lancaster/IBM
|
92 |
+
;;; Spoken English Corpus
|
93 |
+
|
94 |
+
(require 'pos) ;; for part of speech map
|
95 |
+
|
96 |
+
(defvar pbreak_ngram_dir libdir
|
97 |
+
"pbreak_ngram_dir
|
98 |
+
The directory containing the ngram models for predicting phrase
|
99 |
+
breaks. By default this is the standard library directory.")
|
100 |
+
|
101 |
+
(defvar english_phr_break_params
|
102 |
+
(list
|
103 |
+
;; The name and filename off the ngram with the a priori ngram model
|
104 |
+
;; for predicting phrase breaks in the Phrasify module. This model should
|
105 |
+
;; predict probability distributions for B and NB given some context of
|
106 |
+
;; part of speech tags.
|
107 |
+
(list 'pos_ngram_name 'english_break_pos_ngram)
|
108 |
+
(list 'pos_ngram_filename
|
109 |
+
(path-append pbreak_ngram_dir "sec.ts20.quad.ngrambin"))
|
110 |
+
;; The name and filename of the ngram containing the a posteriori ngram
|
111 |
+
;; for predicting phrase breaks in the Phrasify module. This module should
|
112 |
+
;; predict probability distributions for B and NB given previous B and
|
113 |
+
;; NBs.
|
114 |
+
(list 'break_ngram_name 'english_break_ngram)
|
115 |
+
(list 'break_ngram_filename
|
116 |
+
(path-append pbreak_ngram_dir "sec.B.hept.ngrambin"))
|
117 |
+
;; A weighting factor for breaks in the break/non-break ngram.
|
118 |
+
(list 'gram_scale_s 0.05)
|
119 |
+
;; When Phrase_Method is prob_models, this tree, if set is used to
|
120 |
+
;; potentially predict phrase type. At least some prob_models only
|
121 |
+
;; predict B or NB, this tree may be used to change some Bs into
|
122 |
+
;; BBs. If it is nil, the pbreak value predicted by prob_models
|
123 |
+
;; remains the same.
|
124 |
+
(list 'phrase_type_tree english_phrase_type_tree)
|
125 |
+
;; A list of tags used in identifying breaks. Typically B and NB (and
|
126 |
+
;; BB). This should be the alphabet of the ngram identified in
|
127 |
+
;; break_ngram_name
|
128 |
+
(list 'break_tags '(B NB))
|
129 |
+
(list 'pos_map english_pos_map_wp39_to_wp20)
|
130 |
+
)
|
131 |
+
"english_phr_break_params
|
132 |
+
Parameters for English phrase break statistical model.")
|
133 |
+
|
134 |
+
(defvar phr_break_params nil
|
135 |
+
"phr_break_params
|
136 |
+
Parameters for phrase break statistical model. This is typcal set by
|
137 |
+
a voice selection function to the parameters for a particular model.")
|
138 |
+
|
139 |
+
;;;
|
140 |
+
;;; Declaration of some features
|
141 |
+
;;;
|
142 |
+
|
143 |
+
(def_feature_docstring
|
144 |
+
'Word.pbreak
|
145 |
+
"Word.pbreak
|
146 |
+
Result from statistical phrasing module, may be B or NB denoting
|
147 |
+
phrase break or non-phrase break after the word.")
|
148 |
+
|
149 |
+
(def_feature_docstring
|
150 |
+
'Word.pbreak_score
|
151 |
+
"Word.pbreak_score
|
152 |
+
Log likelihood score from statistical phrasing module, for pbreak
|
153 |
+
value.")
|
154 |
+
|
155 |
+
(def_feature_docstring
|
156 |
+
'Word.blevel
|
157 |
+
"Word.blevel
|
158 |
+
A crude translation of phrase break into ToBI like phrase level.
|
159 |
+
Values may be 0,1,2,3,4.")
|
160 |
+
|
161 |
+
(define (Phrasify utt)
|
162 |
+
"(Phrasify utt)
|
163 |
+
Construct phrasify over Words module."
|
164 |
+
(let ((rval (apply_method 'Phrasify_Method utt)))
|
165 |
+
(cond
|
166 |
+
(rval rval) ;; new style
|
167 |
+
(t
|
168 |
+
(Classic_Phrasify utt)))))
|
169 |
+
|
170 |
+
|
171 |
+
(provide 'phrase)
|
CosyVoice-ttsfrd/resource/festival/pos.scm
ADDED
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; A part of speech tagger
|
35 |
+
;;;
|
36 |
+
|
37 |
+
(set! english_guess_pos
|
38 |
+
'((in of for in on that with by at from as if that against about
|
39 |
+
before because if under after over into while without
|
40 |
+
through new between among until per up down)
|
41 |
+
(to to)
|
42 |
+
(det the a an no some this that each another those every all any
|
43 |
+
these both neither no many)
|
44 |
+
(md will may would can could should must ought might)
|
45 |
+
(cc and but or plus yet nor)
|
46 |
+
(wp who what where how when)
|
47 |
+
(pps her his their its our their its mine)
|
48 |
+
(aux is am are was were has have had be)
|
49 |
+
(punc "." "," ":" ";" "\"" "'" "(" "?" ")" "!" "[" "]" "{" "}")
|
50 |
+
))
|
51 |
+
|
52 |
+
(defvar guess_pos english_guess_pos
|
53 |
+
"guess_pos
|
54 |
+
An assoc-list of simple part of speech tag to list of words in that
|
55 |
+
class. This basically only contains closed class words all other
|
56 |
+
words may be assumed to be content words. This was built from information
|
57 |
+
in the f2b database and is used by the ffeature gpos.")
|
58 |
+
|
59 |
+
;;; A more elaborate part of speech tagger using ngrams works but
|
60 |
+
;;; at present requires a large list of a priori probabilities
|
61 |
+
;;; to work. If that file exists on your system we'll use it otherwise
|
62 |
+
;;; POS is guessed by the lexicon
|
63 |
+
|
64 |
+
;;; These models were build from the Penn TreeBank, WSJ corpus
|
65 |
+
|
66 |
+
(defvar pos_model_dir lexdir
|
67 |
+
"pos_model_dir
|
68 |
+
The directory contains the various models for the POS module. By
|
69 |
+
default this is the same directory as lexdir. The directory should
|
70 |
+
contain two models: a part of speech lexicon with reverse log probabilities
|
71 |
+
and an ngram model for the same part of speech tag set.")
|
72 |
+
|
73 |
+
(defvar pos_p_start_tag "punc"
|
74 |
+
"pos_p_start_tag
|
75 |
+
This variable's value is the tag most likely to appear before
|
76 |
+
the start of a sentence. It is used when looking for pos context
|
77 |
+
before an utterance. Typically it should be some type of punctuation
|
78 |
+
tag.")
|
79 |
+
|
80 |
+
(defvar pos_pp_start_tag "n"
|
81 |
+
"pos_pp_start_tag
|
82 |
+
This variable's value is the tag most likely to appear before
|
83 |
+
pos_p_start_tag and any position preceding that. It is typically
|
84 |
+
some type of noun tag. This is used to provide pos context for
|
85 |
+
early words in an utterance.")
|
86 |
+
|
87 |
+
(defvar pos_supported nil
|
88 |
+
"pos_supported
|
89 |
+
If set to non-nil use part of speech prediction, if nil just get
|
90 |
+
pos information from the lexicon.")
|
91 |
+
|
92 |
+
(defvar pos_ngram_name nil
|
93 |
+
"pos_ngram_name
|
94 |
+
The name of a loaded ngram containing the a posteriori ngram model for
|
95 |
+
predicting part of speech. The a priori model is held as a
|
96 |
+
lexicon call poslex.")
|
97 |
+
|
98 |
+
(defvar pos_map nil
|
99 |
+
"pos_map
|
100 |
+
If set this should be a reverse assoc-list mapping on part of speech
|
101 |
+
tag set to another. It is used after using the defined POS models to
|
102 |
+
map the pos feature on each word to a new tagset.")
|
103 |
+
|
104 |
+
;;;
|
105 |
+
;;; All the names here don't really allow multiple versions
|
106 |
+
;;; they should be prefixed with english_
|
107 |
+
;;;
|
108 |
+
|
109 |
+
(if (probe_file (path-append pos_model_dir "wsj.wp39.poslexR"))
|
110 |
+
(begin
|
111 |
+
(lex.create "english_poslex")
|
112 |
+
(lex.set.compile.file
|
113 |
+
(path-append pos_model_dir "wsj.wp39.poslexR"))
|
114 |
+
(lex.set.phoneset "mrpa")
|
115 |
+
(lex.set.lts.method nil)
|
116 |
+
(set! pos_lex_name "english_poslex")
|
117 |
+
(set! pos_p_start_tag "punc")
|
118 |
+
(set! pos_pp_start_tag "nn")
|
119 |
+
;; wp39
|
120 |
+
(lex.add.entry '("_OOV_" ((nnp -2.9144) (jj -2.7357) (nn -3.5787)
|
121 |
+
(nns -3.4933) (vbn -3.2486) (vbg -2.9419)
|
122 |
+
(vb -3.5471) (vbd -3.7896) (vbz -3.7820)
|
123 |
+
(rb -4.1940) (vbp -3.2755) (nnps -2.1605))
|
124 |
+
()))
|
125 |
+
(lex.add.entry '("_number_"
|
126 |
+
((cd -0.35202) (jj -4.1083) (nns -6.4488) (nnp -7.3595))
|
127 |
+
() ))
|
128 |
+
(lex.add.entry '("," ((punc -0.88488)) () ))
|
129 |
+
(lex.add.entry '("." ((punc -1.1104)) () ))
|
130 |
+
(lex.add.entry '(":" ((punc -4.4236)) () ))
|
131 |
+
(lex.add.entry '("``" ((punc -2.7867)) () ))
|
132 |
+
(lex.add.entry '("`" ((punc -2.7867)) () ))
|
133 |
+
(lex.add.entry '("'" ((punc -2.7867)) () ))
|
134 |
+
(lex.add.entry '("\"" ((punc -2.7867)) () ))
|
135 |
+
(lex.add.entry '("[" ((punc -2.7867)) () ))
|
136 |
+
(lex.add.entry '("]" ((punc -2.7867)) () ))
|
137 |
+
(lex.add.entry '("{" ((punc -2.7867)) () ))
|
138 |
+
(lex.add.entry '("}" ((punc -2.7867)) () ))
|
139 |
+
;; wp17
|
140 |
+
;; (lex.add.entry '("_OOV_" ((n -3.4109) (j -2.7892) (v -3.7426)) ()))
|
141 |
+
; (lex.add.entry '("_OOV_" ((n -1.968) (j -2.351) (v -2.287)) ()))
|
142 |
+
; (lex.add.entry '("_number_" ((j -0.35202)) ()))
|
143 |
+
; (lex.add.entry '("," ((punc -0.88359)) () ))
|
144 |
+
; (lex.add.entry '("." ((punc -1.1101)) () ))
|
145 |
+
; (lex.add.entry '(":" ((punc -4.4236)) () ))
|
146 |
+
; (lex.add.entry '("``" ((punc -2.7867)) () ))
|
147 |
+
; (lex.add.entry '("`" ((punc -2.7867)) () ))
|
148 |
+
; (lex.add.entry '("'" ((punc -2.7867)) () ))
|
149 |
+
; (lex.add.entry '("\"" ((punc -2.7867)) () ))
|
150 |
+
;; wp22
|
151 |
+
; (lex.add.entry '("_OOV_" ((n -3.4109) (j -2.7892) (v -3.7426)) ()))
|
152 |
+
; (lex.add.entry '("_number_" ((cd -0.35202) (j -4.1908) (n -7.3890)) ()))
|
153 |
+
; (lex.add.entry '("," ((punc -0.88359)) () ))
|
154 |
+
; (lex.add.entry '("." ((punc -1.1101)) () ))
|
155 |
+
; (lex.add.entry '(":" ((punc -4.4236)) () ))
|
156 |
+
; (lex.add.entry '("``" ((punc -2.7867)) () ))
|
157 |
+
;; wp18
|
158 |
+
; (lex.add.entry '("_OOV_" ((n -3.4109) (j -2.7892) (v -3.7426)) ()))
|
159 |
+
; (lex.add.entry '("_number_" ((j -0.35202)) ()))
|
160 |
+
; (lex.add.entry '("`" ((punc -6.539) ) () ))
|
161 |
+
; (lex.add.entry '("``" ((punc -2.399) ) () ))
|
162 |
+
; (lex.add.entry '("," ((punc -0.480) ) () ))
|
163 |
+
; (lex.add.entry '("." ((fpunc -0.012) ) () ))
|
164 |
+
; (lex.add.entry '(":" ((punc -4.100) ) () ))
|
165 |
+
|
166 |
+
(ngram.load 'english_pos_ngram
|
167 |
+
(path-append pos_model_dir "wsj.wp39.tri.ngrambin"))
|
168 |
+
; (ngram.load 'english_pos_ngram
|
169 |
+
; (path-append pos_model_dir "wsj.wp45.tri.ngram"))
|
170 |
+
(set! pos_supported t)
|
171 |
+
)
|
172 |
+
(set! pos_supported nil))
|
173 |
+
|
174 |
+
(setq english_pos_map_wp39_to_wp20
|
175 |
+
'(
|
176 |
+
(( vbd vb vbn vbz vbp vbg ) v)
|
177 |
+
(( nn nnp nns nnps fw sym ls ) n)
|
178 |
+
(( dt ) dt)
|
179 |
+
(( punc fpunc ) punc)
|
180 |
+
(( in ) in)
|
181 |
+
(( jj jjr jjs 1 2 ) j)
|
182 |
+
(( prp ) prp)
|
183 |
+
(( rb rp rbr rbs ) r)
|
184 |
+
(( cc ) cc)
|
185 |
+
(( of ) of)
|
186 |
+
(( to ) to)
|
187 |
+
(( cd ) cd)
|
188 |
+
(( md ) md)
|
189 |
+
(( pos ) pos)
|
190 |
+
(( wdt ) wdt)
|
191 |
+
(( wp ) wp)
|
192 |
+
(( wrb ) wrb)
|
193 |
+
(( ex ) ex)
|
194 |
+
(( uh ) uh)
|
195 |
+
(( pdt ) pdt)
|
196 |
+
))
|
197 |
+
|
198 |
+
(defvar pos_map nil
|
199 |
+
"pos_map
|
200 |
+
A reverse assoc list of predicted pos tags to some other tag set. Note
|
201 |
+
using this changes the pos tag loosing the actual predicted value. Rather
|
202 |
+
than map here you may find it more appropriate to map tags sets locally
|
203 |
+
in the modules that use them (e.g. phrasing and lexicons).")
|
204 |
+
|
205 |
+
;;(setq pos_map_remap
|
206 |
+
;; '(
|
207 |
+
;; (( fpunc ) punc)
|
208 |
+
;; (( of ) in)))
|
209 |
+
|
210 |
+
(def_feature_docstring 'Word.pos
|
211 |
+
"Word.pos
|
212 |
+
Part of speech tag value returned by the POS tagger module.")
|
213 |
+
|
214 |
+
(def_feature_docstring 'Word.pos_score
|
215 |
+
"Word.pos_score
|
216 |
+
Part of speech tag log likelihood from Viterbi search.")
|
217 |
+
|
218 |
+
(define (POS utt)
|
219 |
+
"(POS utt)
|
220 |
+
Apply part of speech tagging (and possible parsing too) to Word
|
221 |
+
relation."
|
222 |
+
(let ((rval (apply_method 'POS_Method utt)))
|
223 |
+
(cond
|
224 |
+
(rval rval) ;; new style
|
225 |
+
(t
|
226 |
+
(Classic_POS utt)))))
|
227 |
+
|
228 |
+
|
229 |
+
(provide 'pos)
|
CosyVoice-ttsfrd/resource/festival/radio_phones.scm
ADDED
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; A definition of the radio phone set used in the BU RADIO FM
|
35 |
+
;;; corpus, some people call this the darpa set. This one
|
36 |
+
;;; has the closures removed
|
37 |
+
;;;
|
38 |
+
|
39 |
+
(defPhoneSet
|
40 |
+
radio
|
41 |
+
;;; Phone Features
|
42 |
+
(;; vowel or consonant
|
43 |
+
(vc + -)
|
44 |
+
;; vowel length: short long dipthong schwa
|
45 |
+
(vlng s l d a 0)
|
46 |
+
;; vowel height: high mid low
|
47 |
+
(vheight 1 2 3 0)
|
48 |
+
;; vowel frontness: front mid back
|
49 |
+
(vfront 1 2 3 0)
|
50 |
+
;; lip rounding
|
51 |
+
(vrnd + - 0)
|
52 |
+
;; consonant type: stop fricative affricate nasal lateral approximant
|
53 |
+
(ctype s f a n l r 0)
|
54 |
+
;; place of articulation: labial alveolar palatal labio-dental
|
55 |
+
;; dental velar glottal
|
56 |
+
(cplace l a p b d v g 0)
|
57 |
+
;; consonant voicing
|
58 |
+
(cvox + - 0)
|
59 |
+
)
|
60 |
+
;; Phone set members
|
61 |
+
(
|
62 |
+
;; Note these features were set by awb so they are wrong !!!
|
63 |
+
(aa + l 3 3 - 0 0 0) ;; father
|
64 |
+
(ae + s 3 1 - 0 0 0) ;; fat
|
65 |
+
(ah + s 2 2 - 0 0 0) ;; but
|
66 |
+
(ao + l 3 3 + 0 0 0) ;; lawn
|
67 |
+
(aw + d 3 2 - 0 0 0) ;; how
|
68 |
+
(ax + a 2 2 - 0 0 0) ;; about
|
69 |
+
(axr + a 2 2 - r a +)
|
70 |
+
(ay + d 3 2 - 0 0 0) ;; hide
|
71 |
+
(b - 0 0 0 0 s l +)
|
72 |
+
(ch - 0 0 0 0 a p -)
|
73 |
+
(d - 0 0 0 0 s a +)
|
74 |
+
(dh - 0 0 0 0 f d +)
|
75 |
+
(dx - a 0 0 0 s a +) ;; ??
|
76 |
+
(eh + s 2 1 - 0 0 0) ;; get
|
77 |
+
(el + s 0 0 0 l a +)
|
78 |
+
(em + s 0 0 0 n l +)
|
79 |
+
(en + s 0 0 0 n a +)
|
80 |
+
(er + a 2 2 - r 0 0) ;; always followed by r (er-r == axr)
|
81 |
+
(ey + d 2 1 - 0 0 0) ;; gate
|
82 |
+
(f - 0 0 0 0 f b -)
|
83 |
+
(g - 0 0 0 0 s v +)
|
84 |
+
(hh - 0 0 0 0 f g -)
|
85 |
+
(hv - 0 0 0 0 f g +)
|
86 |
+
(ih + s 1 1 - 0 0 0) ;; bit
|
87 |
+
(iy + l 1 1 - 0 0 0) ;; beet
|
88 |
+
(jh - 0 0 0 0 a p +)
|
89 |
+
(k - 0 0 0 0 s v -)
|
90 |
+
(l - 0 0 0 0 l a +)
|
91 |
+
(m - 0 0 0 0 n l +)
|
92 |
+
(n - 0 0 0 0 n a +)
|
93 |
+
(nx - 0 0 0 0 n d +) ;; ???
|
94 |
+
(ng - 0 0 0 0 n v +)
|
95 |
+
(ow + d 2 3 + 0 0 0) ;; lone
|
96 |
+
(oy + d 2 3 + 0 0 0) ;; toy
|
97 |
+
(p - 0 0 0 0 s l -)
|
98 |
+
(r - 0 0 0 0 r a +)
|
99 |
+
(s - 0 0 0 0 f a -)
|
100 |
+
(sh - 0 0 0 0 f p -)
|
101 |
+
(t - 0 0 0 0 s a -)
|
102 |
+
(th - 0 0 0 0 f d -)
|
103 |
+
(uh + s 1 3 + 0 0 0) ;; full
|
104 |
+
(uw + l 1 3 + 0 0 0) ;; fool
|
105 |
+
(v - 0 0 0 0 f b +)
|
106 |
+
(w - 0 0 0 0 r l +)
|
107 |
+
(y - 0 0 0 0 r p +)
|
108 |
+
(z - 0 0 0 0 f a +)
|
109 |
+
(zh - 0 0 0 0 f p +)
|
110 |
+
(pau - 0 0 0 0 0 0 -)
|
111 |
+
(h# - 0 0 0 0 0 0 -)
|
112 |
+
(brth - 0 0 0 0 0 0 -)
|
113 |
+
)
|
114 |
+
)
|
115 |
+
|
116 |
+
(PhoneSet.silences '(pau h# brth))
|
117 |
+
|
118 |
+
(provide 'radio_phones)
|
119 |
+
|
120 |
+
|
121 |
+
|
122 |
+
|
CosyVoice-ttsfrd/resource/festival/scfg.scm
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Some functions for manipulating a SCFG parse tree
|
35 |
+
|
36 |
+
(require_module 'parser)
|
37 |
+
|
38 |
+
(define (scfg_simplify tree)
|
39 |
+
"(scfg_brackets_only tree)
|
40 |
+
Output only the bracketing and the bottom level pos and words."
|
41 |
+
(cond
|
42 |
+
((not tree) nil)
|
43 |
+
((car (cdr (assoc 'pos (car (cdr (car tree))))))
|
44 |
+
;; terminal node
|
45 |
+
(list
|
46 |
+
(car (cdr (assoc 'pos (car (cdr (car tree))))))
|
47 |
+
(car (car tree))))
|
48 |
+
(t
|
49 |
+
(cons
|
50 |
+
(car (car tree))
|
51 |
+
(mapcar scfg_simplify (cdr tree))))))
|
52 |
+
|
53 |
+
(define (scfg_simplify_relation_tree trees)
|
54 |
+
(mapcar scfg_simplify trees))
|
55 |
+
|
56 |
+
(defvar scfg_eos_tree eou_tree
|
57 |
+
"scfg_eos_tree
|
58 |
+
In MultiProbParse this CART tree is used to define end of sentence
|
59 |
+
within an utterance. It is applied to the token relation.
|
60 |
+
By default it is set to eou_tree.")
|
61 |
+
|
62 |
+
(provide 'scfg)
|
CosyVoice-ttsfrd/resource/festival/singing-mode.scm
ADDED
@@ -0,0 +1,673 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;;
|
3 |
+
;;; Festival Singing Mode
|
4 |
+
;;;
|
5 |
+
;;; Written by Dominic Mazzoni
|
6 |
+
;;; Carnegie Mellon University
|
7 |
+
;;; 11-752 - "Speech: Phonetics, Prosody, Perception and Synthesis"
|
8 |
+
;;; Spring 2001
|
9 |
+
;;;
|
10 |
+
;;; Extended by Milan Zamazal <[email protected]>, 2006:
|
11 |
+
;;; - Slur support.
|
12 |
+
;;; - Czech support.
|
13 |
+
;;; - Some cleanup.
|
14 |
+
;;; - Print debugging information only when singing-debug is true.
|
15 |
+
;;;
|
16 |
+
;;; This code is public domain; anyone may use it freely.
|
17 |
+
;;;
|
18 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
19 |
+
|
20 |
+
(require_module 'rxp)
|
21 |
+
|
22 |
+
(xml_register_id "-//SINGING//DTD SINGING mark up//EN"
|
23 |
+
(path-append xml_dtd_dir "Singing.v0_1.dtd")
|
24 |
+
)
|
25 |
+
|
26 |
+
(xml_register_id "-//SINGING//ENTITIES Added Latin 1 for SINGING//EN"
|
27 |
+
(path-append xml_dtd_dir "sable-latin.ent")
|
28 |
+
)
|
29 |
+
|
30 |
+
;; Set this to t to enable debugging messages:
|
31 |
+
(defvar singing-debug nil)
|
32 |
+
|
33 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
34 |
+
;;
|
35 |
+
;; XML parsing functions
|
36 |
+
;;
|
37 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
38 |
+
|
39 |
+
;;
|
40 |
+
;; singing_xml_targets
|
41 |
+
;;
|
42 |
+
;; This variable defines the actions that are to be taken when
|
43 |
+
;; parsing each of our XML tags: SINGING, PITCH, DURATION, and REST.
|
44 |
+
;;
|
45 |
+
;; When we get the pitch and duration of each token, we store them
|
46 |
+
;; in features of the token. Later our intonation and duration
|
47 |
+
;; functions access these features.
|
48 |
+
;;
|
49 |
+
|
50 |
+
(defvar singing_xml_elements
|
51 |
+
'(
|
52 |
+
("(SINGING" (ATTLIST UTT)
|
53 |
+
(set! singing_pitch_att_list nil)
|
54 |
+
(set! singing_dur_att_list nil)
|
55 |
+
(set! singing_global_time 0.0)
|
56 |
+
(set! singing_bpm (get-bpm ATTLIST))
|
57 |
+
(set! singing_bps (/ singing_bpm 50.0)) ;; change this back to 60
|
58 |
+
nil)
|
59 |
+
|
60 |
+
(")SINGING" (ATTLIST UTT)
|
61 |
+
(xxml_synth UTT) ;; Synthesize the remaining tokens
|
62 |
+
nil)
|
63 |
+
|
64 |
+
("(PITCH" (ATTLIST UTT)
|
65 |
+
(set! singing_pitch_att_list ATTLIST)
|
66 |
+
UTT)
|
67 |
+
|
68 |
+
(")PITCH" (ATTLIST UTT)
|
69 |
+
(let ((freq (get-freqs singing_pitch_att_list)))
|
70 |
+
(if singing-debug
|
71 |
+
(begin
|
72 |
+
(print "freqs")
|
73 |
+
(print freq)))
|
74 |
+
(singing-append-feature! UTT 'freq freq))
|
75 |
+
UTT)
|
76 |
+
|
77 |
+
("(DURATION" (ATTLIST UTT)
|
78 |
+
(set! singing_dur_att_list ATTLIST)
|
79 |
+
UTT)
|
80 |
+
|
81 |
+
(")DURATION" (ATTLIST UTT)
|
82 |
+
(let ((dur (get-durs singing_dur_att_list)))
|
83 |
+
(if singing-debug
|
84 |
+
(begin
|
85 |
+
(print "durs")
|
86 |
+
(print dur)))
|
87 |
+
(singing-append-feature! UTT 'dur dur))
|
88 |
+
UTT)
|
89 |
+
|
90 |
+
("(REST" (ATTLIST UTT)
|
91 |
+
(let ((dur (get-durs ATTLIST)))
|
92 |
+
(if singing-debug
|
93 |
+
(begin
|
94 |
+
(print "rest durs")
|
95 |
+
(print dur)))
|
96 |
+
(singing-append-feature! UTT 'rest (caar dur)))
|
97 |
+
UTT)
|
98 |
+
))
|
99 |
+
|
100 |
+
;;
|
101 |
+
;; get-bpm
|
102 |
+
;;
|
103 |
+
;; Given the attribute list of a SINGING tag, returns the beats
|
104 |
+
;; per minute of the song from the BPM parameter.
|
105 |
+
;;
|
106 |
+
|
107 |
+
(define (get-bpm atts)
|
108 |
+
(parse-number (car (car (cdr (assoc 'BPM atts))))))
|
109 |
+
|
110 |
+
;;
|
111 |
+
;; get-durs
|
112 |
+
;;
|
113 |
+
;; Given the attribute list of a DURATION tag, returns a list of
|
114 |
+
;; durations in seconds for the syllables of the word enclosed by
|
115 |
+
;; this tag.
|
116 |
+
;;
|
117 |
+
;; It first looks for a BEATS parameter, and converts these to
|
118 |
+
;; seconds using BPM, which was set in the SINGING tag. If this
|
119 |
+
;; is not present, it looks for the SECONDS parameter.
|
120 |
+
;;
|
121 |
+
|
122 |
+
(define (get-durs atts)
|
123 |
+
(let ((seconds (car (car (cdr (assoc 'SECONDS atts)))))
|
124 |
+
(beats (car (car (cdr (assoc 'BEATS atts))))))
|
125 |
+
(if (equal? beats 'X)
|
126 |
+
(mapcar (lambda (lst) (mapcar parse-number lst))
|
127 |
+
(string->list seconds))
|
128 |
+
(mapcar (lambda (lst)
|
129 |
+
(mapcar (lambda (x) (/ (parse-number x) singing_bps)) lst))
|
130 |
+
(string->list beats)))))
|
131 |
+
|
132 |
+
;;
|
133 |
+
;; get-freqs
|
134 |
+
;;
|
135 |
+
;; Given the attribute list of a PITCH tag, returns a list of
|
136 |
+
;; frequencies in Hertz for the syllables of the word enclosed by
|
137 |
+
;; this tag.
|
138 |
+
;;
|
139 |
+
;; It first looks for a NOTE parameter, which can contain a MIDI
|
140 |
+
;; note of the form "C4", "D#3", or "Ab6", and if this is not
|
141 |
+
;; present it looks for the FREQ parameter.
|
142 |
+
;;
|
143 |
+
|
144 |
+
(define (get-freqs atts)
|
145 |
+
(let ((freqs (car (car (cdr (assoc 'FREQ atts)))))
|
146 |
+
(notes (car (car (cdr (assoc 'NOTE atts))))))
|
147 |
+
(if (equal? notes 'X)
|
148 |
+
(mapcar (lambda (lst) (mapcar parse-number lst))
|
149 |
+
(string->list freqs))
|
150 |
+
(mapcar (lambda (lst) (mapcar note->freq lst))
|
151 |
+
(string->list notes)))))
|
152 |
+
|
153 |
+
;;
|
154 |
+
;; note->freq
|
155 |
+
;;
|
156 |
+
;; Converts a string representing a MIDI note such as "C4" and
|
157 |
+
;; turns it into a frequency. We use the convention that
|
158 |
+
;; A5=440 (some call this note A3).
|
159 |
+
;;
|
160 |
+
|
161 |
+
(define (note->freq note)
|
162 |
+
(if singing-debug
|
163 |
+
(format t "note is %l\n" note))
|
164 |
+
(set! note (format nil "%s" note))
|
165 |
+
(if singing-debug
|
166 |
+
(print_string note))
|
167 |
+
(let (l octave notename midinote thefreq)
|
168 |
+
(set! l (string-length note))
|
169 |
+
(set! octave (substring note (- l 1) 1))
|
170 |
+
(set! notename (substring note 0 (- l 1)))
|
171 |
+
(set! midinote (+ (* 12 (parse-number octave))
|
172 |
+
(notename->midioffset notename)))
|
173 |
+
(set! thefreq (midinote->freq midinote))
|
174 |
+
(if singing-debug
|
175 |
+
(format t "note %s freq %f\n" note thefreq))
|
176 |
+
thefreq))
|
177 |
+
|
178 |
+
;;
|
179 |
+
;; midinote->freq
|
180 |
+
;;
|
181 |
+
;; Converts a MIDI note number (1 - 127) into a frequency. We use
|
182 |
+
;; the convention that 69 = "A5" =440 Hz.
|
183 |
+
;;
|
184 |
+
|
185 |
+
(define (midinote->freq midinote)
|
186 |
+
(* 440.0 (pow 2.0 (/ (- midinote 69) 12))))
|
187 |
+
|
188 |
+
;;
|
189 |
+
;; notename->midioffset
|
190 |
+
;;
|
191 |
+
;; Utility function that looks up the name of a note like "F#" and
|
192 |
+
;; returns its offset from C.
|
193 |
+
;;
|
194 |
+
|
195 |
+
(define (notename->midioffset notename)
|
196 |
+
(parse-number (car (cdr (assoc_string notename note_names)))))
|
197 |
+
|
198 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
199 |
+
;;
|
200 |
+
;; Pitch modification functions
|
201 |
+
;;
|
202 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
203 |
+
|
204 |
+
;;
|
205 |
+
;; singing_f0_targets
|
206 |
+
;;
|
207 |
+
;; This function replaces the normal intonation function used in
|
208 |
+
;; festival. For each syllable, it extracts the frequency that
|
209 |
+
;; was calculated from the XML tags and stored in the token this
|
210 |
+
;; syllable comes from, and sets this frequency as both the start
|
211 |
+
;; and end f0 target. Really straightforward!
|
212 |
+
;;
|
213 |
+
|
214 |
+
(defvar singing-last-f0 nil)
|
215 |
+
(define (singing_f0_targets utt syl)
|
216 |
+
"(singing_f0_targets utt syl)"
|
217 |
+
(let ((start (item.feat syl 'syllable_start))
|
218 |
+
(end (item.feat syl 'syllable_end))
|
219 |
+
(freqs (mapcar parse-number (syl->freq syl)))
|
220 |
+
(durs (syl->durations syl)))
|
221 |
+
(let ((total-durs (apply + durs))
|
222 |
+
(total-time (- end start))
|
223 |
+
(time start)
|
224 |
+
(prev-segment (item.prev (item.relation (item.daughter1 (item.relation syl 'SylStructure)) 'Segment)))
|
225 |
+
(last-f0 singing-last-f0))
|
226 |
+
(if freqs
|
227 |
+
(begin
|
228 |
+
(set! singing-last-f0 (car (last freqs)))
|
229 |
+
(append (if (and last-f0
|
230 |
+
prev-segment
|
231 |
+
(item.prev prev-segment)
|
232 |
+
(string-equal (item.feat prev-segment 'name)
|
233 |
+
(car (car (cdr (car (PhoneSet.description '(silences))))))))
|
234 |
+
(let ((s (item.feat prev-segment "p.end"))
|
235 |
+
(e (item.feat prev-segment "end")))
|
236 |
+
(list (list (+ s (* (- e s) 0.8)) last-f0)
|
237 |
+
(list (+ s (* (- e s) 0.9)) (car freqs)))))
|
238 |
+
(apply append
|
239 |
+
(mapcar (lambda (d f)
|
240 |
+
(let ((range (* (/ d total-durs) total-time))
|
241 |
+
(old-time time))
|
242 |
+
(set! time (+ time range))
|
243 |
+
(let ((range-fraction (* 0.1 range)))
|
244 |
+
(list (list (+ old-time range-fraction) f)
|
245 |
+
(list (- time range-fraction) f)))))
|
246 |
+
durs freqs))))))))
|
247 |
+
|
248 |
+
;;
|
249 |
+
;; syl->freq
|
250 |
+
;;
|
251 |
+
;; Given a syllable, looks up the frequency in its token. The token
|
252 |
+
;; stores a list of all of the frequencies associated with its
|
253 |
+
;; syllables, so this syllable grabs the frequency out of the list
|
254 |
+
;; corresponding to its index within the word. (This assumes that
|
255 |
+
;; a frequency was given for each syllable, and that a token
|
256 |
+
;; corresponds directly to a word. Singing-mode is not guaranteed
|
257 |
+
;; to work at all if either of these things are not true.)
|
258 |
+
;;
|
259 |
+
|
260 |
+
(define (syl->freq syl)
|
261 |
+
(let ((index (item.feat syl "R:Syllable.pos_in_word"))
|
262 |
+
(freqs (singing-feat syl "R:SylStructure.parent.R:Token.parent.freq")))
|
263 |
+
(nth index freqs)))
|
264 |
+
|
265 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
266 |
+
;;
|
267 |
+
;; Duration modification functions
|
268 |
+
;;
|
269 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
270 |
+
|
271 |
+
;;
|
272 |
+
;; singing_duration_method
|
273 |
+
;;
|
274 |
+
;; Calculates the duration of each phone in the utterance, in three
|
275 |
+
;; passes. Consult the three functions it calls, below, to see what
|
276 |
+
;; each one does.
|
277 |
+
;;
|
278 |
+
|
279 |
+
(define (singing_duration_method utt)
|
280 |
+
(mapcar singing_adjcons_syllable (utt.relation.items utt 'Syllable))
|
281 |
+
(singing_do_initial utt (car (utt.relation.items utt 'Token)))
|
282 |
+
(mapcar singing_do_syllable (utt.relation.items utt 'Syllable))
|
283 |
+
(mapcar singing_fix_segment (utt.relation.items utt 'Segment))
|
284 |
+
utt)
|
285 |
+
|
286 |
+
;;
|
287 |
+
;; singing_adjcons_syllable
|
288 |
+
;;
|
289 |
+
;; First pass. Looks at the first phone of each syllable and
|
290 |
+
;; adjusts the starting time of this syllable such that the
|
291 |
+
;; perceived start time of the first phone is at the beginning
|
292 |
+
;; of the originally intended start time of the syllable.
|
293 |
+
;;
|
294 |
+
;; If this is not done, telling it to say the word "ta" at time
|
295 |
+
;; 2.0 actually doesn't "sound" like it says the "t" sound until
|
296 |
+
;; about 2.1 seconds.
|
297 |
+
;;
|
298 |
+
;; This function has a little bit of duplicated code from
|
299 |
+
;; singing_do_syllable, below - it could be modularized a little
|
300 |
+
;; better.
|
301 |
+
;;
|
302 |
+
|
303 |
+
(define (singing_adjcons_syllable syl)
|
304 |
+
(let ((totlen (apply + (mapcar (lambda (s)
|
305 |
+
(get_avg_duration (item.feat s "name")))
|
306 |
+
(item.leafs
|
307 |
+
(item.relation syl 'SylStructure)))))
|
308 |
+
(syldur (apply + (syl->durations syl)))
|
309 |
+
;; figure out the offset of the first phone
|
310 |
+
(phone1 (item.daughter1 (item.relation syl 'SylStructure)))
|
311 |
+
(prevsyl (item.prev (item.relation syl 'Syllable))))
|
312 |
+
(let ((offset (get_duration_offset (item.feat phone1 "name"))))
|
313 |
+
(if singing-debug
|
314 |
+
(format t "offset: %f\n" offset) )
|
315 |
+
(if (< syldur totlen)
|
316 |
+
(set! offset (* offset (/ syldur totlen))))
|
317 |
+
(if singing-debug
|
318 |
+
(format t "Want to adjust syl by %f\n" offset))
|
319 |
+
(if prevsyl
|
320 |
+
(begin
|
321 |
+
(item.set_feat prevsyl 'subtractoffset offset)
|
322 |
+
(item.set_feat syl 'addoffset offset))))))
|
323 |
+
|
324 |
+
;;
|
325 |
+
;; singing_do_syllable
|
326 |
+
;;
|
327 |
+
;; Second pass. For each syllable, adds up the amount of time
|
328 |
+
;; that would normally be spent in consonants and vowels, based
|
329 |
+
;; on the average durations of these phones. Then, if the
|
330 |
+
;; intended length of this syllable is longer than this total,
|
331 |
+
;; stretch only the vowels; otherwise shrink all phones
|
332 |
+
;; proportionally. This function actually sets the "end" time
|
333 |
+
;; of each phone using a global "singing_global_time" variable.
|
334 |
+
;;
|
335 |
+
;; We also handle rests at this point, which are tagged onto the
|
336 |
+
;; end of the previous token.
|
337 |
+
;;
|
338 |
+
|
339 |
+
(defvar singing-max-short-vowel-length 0.11)
|
340 |
+
|
341 |
+
(define (singing_do_initial utt token)
|
342 |
+
(if (equal? (item.name token) "")
|
343 |
+
(let ((restlen (car (item.feat token 'rest))))
|
344 |
+
(if singing-debug
|
345 |
+
(format t "restlen %l\n" restlen))
|
346 |
+
(if (> restlen 0)
|
347 |
+
(let ((silence (car (car (cdr (assoc 'silences (PhoneSet.description)))))))
|
348 |
+
(set! singing_global_time restlen)
|
349 |
+
(item.relation.insert (utt.relation.first utt 'Segment) 'Segment
|
350 |
+
(list silence (list (list "end" singing_global_time)))
|
351 |
+
'before))))))
|
352 |
+
|
353 |
+
(define (singing_do_syllable syl)
|
354 |
+
(let ((conslen 0.0)
|
355 |
+
(vowlen 0.0)
|
356 |
+
(segments (item.leafs (item.relation syl 'SylStructure))))
|
357 |
+
;; if there are no vowels, turn a middle consonant into a vowel;
|
358 |
+
;; hopefully this works well for languages where syllables may be
|
359 |
+
;; created by some consonants too
|
360 |
+
(let ((segments* segments)
|
361 |
+
(vowel-found nil))
|
362 |
+
(while (and segments* (not vowel-found))
|
363 |
+
(if (equal? "+" (item.feat (car segments*) "ph_vc"))
|
364 |
+
(set! vowel-found t)
|
365 |
+
(set! segments* (cdr segments*))))
|
366 |
+
(if (not vowel-found)
|
367 |
+
(item.set_feat (nth (nint (/ (- (length segments) 1) 2))
|
368 |
+
segments)
|
369 |
+
"singing-vc" "+")))
|
370 |
+
;; sum up the length of all of the vowels and consonants in
|
371 |
+
;; this syllable
|
372 |
+
(mapcar (lambda (s)
|
373 |
+
(let ((slen (get_avg_duration (item.feat s "name"))))
|
374 |
+
(if (or (equal? "+" (item.feat s "ph_vc"))
|
375 |
+
(equal? "+" (item.feat s "singing-vc")))
|
376 |
+
(set! vowlen (+ vowlen slen))
|
377 |
+
(set! conslen (+ conslen slen)))))
|
378 |
+
segments)
|
379 |
+
(let ((totlen (+ conslen vowlen))
|
380 |
+
(syldur (apply + (syl->durations syl)))
|
381 |
+
(addoffset (item.feat syl 'addoffset))
|
382 |
+
(subtractoffset (item.feat syl 'subtractoffset))
|
383 |
+
offset)
|
384 |
+
(set! offset (- subtractoffset addoffset))
|
385 |
+
(if singing-debug
|
386 |
+
(format t "Vowlen: %f conslen: %f totlen: %f\n" vowlen conslen totlen))
|
387 |
+
(if (< offset (/ syldur 2.0))
|
388 |
+
(begin
|
389 |
+
(set! syldur (- syldur offset))
|
390 |
+
(if singing-debug
|
391 |
+
(format t "Offset: %f\n" offset))))
|
392 |
+
(if singing-debug
|
393 |
+
(format t "Syldur: %f\n" syldur))
|
394 |
+
(if (> totlen syldur)
|
395 |
+
;; if the total length of the average durations in the syllable is
|
396 |
+
;; greater than the total desired duration of the syllable, stretch
|
397 |
+
;; the time proportionally for each phone
|
398 |
+
(let ((stretch (/ syldur totlen)))
|
399 |
+
(mapcar (lambda (s)
|
400 |
+
(let ((slen (* stretch (get_avg_duration (item.feat s "name")))))
|
401 |
+
(set! singing_global_time (+ slen singing_global_time))
|
402 |
+
(item.set_feat s 'end singing_global_time)))
|
403 |
+
(item.leafs (item.relation syl 'SylStructure))))
|
404 |
+
;; otherwise, stretch the vowels and not the consonants
|
405 |
+
(let ((voweltime (- syldur conslen)))
|
406 |
+
(let ((vowelstretch (/ voweltime vowlen))
|
407 |
+
(phones (mapcar car (car (cdar (PhoneSet.description '(phones)))))))
|
408 |
+
(mapcar (lambda (s)
|
409 |
+
(let ((slen (get_avg_duration (item.feat s "name"))))
|
410 |
+
(if (or (equal? "+" (item.feat s "ph_vc"))
|
411 |
+
(equal? "+" (item.feat s "singing-vc")))
|
412 |
+
(begin
|
413 |
+
(set! slen (* vowelstretch slen))
|
414 |
+
;; If the sound is long enough, better results
|
415 |
+
;; may be achieved by using longer versions of
|
416 |
+
;; the vowels.
|
417 |
+
(if (> slen singing-max-short-vowel-length)
|
418 |
+
(let ((sname (string-append (item.feat s "name") ":")))
|
419 |
+
(if (member_string sname phones)
|
420 |
+
(item.set_feat s "name" sname))))))
|
421 |
+
(set! singing_global_time (+ slen singing_global_time))
|
422 |
+
(item.set_feat s 'end singing_global_time)))
|
423 |
+
segments))))))
|
424 |
+
(let ((restlen (car (syl->rest syl))))
|
425 |
+
(if singing-debug
|
426 |
+
(format t "restlen %l\n" restlen))
|
427 |
+
(if (> restlen 0)
|
428 |
+
(let ((lastseg (item.daughtern (item.relation syl 'SylStructure)))
|
429 |
+
(silence (car (car (cdr (assoc 'silences (PhoneSet.description))))))
|
430 |
+
(singing_global_time* singing_global_time))
|
431 |
+
(let ((seg (item.relation lastseg 'Segment))
|
432 |
+
(extra-pause-length 0.00001))
|
433 |
+
(set! singing_global_time (+ restlen singing_global_time))
|
434 |
+
(item.insert seg (list silence (list (list "end" singing_global_time))) 'after)
|
435 |
+
;; insert a very short extra pause to avoid after-effects, especially
|
436 |
+
;; after vowels
|
437 |
+
(if (and seg
|
438 |
+
(equal? (item.feat seg "ph_vc") "+")
|
439 |
+
(< extra-pause-length restlen))
|
440 |
+
(item.insert seg (list silence (list (list "end" (+ singing_global_time*
|
441 |
+
extra-pause-length))))
|
442 |
+
'after)))))))
|
443 |
+
|
444 |
+
;;
|
445 |
+
;; singing_fix_segment
|
446 |
+
;;
|
447 |
+
;; Third pass. Finds any segments (phones) that we didn't catch earlier
|
448 |
+
;; (say if they didn't belong to a syllable, like silence) and sets them
|
449 |
+
;; to zero duration
|
450 |
+
;;
|
451 |
+
|
452 |
+
(define (singing_fix_segment seg)
|
453 |
+
(if (equal? 0.0 (item.feat seg 'end))
|
454 |
+
(if (equal? nil (item.prev seg))
|
455 |
+
(item.set_feat seg 'end 0.0)
|
456 |
+
(item.set_feat seg 'end (item.feat (item.prev seg) 'end)))
|
457 |
+
(if singing-debug
|
458 |
+
(format t "segment: %s end: %f\n" (item.name seg) (item.feat seg 'end)))))
|
459 |
+
|
460 |
+
;; returns the duration of a syllable (stored in its token)
|
461 |
+
(define (syl->durations syl)
|
462 |
+
(let ((index (item.feat syl "R:Syllable.pos_in_word"))
|
463 |
+
(durs (singing-feat syl "R:SylStructure.parent.R:Token.parent.dur")))
|
464 |
+
(mapcar parse-number (nth index durs))))
|
465 |
+
|
466 |
+
;; returns the duration of the rest following a syllable
|
467 |
+
(define (syl->rest syl)
|
468 |
+
(let ((index (item.feat syl "R:Syllable.pos_in_word"))
|
469 |
+
(durs (singing-feat syl "R:SylStructure.parent.R:Token.parent.dur"))
|
470 |
+
(pauselen (singing-feat syl "R:SylStructure.parent.R:Token.parent.rest")))
|
471 |
+
(if (equal? index (- (length durs) 1))
|
472 |
+
(list (or pauselen 0.0))
|
473 |
+
(list 0.0))))
|
474 |
+
|
475 |
+
;; get the average duration of a phone
|
476 |
+
(define (get_avg_duration phone)
|
477 |
+
(let ((pd (assoc_string phone phoneme_durations)))
|
478 |
+
(if pd
|
479 |
+
(car (cdr pd))
|
480 |
+
0.08)))
|
481 |
+
|
482 |
+
;; get the duration offset of a phone (see the description above)
|
483 |
+
(define (get_duration_offset phone)
|
484 |
+
(parse-number (car (cdr (assoc_string phone phoneme_offsets*)))))
|
485 |
+
|
486 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
487 |
+
;;
|
488 |
+
;; Other utility functions
|
489 |
+
;;
|
490 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
491 |
+
|
492 |
+
(define (char-quote string)
|
493 |
+
(if (member string '("*" "+" "?" "[" "]" "."))
|
494 |
+
(string-append "[" string "]")
|
495 |
+
string))
|
496 |
+
|
497 |
+
(define (split-string string separator)
|
498 |
+
(if (string-matches string (string-append ".+" (char-quote separator) ".+"))
|
499 |
+
(cons (string-before string separator)
|
500 |
+
(split-string (string-after string separator) separator))
|
501 |
+
;; We have to convert the weird XML attribute value type to string
|
502 |
+
(list (string-append string ""))))
|
503 |
+
|
504 |
+
(define (string->list string)
|
505 |
+
(mapcar (lambda (s) (split-string s "+")) (split-string string ",")))
|
506 |
+
|
507 |
+
(define (singing-append-feature! utt feature value)
|
508 |
+
(let ((tokens (utt.relation.items utt 'Token)))
|
509 |
+
(if tokens
|
510 |
+
;; we have to wrap value into a list to work around a Festival bug
|
511 |
+
(item.set_feat (car (last tokens)) feature (list value))
|
512 |
+
(begin
|
513 |
+
(utt.relation.append utt 'Token '("" ((name "") (whitespace "")
|
514 |
+
(prepunctuation "") (punc ""))))
|
515 |
+
(item.set_feat (car (last (utt.relation.items utt 'Token))) feature (list value))))))
|
516 |
+
|
517 |
+
(define (singing-feat item feature)
|
518 |
+
(let ((value (item.feat item feature)))
|
519 |
+
(if (equal? value 0)
|
520 |
+
nil
|
521 |
+
(car value))))
|
522 |
+
|
523 |
+
(define (current-language)
|
524 |
+
(cadr (car (assoc 'language (voice.description current-voice)))))
|
525 |
+
|
526 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
527 |
+
;;
|
528 |
+
;; Initializing and exiting singing mode
|
529 |
+
;;
|
530 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
531 |
+
|
532 |
+
;;
|
533 |
+
;; singing_init_func
|
534 |
+
;;
|
535 |
+
|
536 |
+
(defvar singing_previous_eou_tree nil)
|
537 |
+
|
538 |
+
(define (singing_init_func)
|
539 |
+
"(singing_init_func) - Initialization for Singing mode"
|
540 |
+
(if (not (symbol-bound? 'phoneme_durations))
|
541 |
+
(set! phoneme_durations '()))
|
542 |
+
;; use our intonation function
|
543 |
+
(Parameter.set 'Int_Method 'General)
|
544 |
+
(Parameter.set 'Int_Target_Method Int_Targets_General)
|
545 |
+
(set! int_general_params `((targ_func ,singing_f0_targets)))
|
546 |
+
(set! singing-last-f0 nil)
|
547 |
+
;; use our duration function
|
548 |
+
(Parameter.set 'Duration_Method singing_duration_method)
|
549 |
+
;; set phoneme corrections for the current language
|
550 |
+
(let ((language 'english
|
551 |
+
; (cadr (assoc 'language
|
552 |
+
; (cadr (voice.description current-voice))))
|
553 |
+
))
|
554 |
+
(set! phoneme_offsets* (cdr (assoc language phoneme_offsets))))
|
555 |
+
;; avoid splitting to multiple utterances with insertion of unwanted pauses
|
556 |
+
(set! singing_previous_eou_tree eou_tree)
|
557 |
+
(set! eou_tree nil)
|
558 |
+
;; use our xml parsing function
|
559 |
+
(set! singing_previous_elements xxml_elements)
|
560 |
+
(set! xxml_elements singing_xml_elements))
|
561 |
+
|
562 |
+
;;
|
563 |
+
;; singing_exit_func
|
564 |
+
;;
|
565 |
+
|
566 |
+
(define (singing_exit_func)
|
567 |
+
"(singing_exit_func) - Exit function for Singing mode"
|
568 |
+
(set! eou_tree singing_previous_eou_tree)
|
569 |
+
(set! xxml_elements singing_previous_elements))
|
570 |
+
|
571 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
572 |
+
;;
|
573 |
+
;; Data tables
|
574 |
+
;;
|
575 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
576 |
+
|
577 |
+
(defvar note_names
|
578 |
+
'((C 0)
|
579 |
+
(C# 1)
|
580 |
+
(Db 1)
|
581 |
+
(D 2)
|
582 |
+
(D# 3)
|
583 |
+
(Eb 3)
|
584 |
+
(E 4)
|
585 |
+
(E# 5)
|
586 |
+
(Fb 4)
|
587 |
+
(F 5)
|
588 |
+
(F# 6)
|
589 |
+
(Gb 6)
|
590 |
+
(G 7)
|
591 |
+
(G# 8)
|
592 |
+
(Ab 8)
|
593 |
+
(A 9)
|
594 |
+
(A# 10)
|
595 |
+
(Bb 10)
|
596 |
+
(B 11)
|
597 |
+
(B# 12)
|
598 |
+
(Cb 11)))
|
599 |
+
|
600 |
+
;;
|
601 |
+
;; The following list contains the offset into each phone that best
|
602 |
+
;; represents the perceptual onset of the phone. This is important
|
603 |
+
;; to know to get durations right in singing. For example, if the
|
604 |
+
;; offset for "t" is .060, and you want to start a "t" sound at
|
605 |
+
;; time 2.0 seconds, you should actually start the phone playing
|
606 |
+
;; at time 1.940 seconds in order for it to sound like the onset of
|
607 |
+
;; the "t" is really right at 2.0.
|
608 |
+
;;
|
609 |
+
;; These were derived empically by looking at and listening to the
|
610 |
+
;; waveforms of each phone for mwm's voice.
|
611 |
+
;;
|
612 |
+
|
613 |
+
(defvar phoneme_offsets
|
614 |
+
`((english (t 0.050)
|
615 |
+
(T 0.050)
|
616 |
+
(d 0.090)
|
617 |
+
(D 0.090)
|
618 |
+
(p 0.080)
|
619 |
+
(b 0.080)
|
620 |
+
(k 0.090)
|
621 |
+
(g 0.100)
|
622 |
+
(9r 0.050) ;; r
|
623 |
+
(l 0.030)
|
624 |
+
(f 0.050)
|
625 |
+
(v 0.050)
|
626 |
+
(s 0.040)
|
627 |
+
(S 0.040)
|
628 |
+
(z 0.040)
|
629 |
+
(Z 0.040)
|
630 |
+
(n 0.040)
|
631 |
+
(N 0.040)
|
632 |
+
(m 0.040)
|
633 |
+
(j 0.090)
|
634 |
+
(E 0.0)
|
635 |
+
(> 0.0)
|
636 |
+
(>i 0.0)
|
637 |
+
(aI 0.0)
|
638 |
+
(& 0.0)
|
639 |
+
(3r 0.0)
|
640 |
+
(tS 0.0)
|
641 |
+
(oU 0.0)
|
642 |
+
(aU 0.0)
|
643 |
+
(A 0.0)
|
644 |
+
(ei 0.0)
|
645 |
+
(iU 0.0)
|
646 |
+
(U 0.0)
|
647 |
+
(@ 0.0)
|
648 |
+
(h 0.0)
|
649 |
+
(u 0.0)
|
650 |
+
(^ 0.0)
|
651 |
+
(I 0.0)
|
652 |
+
(dZ 0.0)
|
653 |
+
(i: 0.0)
|
654 |
+
(w 0.0)
|
655 |
+
(pau 0.0)
|
656 |
+
(brth 0.0)
|
657 |
+
(h# 0.0)
|
658 |
+
)))
|
659 |
+
|
660 |
+
(defvar phoneme_offsets* nil)
|
661 |
+
|
662 |
+
;;
|
663 |
+
;; Declare the new mode to Festival
|
664 |
+
;;
|
665 |
+
|
666 |
+
(set! tts_text_modes
|
667 |
+
(cons `(singing ;; mode name
|
668 |
+
((init_func ,singing_init_func)
|
669 |
+
(exit_func ,singing_exit_func)
|
670 |
+
(analysis_type xml)))
|
671 |
+
tts_text_modes))
|
672 |
+
|
673 |
+
(provide 'singing-mode)
|
CosyVoice-ttsfrd/resource/festival/siod.scm
ADDED
@@ -0,0 +1,638 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
6 |
+
;;; DO NOT EDIT THIS FILE ON PAIN OF MORE PAIN.
|
7 |
+
;;;
|
8 |
+
;;; The master copy of this file is in ../../speech_tools/lib/siod/siod.scm
|
9 |
+
;;; and is copied here at build time.
|
10 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
+
;; SIOD: Scheme In One Defun -*-mode: view-*-
|
24 |
+
;;
|
25 |
+
;; * COPYRIGHT (c) 1989-1992 BY *
|
26 |
+
;; * PARADIGM ASSOCIATES INCORPORATED, CAMBRIDGE, MASSACHUSETTS. *
|
27 |
+
;; * See the source file SLIB.C for more information. *
|
28 |
+
;;
|
29 |
+
;; A fair amount of modifications and tidy up was done by AWB, particularly
|
30 |
+
;; * adding documentation strings to all functions/variable
|
31 |
+
;; * removing some example functions not relevant to Festival (or siod)
|
32 |
+
;; * addition of new functions (require provide etc)
|
33 |
+
|
34 |
+
;(puts ";; Optional Runtime Library for Release 2.8
|
35 |
+
;")
|
36 |
+
|
37 |
+
(define list
|
38 |
+
(lambda n
|
39 |
+
"(list A0 A1 ...)
|
40 |
+
Return list containing A0 A1 ..."
|
41 |
+
n))
|
42 |
+
|
43 |
+
(define (caar x)
|
44 |
+
"(caar X)
|
45 |
+
Return the (car (car X))."
|
46 |
+
(car (car x)))
|
47 |
+
(define (cadr x)
|
48 |
+
"(cadr X)
|
49 |
+
Return the (car (cdr X))."
|
50 |
+
(car (cdr x)))
|
51 |
+
(define (cdar x)
|
52 |
+
"(cdar X)
|
53 |
+
Return the (cdr (car X))."
|
54 |
+
(cdr (car x)))
|
55 |
+
(define (cddr x)
|
56 |
+
"(cddr X)
|
57 |
+
Return the (cdr (cdr X))."
|
58 |
+
(cdr (cdr x)))
|
59 |
+
|
60 |
+
(define (caddr x)
|
61 |
+
"(caddr X)
|
62 |
+
Return the (car (cdr (cdr X)))."
|
63 |
+
(car (cdr (cdr x))))
|
64 |
+
(define (cdddr x)
|
65 |
+
"(cdddr X)
|
66 |
+
Return the (cdr (cdr (cdr X)))."
|
67 |
+
(cdr (cdr (cdr x))))
|
68 |
+
|
69 |
+
(define consp pair?)
|
70 |
+
|
71 |
+
(define (replace before after)
|
72 |
+
"(replace BEFORE AFTER)
|
73 |
+
Destructively replace contents of cons cell BEFORE with those of
|
74 |
+
AFTER."
|
75 |
+
(set-car! before (car after))
|
76 |
+
(set-cdr! before (cdr after))
|
77 |
+
after)
|
78 |
+
|
79 |
+
(define (prognify forms)
|
80 |
+
(if (null? (cdr forms))
|
81 |
+
(car forms)
|
82 |
+
(cons 'begin forms)))
|
83 |
+
|
84 |
+
(define (defmac-macro form)
|
85 |
+
"(defmac-macro MACRONAME FORM)
|
86 |
+
Define a macro. Macro expand FORM in-line."
|
87 |
+
(let ((sname (car (cadr form)))
|
88 |
+
(argl (cdr (cadr form)))
|
89 |
+
(fname nil)
|
90 |
+
(body (prognify (cddr form))))
|
91 |
+
(set! fname (symbolconc sname '-macro))
|
92 |
+
(list 'begin
|
93 |
+
(list 'define (cons fname argl)
|
94 |
+
(list 'replace (car argl) body))
|
95 |
+
(list 'define sname (list 'quote fname)))))
|
96 |
+
|
97 |
+
(define defmac 'defmac-macro)
|
98 |
+
|
99 |
+
(defmac (push form)
|
100 |
+
(list 'set! (caddr form)
|
101 |
+
(list 'cons (cadr form) (caddr form))))
|
102 |
+
|
103 |
+
(defmac (pop form)
|
104 |
+
(list 'let (list (list 'tmp (cadr form)))
|
105 |
+
(list 'set! (cadr form) '(cdr tmp))
|
106 |
+
'(car tmp)))
|
107 |
+
|
108 |
+
;;; Have to set var-docstrings to nil first as defvar requires it to be set
|
109 |
+
(set! var-docstrings nil)
|
110 |
+
(define (add-doc-var varname docstring)
|
111 |
+
"(add-doc-var VARNAME DOCSTRING)
|
112 |
+
Add document string DOCSTRING to VARNAME. If DOCSTRING is nil
|
113 |
+
this has no effect. If VARNAME already has a document string replace
|
114 |
+
it with DOCSTRING."
|
115 |
+
(if (null? docstring)
|
116 |
+
t
|
117 |
+
(let ((lpair (assq varname var-docstrings)))
|
118 |
+
(if lpair
|
119 |
+
(set-cdr! lpair docstring)
|
120 |
+
(set! var-docstrings (cons (cons varname docstring)
|
121 |
+
var-docstrings))))))
|
122 |
+
|
123 |
+
(set! boundp symbol-bound?)
|
124 |
+
|
125 |
+
(defmac (defvar form)
|
126 |
+
(begin ;; always add the documentation string
|
127 |
+
(add-doc-var (cadr form) (car (cdddr form)))
|
128 |
+
(list 'or
|
129 |
+
(list 'symbol-bound? (list 'quote (cadr form)))
|
130 |
+
(list 'define (cadr form) (caddr form)))))
|
131 |
+
|
132 |
+
(defvar var-docstrings nil
|
133 |
+
"var-docstrings
|
134 |
+
An assoc-list of variable names and their documentation strings.")
|
135 |
+
|
136 |
+
(defmac (defun form)
|
137 |
+
(cons 'define
|
138 |
+
(cons (cons (cadr form) (caddr form))
|
139 |
+
(cdddr form))))
|
140 |
+
|
141 |
+
(defmac (setq form)
|
142 |
+
(let ((l (cdr form))
|
143 |
+
(result nil))
|
144 |
+
(define (loop)
|
145 |
+
(if l
|
146 |
+
(begin (push (list 'set! (car l) (cadr l)) result)
|
147 |
+
(set! l (cddr l))
|
148 |
+
(loop))))
|
149 |
+
(loop)
|
150 |
+
(prognify (reverse result))))
|
151 |
+
|
152 |
+
(define progn begin)
|
153 |
+
|
154 |
+
(defun atom (x)
|
155 |
+
"(atom X)
|
156 |
+
True if X is not a cons cells, nil otherwise."
|
157 |
+
(not (consp x)))
|
158 |
+
|
159 |
+
(define eq eq?)
|
160 |
+
|
161 |
+
(defmac (cond form)
|
162 |
+
(cond-convert (cdr form)))
|
163 |
+
|
164 |
+
(define null null?)
|
165 |
+
|
166 |
+
(defun cond-convert (l)
|
167 |
+
(if (null l)
|
168 |
+
()
|
169 |
+
(if (null (cdar l))
|
170 |
+
(if (null (cdr l))
|
171 |
+
(caar l)
|
172 |
+
(let ((rest (cond-convert (cdr l))))
|
173 |
+
(if (and (consp rest) (eq (car rest) 'or))
|
174 |
+
(cons 'or (cons (caar l) (cdr rest)))
|
175 |
+
(list 'or (caar l) rest))))
|
176 |
+
(if (or (eq (caar l) 't)
|
177 |
+
(and (consp (caar l)) (eq (car (caar l)) 'quote)))
|
178 |
+
(prognify (cdar l))
|
179 |
+
(list 'if
|
180 |
+
(caar l)
|
181 |
+
(prognify (cdar l))
|
182 |
+
(cond-convert (cdr l)))))))
|
183 |
+
|
184 |
+
(defmac (+internal-comma form)
|
185 |
+
(error 'comma-not-inside-backquote))
|
186 |
+
|
187 |
+
(define +internal-comma-atsign +internal-comma)
|
188 |
+
(define +internal-comma-dot +internal-comma)
|
189 |
+
|
190 |
+
(defmac (+internal-backquote form)
|
191 |
+
(backquotify (cdr form)))
|
192 |
+
|
193 |
+
(defun backquotify (x)
|
194 |
+
"(backquote FORM)
|
195 |
+
Backquote function for expanding forms in macros."
|
196 |
+
(let (a d aa ad dqp)
|
197 |
+
(cond ((atom x) (list 'quote x))
|
198 |
+
((eq (car x) '+internal-comma) (cdr x))
|
199 |
+
((or (atom (car x))
|
200 |
+
(not (or (eq (caar x) '+internal-comma-atsign)
|
201 |
+
(eq (caar x) '+internal-comma-dot))))
|
202 |
+
(setq a (backquotify (car x)) d (backquotify (cdr x))
|
203 |
+
ad (atom d) aa (atom a)
|
204 |
+
dqp (and (not ad) (eq (car d) 'quote)))
|
205 |
+
(cond ((and dqp (not (atom a)) (eq (car a) 'quote))
|
206 |
+
(list 'quote (cons (cadr a) (cadr d))))
|
207 |
+
((and dqp (null (cadr d)))
|
208 |
+
(list 'list a))
|
209 |
+
((and (not ad) (eq (car d) 'list))
|
210 |
+
(cons 'list (cons a (cdr d))))
|
211 |
+
(t (list 'cons a d))))
|
212 |
+
((eq (caar x) '+internal-comma-atsign)
|
213 |
+
(list 'append (cdar x) (backquotify (cdr x))))
|
214 |
+
((eq (caar x) '+internal-comma-dot)
|
215 |
+
(list 'nconc (cdar x)(backquotify (cdr x)))))))
|
216 |
+
|
217 |
+
|
218 |
+
(defun append n
|
219 |
+
"(append L0 L1 ...)
|
220 |
+
Append each list to the first list in turn."
|
221 |
+
(appendl n))
|
222 |
+
|
223 |
+
(defun appendl (l)
|
224 |
+
(cond ((null l) nil)
|
225 |
+
((null (cdr l)) (car l))
|
226 |
+
((null (cddr l))
|
227 |
+
(append2 (car l) (cadr l)))
|
228 |
+
('else
|
229 |
+
(append2 (car l) (appendl (cdr l))))))
|
230 |
+
|
231 |
+
(defun append2 (a b)
|
232 |
+
(if (null a)
|
233 |
+
b
|
234 |
+
(begin
|
235 |
+
(let ((x (reverse a))
|
236 |
+
(y b))
|
237 |
+
(while x
|
238 |
+
(set! y (cons (car x) y))
|
239 |
+
(set! x (cdr x)))
|
240 |
+
y))))
|
241 |
+
|
242 |
+
(defun rplacd (a b)
|
243 |
+
"(replacd A B)
|
244 |
+
Destructively replace the cdr of A with B."
|
245 |
+
(set-cdr! a b)
|
246 |
+
a)
|
247 |
+
|
248 |
+
(defun nconc (a b)
|
249 |
+
"(nconc A B)
|
250 |
+
Destructively append B to A, if A is nil return B."
|
251 |
+
(if (null a)
|
252 |
+
b
|
253 |
+
(rplacd (last a) b)))
|
254 |
+
|
255 |
+
(defun last (a)
|
256 |
+
"(last A)
|
257 |
+
Last (cdr) element in list A."
|
258 |
+
(cond ((null a) (error'null-arg-to-last))
|
259 |
+
((null (cdr a)) a)
|
260 |
+
((last (cdr a)))))
|
261 |
+
|
262 |
+
(define (remove i l)
|
263 |
+
"(remove ITEM LIST)
|
264 |
+
(Non-destructively) remove ITEM from LIST."
|
265 |
+
(cond
|
266 |
+
((null l) nil)
|
267 |
+
((eq? i (car l))
|
268 |
+
(cdr l))
|
269 |
+
(t
|
270 |
+
(cons (car l) (remove i (cdr l))))))
|
271 |
+
|
272 |
+
(define (remove-duplicates l)
|
273 |
+
"(remove-duplicates LIST)
|
274 |
+
Remove duplicate items in LIST."
|
275 |
+
(cond
|
276 |
+
((null l) l)
|
277 |
+
((member_string (car l) (cdr l))
|
278 |
+
(remove-duplicates (cdr l)))
|
279 |
+
(t
|
280 |
+
(cons (car l) (remove-duplicates (cdr l))))))
|
281 |
+
|
282 |
+
(define (nth n l)
|
283 |
+
"(nth N LIST)
|
284 |
+
Returns nth car of LIST, 0 is car."
|
285 |
+
(if (< n 1)
|
286 |
+
(car l)
|
287 |
+
(nth (- n 1) (cdr l))))
|
288 |
+
|
289 |
+
(define (position thing l)
|
290 |
+
"(position thing l)
|
291 |
+
What position is thing in l, -1 if it doesn't exist."
|
292 |
+
(let ((p 0) (m l))
|
293 |
+
(while (and m (not (equal? thing (car m))))
|
294 |
+
(set! p (+ 1 p))
|
295 |
+
(set! m (cdr m)))
|
296 |
+
(if m p nil)))
|
297 |
+
|
298 |
+
(define (nth_cdr n l)
|
299 |
+
"(nth_cdr N LIST)
|
300 |
+
Returns nth cdr of LIST, 0 is LIST."
|
301 |
+
(if (< n 1)
|
302 |
+
l
|
303 |
+
(nth_cdr (- n 1) (cdr l))))
|
304 |
+
|
305 |
+
(define (<= a b)
|
306 |
+
"(<= NUM1 NUM2)
|
307 |
+
Returns t if NUM1 is less than or equal to NUM2, nil otherwise. An error is
|
308 |
+
given is either argument is not a number."
|
309 |
+
(or (< a b)
|
310 |
+
(equal? a b)))
|
311 |
+
|
312 |
+
(define (>= a b)
|
313 |
+
"(>= NUM1 NUM2)
|
314 |
+
Returns t if NUM1 is greater than or equal to NUM2, nil otherwise.
|
315 |
+
An error is given is either argument is not a number."
|
316 |
+
(or (> a b)
|
317 |
+
(equal? a b)))
|
318 |
+
|
319 |
+
(define (approx-equal? a b diff)
|
320 |
+
"(approx-equal? a b diff)
|
321 |
+
True is the difference between a b is less than diff. This allows equality
|
322 |
+
between floats which may have been written out and read in and hence have
|
323 |
+
slightly different precision."
|
324 |
+
(< (if (> a b) (- a b) (- b a)) diff))
|
325 |
+
|
326 |
+
(define (assoc_string key alist)
|
327 |
+
"(assoc_string key alist)
|
328 |
+
Look up key in alist using string-equal. This allow indexing by
|
329 |
+
string rather than just symbols."
|
330 |
+
(cond
|
331 |
+
((null alist) nil)
|
332 |
+
((string-equal key (car (car alist))) (car alist))
|
333 |
+
(t (assoc_string key (cdr alist))))
|
334 |
+
)
|
335 |
+
|
336 |
+
(defvar *fasdump-hash* t)
|
337 |
+
|
338 |
+
(defun fasl-open (filename mode)
|
339 |
+
"(fasl-open FILENAME MODE)
|
340 |
+
Open fasl FILENAME as MODE. Returns a fasl-table."
|
341 |
+
(list (fopen filename mode)
|
342 |
+
(if (or (equal? mode "rb") *fasdump-hash*)
|
343 |
+
(cons-array 100))
|
344 |
+
;; If this is set NIL, then already hashed symbols will be
|
345 |
+
;; optimized, and additional ones will not.
|
346 |
+
0))
|
347 |
+
|
348 |
+
(defun fasl-close (table)
|
349 |
+
"(fasl-close TABLE)
|
350 |
+
Close fasl table."
|
351 |
+
(fclose (car table)))
|
352 |
+
|
353 |
+
(defun fasload args
|
354 |
+
"(fasload FILENAME ARGS)
|
355 |
+
Fast load FILENAME."
|
356 |
+
(let ((filename (car args))
|
357 |
+
(head (and (cadr args) (cons nil nil))))
|
358 |
+
(let ((table (fasl-open filename "rb"))
|
359 |
+
(exp)
|
360 |
+
(tail head))
|
361 |
+
(while (not (eq table (setq exp (fast-read table))))
|
362 |
+
(cond (head
|
363 |
+
(setq exp (cons exp nil))
|
364 |
+
(set-cdr! tail exp)
|
365 |
+
(setq tail exp))
|
366 |
+
('else
|
367 |
+
(eval exp))))
|
368 |
+
(fasl-close table)
|
369 |
+
(and head (cdr head)))))
|
370 |
+
|
371 |
+
(defun fasdump (filename forms)
|
372 |
+
"(fasdump FILENAME FORMS)
|
373 |
+
Fast dump FORMS into FILENAME."
|
374 |
+
(let ((table (fasl-open filename "wb"))
|
375 |
+
(l forms))
|
376 |
+
(while l
|
377 |
+
(fast-print (car l) table)
|
378 |
+
(set! l (cdr l)))
|
379 |
+
(fasl-close table)))
|
380 |
+
|
381 |
+
(defun compile-file (filename)
|
382 |
+
"(compile-file FILENAME)
|
383 |
+
Compile lisp forms in FILENAME.scm to FILENAME.bin."
|
384 |
+
(let ((forms (load (string-append filename ".scm") t)))
|
385 |
+
(puts "Saving forms
|
386 |
+
")
|
387 |
+
(fasdump (string-append filename ".bin")
|
388 |
+
forms)))
|
389 |
+
|
390 |
+
(defvar *properties* (cons-array 100)
|
391 |
+
"*properties*
|
392 |
+
Array for holding symbol property lists.")
|
393 |
+
|
394 |
+
(defun get (sym key)
|
395 |
+
"(get SYM KEY)
|
396 |
+
Get property named KEY for SYM."
|
397 |
+
(cdr (assq key (href *properties* sym))))
|
398 |
+
|
399 |
+
(defun putprop (sym val key)
|
400 |
+
"(putprop SYM VAL KEY)
|
401 |
+
Put property VAL named KEY for SYM."
|
402 |
+
(let ((alist (href *properties* sym)))
|
403 |
+
(let ((cell (assq key alist)))
|
404 |
+
(cond (cell
|
405 |
+
(set-cdr! cell val))
|
406 |
+
('else
|
407 |
+
(hset *properties* sym (cons (cons key val) alist))
|
408 |
+
val)))))
|
409 |
+
|
410 |
+
;;(define (mapcar1 f l1)
|
411 |
+
;; (and l1 (cons (f (car l1)) (mapcar1 f (cdr l1)))))
|
412 |
+
|
413 |
+
;; An iterative version of the above
|
414 |
+
(define (mapcar1 f l1)
|
415 |
+
(let ((l2 l1) (r nil))
|
416 |
+
(while l2
|
417 |
+
(set! r (cons (f (car l2)) r))
|
418 |
+
(set! l2 (cdr l2)))
|
419 |
+
(reverse r)))
|
420 |
+
|
421 |
+
;;(define (mapcar2 f l1 l2)
|
422 |
+
;; (and l1 l2 (cons (f (car l1) (car l2)) (mapcar2 f (cdr l1) (cdr l2)))))
|
423 |
+
|
424 |
+
;; An iterative version
|
425 |
+
(define (mapcar2 f l1 l2)
|
426 |
+
(let ((a1 l1) (a2 l2) (r nil))
|
427 |
+
(while a1
|
428 |
+
(set! r (cons (f (car a1) (car a2)) r))
|
429 |
+
(set! a1 (cdr a1))
|
430 |
+
(set! a2 (cdr a2)))
|
431 |
+
(reverse r)))
|
432 |
+
|
433 |
+
(define (mapcar . args)
|
434 |
+
"(mapcar FUNCTION ARGS [ARGS2])
|
435 |
+
Apply FUNCTION to each member of ARGS (and [ARGS2]), returning list of
|
436 |
+
return values."
|
437 |
+
(cond ((null args)
|
438 |
+
(error "too few arguments"))
|
439 |
+
((null (cdr args))
|
440 |
+
(error "too few arguments"))
|
441 |
+
((null (cdr (cdr args)))
|
442 |
+
(mapcar1 (car args) (car (cdr args))))
|
443 |
+
((null (cdr (cdr (cdr args))))
|
444 |
+
(mapcar2 (car args) (car (cdr args)) (car (cdr (cdr args)))))
|
445 |
+
('else
|
446 |
+
(error "two many arguments"))))
|
447 |
+
|
448 |
+
;; will be set automatically on start-up
|
449 |
+
(defvar libdir '<automatically_set>
|
450 |
+
"libdir
|
451 |
+
The pathname of the run-time libary directory. Note reseting is
|
452 |
+
almost definitely not what you want to do. This value is automatically
|
453 |
+
set at start up from the value specifed at compile-time or the value
|
454 |
+
specifed with --libdir on the command line. A number of other variables
|
455 |
+
depend on this value.")
|
456 |
+
|
457 |
+
(defvar load-path (list libdir)
|
458 |
+
"load-path
|
459 |
+
A list of directories containing .scm files. Used for various functions
|
460 |
+
such as load_library and require. Follows the same use as EMACS. By
|
461 |
+
default it is set up to the compile-time library directory but may be
|
462 |
+
changed by the user at run time, by adding a user's own library directory
|
463 |
+
or even replacing all of the standard library. [see Site initialization]")
|
464 |
+
|
465 |
+
;; will be set automatically on start-up
|
466 |
+
(defvar *ostype* 'unknown
|
467 |
+
"*ostype*
|
468 |
+
Contains the name of the operating system type that Festival is running
|
469 |
+
on, e.g. SunOS5, FreeBSD, linux etc. The value is taken from the Makefile
|
470 |
+
variable OSTYPE at compile time.")
|
471 |
+
|
472 |
+
(defvar etc-path (path-append libdir "etc/" *ostype*)
|
473 |
+
"etc-path
|
474 |
+
A list of directories where binaries specific to Festival may be located.
|
475 |
+
This variable is automatically set to LIBDIR/etc/OSTYPE/
|
476 |
+
and that path is added to the end of the UNIX PATH environment variable.")
|
477 |
+
|
478 |
+
(define (library_expand_filename fname)
|
479 |
+
"(library_expand_filename FILENAME)
|
480 |
+
Search for filename by appending FILENAME to each member of load-path.
|
481 |
+
Full expanded pathname is returned. If not found in load-path FILENAME
|
482 |
+
is returned."
|
483 |
+
(let ((p load-path)
|
484 |
+
(found nil))
|
485 |
+
(while (and p (null? found))
|
486 |
+
(let ((pot-file (path-append (car p) fname)))
|
487 |
+
(if (probe_file pot-file)
|
488 |
+
(setq found pot-file))
|
489 |
+
(setq p (cdr p))))
|
490 |
+
(if (null? found)
|
491 |
+
fname
|
492 |
+
found)))
|
493 |
+
|
494 |
+
(define (load_library fname)
|
495 |
+
"(load_library FILENAME)
|
496 |
+
Load file from library, appends FILENAME to each path in load-path
|
497 |
+
until a valid file is found. If none found loads name itself"
|
498 |
+
(load (library_expand_filename fname)))
|
499 |
+
|
500 |
+
(define (fasload_library fname)
|
501 |
+
"(fasload_library FILENAME)
|
502 |
+
Load binary file from library"
|
503 |
+
(fasload (library_expand_filename fname)))
|
504 |
+
|
505 |
+
(define (member item list)
|
506 |
+
"(member ITEM LIST)
|
507 |
+
Returns subset of LIST whose car is ITEM if it exists, nil otherwise."
|
508 |
+
(if (consp list)
|
509 |
+
(if (equal? item (car list))
|
510 |
+
list
|
511 |
+
(member item (cdr list)))
|
512 |
+
nil))
|
513 |
+
|
514 |
+
(define (member_string item list)
|
515 |
+
"(member_string STRING LIST)
|
516 |
+
Returns subset of LIST whose car is STRING if it exists, nil otherwise."
|
517 |
+
(if (consp list)
|
518 |
+
(if (string-equal item (car list))
|
519 |
+
list
|
520 |
+
(member_string item (cdr list)))
|
521 |
+
nil))
|
522 |
+
|
523 |
+
(defvar provided nil
|
524 |
+
"provided
|
525 |
+
List of file names (omitting .scm) that have been provided. This list
|
526 |
+
is checked by the require function to find out if a file needs to be
|
527 |
+
loaded. If that file is already in this list it is not loaded. Typically
|
528 |
+
a file will have (provide 'MYNAME) at its end so that a call to
|
529 |
+
(require 'MYNAME) will only load MYNAME.scm once.")
|
530 |
+
|
531 |
+
(define (require fname)
|
532 |
+
"(require FILENAME)
|
533 |
+
Checks if FNAME is already provided (member of variable provided) if not
|
534 |
+
loads it, appending \".scm\" to FILENAME. Uses load_library to find
|
535 |
+
the file."
|
536 |
+
(let ((bname (intern (basename fname))))
|
537 |
+
(if (null? (member bname provided))
|
538 |
+
(progn
|
539 |
+
;;; Compiled files aren't faster, so we don't do this
|
540 |
+
; (fasload_library (string-append fname ".bin"))
|
541 |
+
(load_library (string-append fname ".scm"))
|
542 |
+
't)
|
543 |
+
nil)))
|
544 |
+
|
545 |
+
(define (request fname)
|
546 |
+
"(request FILENAME)
|
547 |
+
Checks if FNAME is already provided (member of variable provided) if not
|
548 |
+
tries to loads it, appending \".scm\" to FILENAME. Uses load_library
|
549 |
+
to find the file. Unlike require, fname isn't found no error occurs"
|
550 |
+
(unwind-protect (require fname)))
|
551 |
+
|
552 |
+
(define (provide fname)
|
553 |
+
"(provide FILENAME)
|
554 |
+
Adds FNAME to the variable provided (if not already there). This means
|
555 |
+
that future calls to (require FILENAME) will not cause FILENAME to
|
556 |
+
be re-loaded."
|
557 |
+
(if (null? (member fname provided))
|
558 |
+
(set! provided (cons fname provided))))
|
559 |
+
|
560 |
+
(define (apply_hooks hooks obj)
|
561 |
+
"(apply_hooks HOOK OBJ)
|
562 |
+
Apply HOOK(s) to OBJ. HOOK is a function or list of functions that
|
563 |
+
take one argument."
|
564 |
+
(cond
|
565 |
+
((null? hooks) obj)
|
566 |
+
((consp hooks)
|
567 |
+
(apply_hooks (cdr hooks) ((car hooks) obj)))
|
568 |
+
(t (hooks obj))))
|
569 |
+
|
570 |
+
(define (apply func args)
|
571 |
+
"(apply FUNC ARGS)
|
572 |
+
Call FUNC with ARGS as arguments."
|
573 |
+
(eval
|
574 |
+
(cons func
|
575 |
+
(mapcar (lambda (a) (list 'quote a)) args))))
|
576 |
+
|
577 |
+
(defmac (autoload form)
|
578 |
+
"(autoload FUNCTION FILENAME DOCSTRING)
|
579 |
+
Define FUNCTION that when called automatically loads FILENAME
|
580 |
+
and calls FUNCTION (assumed to be defined in FILENAME)."
|
581 |
+
(list 'define
|
582 |
+
(cadr form)
|
583 |
+
(list
|
584 |
+
'lambda
|
585 |
+
'n
|
586 |
+
(list 'let (list (list 'me (cadr form)))
|
587 |
+
(list 'require (car (cdr (cdr form))))
|
588 |
+
(list 'if (list 'eq 'me (cadr form))
|
589 |
+
(list 'error
|
590 |
+
(list 'string-append
|
591 |
+
"autoload: \""
|
592 |
+
(car (cdr (cdr form)))
|
593 |
+
".scm\" does not define "
|
594 |
+
(list 'quote (cadr form)))))
|
595 |
+
|
596 |
+
(list 'apply (cadr form) 'n)))))
|
597 |
+
|
598 |
+
(define (:backtrace frame)
|
599 |
+
"(:backtrace [FRAME])
|
600 |
+
This function called *immediately* after an error will display a backtrace
|
601 |
+
of the functions evaluated before the error. With no arguments it
|
602 |
+
lists all stack frames, with the (possibly shortened) forms that were
|
603 |
+
evaluated at that level. With a numeric argument it displays
|
604 |
+
the form at that level in full. This function only works at
|
605 |
+
top level in the read-eval-print loop (command interpreter). Note
|
606 |
+
that any valid command will leave the backtrace stack empty. Also
|
607 |
+
note that backtrace itself does not reset the backtrace, unless you
|
608 |
+
make an error in calling it."
|
609 |
+
|
610 |
+
"The function is interpreted specially by the read-eval-interpreter
|
611 |
+
and hence has no body, its actual body is defined in
|
612 |
+
src/arch/siod-3.0/slib.cc."
|
613 |
+
)
|
614 |
+
|
615 |
+
(defvar hush_startup nil
|
616 |
+
"hush_startup
|
617 |
+
If set to non-nil, the copyright banner is not displayed at start up.")
|
618 |
+
|
619 |
+
(defvar editline_histsize 256
|
620 |
+
"editline_histsize
|
621 |
+
The number of lines to be saved in the users history file when a
|
622 |
+
Festival session ends. The histfile is \".festival_history\" in the
|
623 |
+
users home directory. Note this value is only checked when the
|
624 |
+
command interpreter is started, hence this should be set in a user's
|
625 |
+
\".festivalrc\" or system init file. Reseting it at the command
|
626 |
+
interpreter will have no effect.")
|
627 |
+
|
628 |
+
(defvar editline_no_echo (getenv "EMACS")
|
629 |
+
"editline_no_echo
|
630 |
+
When running under Emacs as an inferior process, we don't want to
|
631 |
+
echo the content of the line, only the prompt.")
|
632 |
+
|
633 |
+
(defvar ! nil
|
634 |
+
"!
|
635 |
+
In interactive mode, this variable's value is the return value of the
|
636 |
+
previously evaluated expression.")
|
637 |
+
|
638 |
+
(provide 'siod)
|
CosyVoice-ttsfrd/resource/festival/soleml-mode.scm
ADDED
@@ -0,0 +1,336 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1998 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Support for an SGML based mark-up language used in the SOLE
|
35 |
+
;;; project. This is all still experimental.
|
36 |
+
;;;
|
37 |
+
;;; This currently treats one file as one utterance (to make dealing with
|
38 |
+
;;; the SOLE museaum database easy
|
39 |
+
|
40 |
+
(set! soleml_word_features_stack nil)
|
41 |
+
(defvar sole_current_node nil)
|
42 |
+
|
43 |
+
(define (soleml_token_to_words utt token name)
|
44 |
+
"(soleml_token_to_words utt token name)
|
45 |
+
SOLEML mode token specific analysis."
|
46 |
+
(cond
|
47 |
+
|
48 |
+
(t
|
49 |
+
(soleml_previous_token_to_words utt token name))))
|
50 |
+
|
51 |
+
(define (voice_soleml)
|
52 |
+
"(soleml_voice)
|
53 |
+
Speaker specific initialisation for SOLE museum data."
|
54 |
+
(voice_rab_diphone)
|
55 |
+
;; Utterances only come at end of file
|
56 |
+
(set! eou_tree '((0)))
|
57 |
+
)
|
58 |
+
|
59 |
+
(defvar soleml_elements
|
60 |
+
'(
|
61 |
+
("(SOLEML" (ATTLIST UTT)
|
62 |
+
;; required to identify type
|
63 |
+
(voice_soleml) ;; so we know what state we start in
|
64 |
+
(set! soleml_utt (Utterance Tokens nil))
|
65 |
+
(utt.stream.create soleml_utt 'Token)
|
66 |
+
(utt.relation.create soleml_utt 'SOLEML)
|
67 |
+
(set! sole_current_node
|
68 |
+
(utt.relation_append soleml_utt 'SOLEML (cons "sole-ml" ATTLIST)))
|
69 |
+
soleml_utt
|
70 |
+
)
|
71 |
+
(")SOLEML" (ATTLIST UTT)
|
72 |
+
;; required to identify end token
|
73 |
+
;; Don't really want to synthesize this
|
74 |
+
;; (xxml_synth UTT) ;; Synthesis the remaining tokens
|
75 |
+
(set! soleml_utt UTT)
|
76 |
+
UTT
|
77 |
+
)
|
78 |
+
;; Utterance break elements
|
79 |
+
("(LANGUAGE" (ATTLIST UTT)
|
80 |
+
;; Select a new language
|
81 |
+
(select_language (car (xxml_attval "NAME" ATTLIST)))
|
82 |
+
UTT)
|
83 |
+
("(VOICE" (ATTLIST UTT)
|
84 |
+
;;(xxml_synth UTT)
|
85 |
+
;; Select a new voice
|
86 |
+
(cond
|
87 |
+
((equal? (car (xxml_attval "NAME" ATTLIST)) 'male1)
|
88 |
+
(voice_soleml_diphone))
|
89 |
+
((equal? (car (xxml_attval "NAME" ATTLIST)) 'male2)
|
90 |
+
(voice_soleml_diphone))
|
91 |
+
((equal? (car (xxml_attval "NAME" ATTLIST)) 'male3)
|
92 |
+
(voice_soleml_diphone))
|
93 |
+
(t
|
94 |
+
(print "SOLEML: selecting unknown voice")
|
95 |
+
(voice_soleml_diphone)))
|
96 |
+
UTT)
|
97 |
+
;; phrase-boundary // mark on token (??)
|
98 |
+
;; punct-elem // mark on token
|
99 |
+
;; sem-elem
|
100 |
+
;; text-elem // ignore
|
101 |
+
;; rhet-elem has nucleus and satellite
|
102 |
+
;; anaphora-elem
|
103 |
+
;; syn-elem
|
104 |
+
;; info-struct-elem
|
105 |
+
;; other-elem
|
106 |
+
("(PUNCT-ELEM" (ATTLIST UTT)
|
107 |
+
(soleml_push_word_features)
|
108 |
+
(set! xxml_word_features
|
109 |
+
(cons (list "punct-elem" "1")
|
110 |
+
(soleml_conv_attlist ATTLIST)))
|
111 |
+
UTT)
|
112 |
+
(")PUNCT-ELEM" (ATTLIST UTT)
|
113 |
+
(set! xxml_word_features (soleml_pop_word_features))
|
114 |
+
UTT)
|
115 |
+
("(PHRASE-BOUNDARY" (ATTLIST UTT)
|
116 |
+
(if (string-equal "4" (car (xxml_attval "STRENGTH" ATTLIST)))
|
117 |
+
(begin
|
118 |
+
;; (xxml_synth UTT)
|
119 |
+
UTT)
|
120 |
+
(let ((last_token (car (last (utt.stream UTT 'Token)))))
|
121 |
+
(if last_token
|
122 |
+
(item.set_feat last_token "pbreak" "B"))
|
123 |
+
UTT)))
|
124 |
+
;; For each recursive element simply build a new node
|
125 |
+
("(RHET-ELEM" (ATTLIST UTT)
|
126 |
+
(let ((sdesc (list 'rhet-elem (soleml_conv_attlist ATTLIST))))
|
127 |
+
(set! sole_current_node
|
128 |
+
(node.append_daughter sole_current_node sdesc))
|
129 |
+
UTT))
|
130 |
+
(")RHET-ELEM" (ATTLIST UTT)
|
131 |
+
(set! sole_current_node (node.parent sole_current_node))
|
132 |
+
UTT)
|
133 |
+
("(RHET-EMPH" (ATTLIST UTT)
|
134 |
+
(let ((sdesc (list 'rhet-emph (soleml_conv_attlist ATTLIST))))
|
135 |
+
(set! sole_current_node
|
136 |
+
(node.append_daughter sole_current_node sdesc))
|
137 |
+
UTT))
|
138 |
+
(")RHET-EMPH" (ATTLIST UTT)
|
139 |
+
(set! sole_current_node (node.parent sole_current_node))
|
140 |
+
UTT)
|
141 |
+
("(ANAPHORA-ELEM" (ATTLIST UTT)
|
142 |
+
(let ((sdesc (list 'anaphora-elem (soleml_conv_attlist ATTLIST))))
|
143 |
+
(set! sole_current_node
|
144 |
+
(node.append_daughter sole_current_node sdesc))
|
145 |
+
UTT))
|
146 |
+
(")ANAPHORA-ELEM" (ATTLIST UTT)
|
147 |
+
(set! sole_current_node (node.parent sole_current_node))
|
148 |
+
UTT)
|
149 |
+
("(SYN-ELEM" (ATTLIST UTT)
|
150 |
+
(let ((sdesc (list 'syn-elem (soleml_conv_attlist ATTLIST))))
|
151 |
+
(set! sole_current_node
|
152 |
+
(node.append_daughter sole_current_node sdesc))
|
153 |
+
UTT))
|
154 |
+
(")SYN-ELEM" (ATTLIST UTT)
|
155 |
+
(set! sole_current_node (node.parent sole_current_node))
|
156 |
+
UTT)
|
157 |
+
("(CONNECTIVE" (ATTLIST UTT)
|
158 |
+
(let ((sdesc (list 'connective (soleml_conv_attlist ATTLIST))))
|
159 |
+
(set! sole_current_node
|
160 |
+
(node.append_daughter sole_current_node sdesc))
|
161 |
+
UTT))
|
162 |
+
(")CONNECTIVE" (ATTLIST UTT)
|
163 |
+
(set! sole_current_node (node.parent sole_current_node))
|
164 |
+
UTT)
|
165 |
+
("(TEXT-ELEM" (ATTLIST UTT)
|
166 |
+
(let ((sdesc (list 'text-elem (soleml_conv_attlist ATTLIST))))
|
167 |
+
(set! sole_current_node
|
168 |
+
(node.append_daughter sole_current_node sdesc))
|
169 |
+
UTT))
|
170 |
+
(")TEXT-ELEM" (ATTLIST UTT)
|
171 |
+
(set! sole_current_node (node.parent sole_current_node))
|
172 |
+
UTT)
|
173 |
+
("(SEM-ELEM" (ATTLIST UTT)
|
174 |
+
(let ((sdesc (list 'sem-elem (soleml_conv_attlist ATTLIST))))
|
175 |
+
(set! sole_current_node
|
176 |
+
(node.append_daughter sole_current_node sdesc))
|
177 |
+
UTT))
|
178 |
+
(")SEM-ELEM" (ATTLIST UTT)
|
179 |
+
(set! sole_current_node (node.parent sole_current_node))
|
180 |
+
UTT)
|
181 |
+
("(INFO-STRUCT-ELEM" (ATTLIST UTT)
|
182 |
+
(let ((sdesc (list 'info-struct-elem (soleml_conv_attlist ATTLIST))))
|
183 |
+
(set! sole_current_node
|
184 |
+
(node.append_daughter sole_current_node sdesc))
|
185 |
+
UTT))
|
186 |
+
(")INFO-STRUCT-ELEM" (ATTLIST UTT)
|
187 |
+
(set! sole_current_node (node.parent sole_current_node))
|
188 |
+
UTT)
|
189 |
+
("(OTHER-ELEM" (ATTLIST UTT)
|
190 |
+
(let ((sdesc (list 'other-elem (soleml_conv_attlist ATTLIST))))
|
191 |
+
(set! sole_current_node
|
192 |
+
(node.append_daughter sole_current_node sdesc))
|
193 |
+
UTT))
|
194 |
+
(")OTHER-ELEM" (ATTLIST UTT)
|
195 |
+
(set! sole_current_node (node.parent sole_current_node))
|
196 |
+
UTT)
|
197 |
+
("(NUCLEUS" (ATTLIST UTT)
|
198 |
+
(let ((sdesc (list 'nucleus (soleml_conv_attlist ATTLIST))))
|
199 |
+
(set! sole_current_node
|
200 |
+
(node.append_daughter sole_current_node sdesc))
|
201 |
+
UTT))
|
202 |
+
(")NUCLEUS" (ATTLIST UTT)
|
203 |
+
(set! sole_current_node (node.parent sole_current_node))
|
204 |
+
UTT)
|
205 |
+
("(SATELLITE" (ATTLIST UTT)
|
206 |
+
(let ((sdesc (list 'satellite (soleml_conv_attlist ATTLIST))))
|
207 |
+
(set! sole_current_node
|
208 |
+
(node.append_daughter sole_current_node sdesc))
|
209 |
+
UTT))
|
210 |
+
(")SATELLITE" (ATTLIST UTT)
|
211 |
+
(set! sole_current_node (node.parent sole_current_node))
|
212 |
+
UTT)
|
213 |
+
;; Other control functions (probably not used in SOLE)
|
214 |
+
("(CALL" (ATTLIST UTT)
|
215 |
+
;; (xxml_synth UTT)
|
216 |
+
(if (string-matches (car (xxml_attval "ENGID" ATTLIST)) "festival.*")
|
217 |
+
(let ((comstr ""))
|
218 |
+
(mapcar
|
219 |
+
(lambda (c) (set! comstr (string-append comstr " " c)))
|
220 |
+
(xxml_attval "COMMAND" ATTLIST))
|
221 |
+
(eval (read-from-string comstr))))
|
222 |
+
UTT)
|
223 |
+
("(DEFINE" (ATTLIST UTT)
|
224 |
+
;; (xxml_synth UTT)
|
225 |
+
(if (not (string-equal "NATIVE" (car (xxml_attval "SCHEME" ATTLIST))))
|
226 |
+
(format t "DEFINE: unsupported SCHEME %s, definition ignored\n"
|
227 |
+
(car (xxml_attval "SCHEME" ATTLIST)))
|
228 |
+
(lex.add.entry
|
229 |
+
(list
|
230 |
+
(car (xxml_attval "WORDS" ATTLIST)) ;; head form
|
231 |
+
nil ;; pos
|
232 |
+
(lex.syllabify.phstress (xxml_attval "PRONS" ATTLIST)))))
|
233 |
+
UTT)
|
234 |
+
("(SOUND" (ATTLIST UTT)
|
235 |
+
;; (xxml_synth UTT)
|
236 |
+
(if (not soleml_omitted_mode)
|
237 |
+
(apply_hooks tts_hooks
|
238 |
+
(eval (list 'Utterance 'Wave
|
239 |
+
(car (xxml_attval "SRC" ATTLIST))))))
|
240 |
+
UTT)
|
241 |
+
("(EMPH" (ATTLIST UTT)
|
242 |
+
;; Festival is particularly bad at adding specific emphasis
|
243 |
+
;; that's what happens when you use statistical methods that
|
244 |
+
;; don't include any notion of emphasis
|
245 |
+
;; This is *not* recursive
|
246 |
+
(soleml_push_word_features)
|
247 |
+
(set! xxml_word_features
|
248 |
+
(cons (list "EMPH" "1") xxml_word_features))
|
249 |
+
UTT)
|
250 |
+
(")EMPH" (ATTLIST UTT)
|
251 |
+
(set! xxml_word_features (soleml_pop_word_features))
|
252 |
+
UTT)
|
253 |
+
("(WORD" (ATTLIST UTT)
|
254 |
+
;; a word in-line
|
255 |
+
(let ((name (xxml_attval "NAME" ATTLIST))
|
256 |
+
(pos (xxml_attval "POS" ATTLIST))
|
257 |
+
(accent (xxml_attval "ACCENT" ATTLIST))
|
258 |
+
(tone (xxml_attval "TONE" ATTLIST))
|
259 |
+
(phonemes (xxml_attval "PHONEMES" ATTLIST))
|
260 |
+
token)
|
261 |
+
(utt.item.insert UTT 'Token) ;; add new Token
|
262 |
+
(set! token (utt.stream.tail UTT 'Token))
|
263 |
+
(item.set_name token (car name))
|
264 |
+
(if pos (item.set_feat token "pos" (car pos)))
|
265 |
+
(if accent (item.set_feat token "accent" (car accent)))
|
266 |
+
(if tone (item.set_feat token "tone" (car tone)))
|
267 |
+
(if phonemes (item.set_feat token "phonemes"
|
268 |
+
(format nil "%l" phonemes)))
|
269 |
+
UTT))
|
270 |
+
))
|
271 |
+
|
272 |
+
(define (soleml_init_func)
|
273 |
+
"(soleml_init_func)
|
274 |
+
Initialisation for SOLEML mode"
|
275 |
+
(voice_soleml)
|
276 |
+
(set! soleml_previous_elements xxml_elements)
|
277 |
+
(set! xxml_elements soleml_elements)
|
278 |
+
(set! xxml_token_hooks soleml_token_function)
|
279 |
+
(set! soleml_previous_token_to_words english_token_to_words)
|
280 |
+
(set! english_token_to_words soleml_token_to_words)
|
281 |
+
(set! token_to_words soleml_token_to_words))
|
282 |
+
|
283 |
+
(define (soleml_exit_func)
|
284 |
+
"(soleml_exit_func)
|
285 |
+
Exit function for SOLEML mode"
|
286 |
+
(set! xxml_elements soleml_previous_elements)
|
287 |
+
(set! token_to_words soleml_previous_token_to_words)
|
288 |
+
(set! english_token_to_words soleml_previous_token_to_words))
|
289 |
+
|
290 |
+
(define (soleml_token_function si)
|
291 |
+
"(soleml_token_function si)
|
292 |
+
This is called for each token found."
|
293 |
+
(node.append_daughter sole_current_node si))
|
294 |
+
|
295 |
+
(define (soleml_push_word_features)
|
296 |
+
"(soleml_push_word_features)
|
297 |
+
Save current word features on stack."
|
298 |
+
(set! soleml_word_features_stack
|
299 |
+
(cons xxml_word_features soleml_word_features_stack)))
|
300 |
+
|
301 |
+
(define (soleml_pop_word_features)
|
302 |
+
"(soleml_pop_word_features)
|
303 |
+
Pop word features from stack."
|
304 |
+
(let ((r (car soleml_word_features_stack)))
|
305 |
+
(set! soleml_word_features_stack (cdr soleml_word_features_stack))
|
306 |
+
r))
|
307 |
+
|
308 |
+
(define (soleml_conv_attlist alist)
|
309 |
+
"(soleml_conv_attlist alist)
|
310 |
+
Flatten alist arguments."
|
311 |
+
(cond
|
312 |
+
((null alist) nil)
|
313 |
+
((null (car (cdr (car alist))))
|
314 |
+
(soleml_conv_attlist (cdr alist)))
|
315 |
+
((equal? (length (car (cdr (car alist)))) 1)
|
316 |
+
(cons
|
317 |
+
(list (car (car alist)) (car (car (cdr (car alist)))))
|
318 |
+
(soleml_conv_attlist (cdr alist))))
|
319 |
+
(t
|
320 |
+
(cons
|
321 |
+
(list (car (car alist)) (format nil "%l" (car (cdr (car alist)))))
|
322 |
+
(soleml_conv_attlist (cdr alist))))))
|
323 |
+
|
324 |
+
(set! tts_text_modes
|
325 |
+
(cons
|
326 |
+
(list
|
327 |
+
'soleml ;; mode name
|
328 |
+
(list ;; email mode params
|
329 |
+
(list 'init_func soleml_init_func)
|
330 |
+
(list 'exit_func soleml_exit_func)
|
331 |
+
'(analysis_type xxml)
|
332 |
+
(list 'filter
|
333 |
+
(format nil "%s -D %s " sgml_parse_progname libdir))))
|
334 |
+
tts_text_modes))
|
335 |
+
|
336 |
+
(provide 'soleml-mode)
|
CosyVoice-ttsfrd/resource/festival/tobi.scm
ADDED
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; A CART tree for predicting ToBI accents (learned from f2b)
|
35 |
+
;;; punctuation and minimal pos
|
36 |
+
;;;
|
37 |
+
|
38 |
+
; NON !H* L+H L*+
|
39 |
+
; NONE10265 583 66 40 0 0 10954 [10265/10954] 93.710
|
40 |
+
; H* 650 1805 61 57 0 0 2573 [1805/2573] 70.152
|
41 |
+
; !H* 317 241 125 42 0 0 725 [125/725] 17.241
|
42 |
+
; L+H* 457 486 76 80 0 0 1099 [80/1099] 7.279
|
43 |
+
; L* 45 113 14 4 0 0 176 [0/176] 0.000
|
44 |
+
; L*+H 6 6 0 1 0 0 13 [0/13] 0.000
|
45 |
+
; 11740 3234 342 224 0 0
|
46 |
+
;total 15540 correct 12275.000 78.990%
|
47 |
+
|
48 |
+
(set! f2b_int_accent_cart_tree
|
49 |
+
'
|
50 |
+
;; these first few lines are hand written to deal with emphasis (from ssml)
|
51 |
+
((R:SylStructure.parent.R:Token.parent.EMPH is 1)
|
52 |
+
(((NONE 0.0) (H* 1) (!H* 0.0) (L+H* 0) (L* 0) (L*+H 0) H*))
|
53 |
+
((n.R:SylStructure.parent.R:Token.parent.EMPH is 1)
|
54 |
+
(((NONE 1.0) (H* 0) (!H* 0.0) (L+H* 0) (L* 0) (L*+H 0) NONE))
|
55 |
+
((p.R:SylStructure.parent.R:Token.parent.EMPH is 1)
|
56 |
+
(((NONE 1.0) (H* 0) (!H* 0.0) (L+H* 0) (L* 0) (L*+H 0) NONE))
|
57 |
+
|
58 |
+
((ssyl_in is 10)
|
59 |
+
(((NONE 0.99726) (H* 0) (!H* 0.00273973) (L+H* 0) (L* 0) (L*+H 0) NONE))
|
60 |
+
((R:SylStructure.parent.gpos is to)
|
61 |
+
(((NONE 0.995984) (H* 0.00401606) (!H* 0) (L+H* 0) (L* 0) (L*+H 0) NONE))
|
62 |
+
((R:SylStructure.parent.gpos is cc)
|
63 |
+
(((NONE 0.987768) (H* 0.00611621) (!H* 0) (L+H* 0.00611621) (L* 0) (L*+H 0) NONE))
|
64 |
+
((ssyl_out is 10)
|
65 |
+
(((NONE 0.927273) (H* 0.0545455) (!H* 0) (L+H* 0.0181818) (L* 0) (L*+H 0) NONE))
|
66 |
+
((R:SylStructure.parent.gpos is in)
|
67 |
+
(((NONE 0.938322) (H* 0.0353618) (!H* 0.00493421) (L+H* 0.0197368) (L* 0.00164474) (L*+H 0) NONE))
|
68 |
+
((R:SylStructure.parent.gpos is wp)
|
69 |
+
(((NONE 0.895238) (H* 0.0857143) (!H* 0) (L+H* 0.0190476) (L* 0) (L*+H 0) NONE))
|
70 |
+
((R:SylStructure.parent.gpos is aux)
|
71 |
+
(((NONE 0.912281) (H* 0.0380117) (!H* 0.00584795) (L+H* 0.0350877) (L* 0.00584795) (L*+H 0.00292398) NONE))
|
72 |
+
((R:SylStructure.parent.gpos is det)
|
73 |
+
(((NONE 0.898004) (H* 0.0643016) (!H* 0.00332594) (L+H* 0.0332594) (L* 0) (L*+H 0.00110865) NONE))
|
74 |
+
((stress is 0)
|
75 |
+
(((NONE 0.978415) (H* 0.0144999) (!H* 0.00164772) (L+H* 0.00510793) (L* 0.000329544) (L*+H 0) NONE))
|
76 |
+
((R:SylStructure.parent.R:Word.p.gpos is 0)
|
77 |
+
(((NONE 0.209877) (H* 0.716049) (!H* 0) (L+H* 0.0617284) (L* 0.0123457) (L*+H 0) H*))
|
78 |
+
((R:SylStructure.parent.gpos is md)
|
79 |
+
(((NONE 0.693548) (H* 0.177419) (!H* 0.0322581) (L+H* 0.0967742) (L* 0) (L*+H 0) NONE))
|
80 |
+
((p.syl_break is 3)
|
81 |
+
((syl_break is 1)
|
82 |
+
(((NONE 0.4375) (H* 0.416667) (!H* 0) (L+H* 0.135417) (L* 0.0104167) (L*+H 0) NONE))
|
83 |
+
(((NONE 0.171171) (H* 0.666667) (!H* 0) (L+H* 0.144144) (L* 0.018018) (L*+H 0) H*)))
|
84 |
+
((pp.syl_break is 4)
|
85 |
+
((R:SylStructure.parent.R:Word.pp.gpos is in)
|
86 |
+
(((NONE 0.0980392) (H* 0.803922) (!H* 0) (L+H* 0.0784314) (L* 0.0196078) (L*+H 0) H*))
|
87 |
+
((syl_out is 0)
|
88 |
+
(((NONE 0.0185185) (H* 0.796296) (!H* 0.037037) (L+H* 0.0925926) (L* 0.0555556) (L*+H 0) H*))
|
89 |
+
((R:SylStructure.parent.R:Word.n.gpos is in)
|
90 |
+
(((NONE 0.132353) (H* 0.676471) (!H* 0) (L+H* 0.161765) (L* 0.0294118) (L*+H 0) H*))
|
91 |
+
((syl_break is 0)
|
92 |
+
(((NONE 0.125) (H* 0.633929) (!H* 0.0133929) (L+H* 0.183036) (L* 0.0401786) (L*+H 0.00446429) H*))
|
93 |
+
((n.stress is 0)
|
94 |
+
(((NONE 0.364865) (H* 0.567568) (!H* 0) (L+H* 0.0540541) (L* 0.0135135) (L*+H 0) H*))
|
95 |
+
((p.syl_break is 0)
|
96 |
+
(((NONE 0.612903) (H* 0.290323) (!H* 0) (L+H* 0.0967742) (L* 0) (L*+H 0) NONE))
|
97 |
+
(((NONE 0.32) (H* 0.44) (!H* 0.02) (L+H* 0.22) (L* 0) (L*+H 0) H*))))))))
|
98 |
+
((ssyl_in is 0)
|
99 |
+
(((NONE 0.167769) (H* 0.628926) (!H* 0.0214876) (L+H* 0.142975) (L* 0.0363636) (L*+H 0.00247934) H*))
|
100 |
+
((ssyl_out is 4)
|
101 |
+
(((NONE 0.490385) (H* 0.240385) (!H* 0.0961538) (L+H* 0.163462) (L* 0.00961538) (L*+H 0) NONE))
|
102 |
+
((pp.syl_break is 3)
|
103 |
+
((R:SylStructure.parent.R:Word.p.gpos is content)
|
104 |
+
(((NONE 0.346154) (H* 0.346154) (!H* 0.0769231) (L+H* 0.192308) (L* 0.0384615) (L*+H 0) NONE))
|
105 |
+
(((NONE 0.160714) (H* 0.571429) (!H* 0.0178571) (L+H* 0.178571) (L* 0.0714286) (L*+H 0) H*)))
|
106 |
+
((syl_in is 2)
|
107 |
+
((n.stress is 0)
|
108 |
+
((R:SylStructure.parent.R:Word.p.gpos is in)
|
109 |
+
(((NONE 0.218182) (H* 0.618182) (!H* 0.0363636) (L+H* 0.0909091) (L* 0.0181818) (L*+H 0.0181818) H*))
|
110 |
+
((syl_out is 2)
|
111 |
+
(((NONE 0.0961538) (H* 0.634615) (!H* 0.0961538) (L+H* 0.134615) (L* 0.0384615) (L*+H 0) H*))
|
112 |
+
((R:SylStructure.parent.R:Word.p.gpos is content)
|
113 |
+
((syl_out is 4)
|
114 |
+
(((NONE 0.56) (H* 0.12) (!H* 0.08) (L+H* 0.24) (L* 0) (L*+H 0) NONE))
|
115 |
+
(((NONE 0.262821) (H* 0.378205) (!H* 0.121795) (L+H* 0.192308) (L* 0.0448718) (L*+H 0) H*)))
|
116 |
+
(((NONE 0.161905) (H* 0.590476) (!H* 0.0285714) (L+H* 0.171429) (L* 0.047619) (L*+H 0) H*)))))
|
117 |
+
((n.syl_break is 0)
|
118 |
+
(((NONE 0.551724) (H* 0.293103) (!H* 0) (L+H* 0.155172) (L* 0) (L*+H 0) NONE))
|
119 |
+
(((NONE 0.408451) (H* 0.422535) (!H* 0.056338) (L+H* 0.112676) (L* 0) (L*+H 0) H*))))
|
120 |
+
((R:SylStructure.parent.R:Word.n.gpos is 0)
|
121 |
+
((syl_break is 0)
|
122 |
+
(((NONE 0.105263) (H* 0.315789) (!H* 0.157895) (L+H* 0.421053) (L* 0) (L*+H 0) L+H*))
|
123 |
+
(((NONE 0.641509) (H* 0.132075) (!H* 0.132075) (L+H* 0.0943396) (L* 0) (L*+H 0) NONE)))
|
124 |
+
((syl_break is 1)
|
125 |
+
((ssyl_in is 3)
|
126 |
+
(((NONE 0.638889) (H* 0.152778) (!H* 0.125) (L+H* 0.0833333) (L* 0) (L*+H 0) NONE))
|
127 |
+
((p.syl_break is 0)
|
128 |
+
(((NONE 0.551402) (H* 0.186916) (!H* 0.158879) (L+H* 0.0841122) (L* 0.0186916) (L*+H 0) NONE))
|
129 |
+
((n.stress is 0)
|
130 |
+
((pp.syl_break is 0)
|
131 |
+
(((NONE 0.413043) (H* 0.184783) (!H* 0.152174) (L+H* 0.23913) (L* 0.0108696) (L*+H 0) NONE))
|
132 |
+
(((NONE 0.2125) (H* 0.3375) (!H* 0.1875) (L+H* 0.2125) (L* 0.05) (L*+H 0) H*)))
|
133 |
+
(((NONE 0.449153) (H* 0.245763) (!H* 0.101695) (L+H* 0.20339) (L* 0) (L*+H 0) NONE)))))
|
134 |
+
((syl_out is 4)
|
135 |
+
((nn.syl_break is 0)
|
136 |
+
((pp.syl_break is 0)
|
137 |
+
(((NONE 0.45614) (H* 0.210526) (!H* 0.192982) (L+H* 0.140351) (L* 0) (L*+H 0) NONE))
|
138 |
+
(((NONE 0.288462) (H* 0.25) (!H* 0.0961538) (L+H* 0.346154) (L* 0) (L*+H 0.0192308) L+H*)))
|
139 |
+
(((NONE 0.163934) (H* 0.459016) (!H* 0.131148) (L+H* 0.245902) (L* 0) (L*+H 0) H*)))
|
140 |
+
((syl_out is 5)
|
141 |
+
((R:SylStructure.parent.R:Word.p.gpos is content)
|
142 |
+
(((NONE 0.372881) (H* 0.20339) (!H* 0.169492) (L+H* 0.220339) (L* 0.0338983) (L*+H 0) NONE))
|
143 |
+
(((NONE 0.0961538) (H* 0.673077) (!H* 0.115385) (L+H* 0.0961538) (L* 0.0192308) (L*+H 0) H*)))
|
144 |
+
((R:SylStructure.parent.R:Word.pp.gpos is in)
|
145 |
+
((syl_in is 4)
|
146 |
+
(((NONE 0.352113) (H* 0.422535) (!H* 0.15493) (L+H* 0.0704225) (L* 0) (L*+H 0) H*))
|
147 |
+
((syl_in is 3)
|
148 |
+
(((NONE 0.290323) (H* 0.467742) (!H* 0.0806452) (L+H* 0.145161) (L* 0.016129) (L*+H 0) H*))
|
149 |
+
((pp.syl_break is 0)
|
150 |
+
(((NONE 0.465517) (H* 0.293103) (!H* 0.172414) (L+H* 0.0689655) (L* 0) (L*+H 0) NONE))
|
151 |
+
((R:SylStructure.parent.R:Word.p.gpos is content)
|
152 |
+
(((NONE 0.18) (H* 0.36) (!H* 0.28) (L+H* 0.14) (L* 0.04) (L*+H 0) H*))
|
153 |
+
(((NONE 0.0877193) (H* 0.22807) (!H* 0.368421) (L+H* 0.298246) (L* 0.0175439) (L*+H 0) !H*))))))
|
154 |
+
((ssyl_out is 2)
|
155 |
+
((p.syl_break is 0)
|
156 |
+
(((NONE 0.634921) (H* 0.174603) (!H* 0.0793651) (L+H* 0.111111) (L* 0) (L*+H 0) NONE))
|
157 |
+
((pp.syl_break is 0)
|
158 |
+
(((NONE 0.388889) (H* 0.148148) (!H* 0.148148) (L+H* 0.259259) (L* 0.0185185) (L*+H 0.037037) NONE))
|
159 |
+
(((NONE 0.294118) (H* 0.137255) (!H* 0.215686) (L+H* 0.333333) (L* 0.0196078) (L*+H 0) L+H*))))
|
160 |
+
((R:SylStructure.parent.R:Word.pp.gpos is to)
|
161 |
+
(((NONE 0.0877193) (H* 0.350877) (!H* 0.210526) (L+H* 0.315789) (L* 0.0350877) (L*+H 0) H*))
|
162 |
+
((syl_break is 3)
|
163 |
+
((pp.syl_break is 0)
|
164 |
+
(((NONE 0.478261) (H* 0.141304) (!H* 0.195652) (L+H* 0.184783) (L* 0) (L*+H 0) NONE))
|
165 |
+
(((NONE 0.217822) (H* 0.366337) (!H* 0.257426) (L+H* 0.128713) (L* 0.029703) (L*+H 0) H*)))
|
166 |
+
((syl_in is 7)
|
167 |
+
((n.stress is 0)
|
168 |
+
((R:SylStructure.parent.R:Word.n.gpos is content)
|
169 |
+
(((NONE 0.117647) (H* 0.220588) (!H* 0.441176) (L+H* 0.176471) (L* 0.0441176) (L*+H 0) !H*))
|
170 |
+
(((NONE 0.415385) (H* 0.0461538) (!H* 0.2) (L+H* 0.246154) (L* 0.0923077) (L*+H 0) NONE)))
|
171 |
+
(((NONE 0.716981) (H* 0.113208) (!H* 0.0943396) (L+H* 0.0754717) (L* 0) (L*+H 0) NONE)))
|
172 |
+
((R:SylStructure.parent.R:Word.n.gpos is cc)
|
173 |
+
(((NONE 0.292308) (H* 0.184615) (!H* 0.276923) (L+H* 0.246154) (L* 0) (L*+H 0) NONE))
|
174 |
+
((nn.syl_break is 3)
|
175 |
+
(((NONE 0.2) (H* 0.333333) (!H* 0.283333) (L+H* 0.15) (L* 0.0333333) (L*+H 0) H*))
|
176 |
+
((ssyl_in is 4)
|
177 |
+
(((NONE 0.383838) (H* 0.151515) (!H* 0.212121) (L+H* 0.20202) (L* 0.050505) (L*+H 0) NONE))
|
178 |
+
((p.syl_break is 0)
|
179 |
+
((n.syl_break is 1)
|
180 |
+
(((NONE 0.526316) (H* 0.210526) (!H* 0.0921053) (L+H* 0.171053) (L* 0) (L*+H 0) NONE))
|
181 |
+
((ssyl_in is 3)
|
182 |
+
(((NONE 0.509804) (H* 0.0980392) (!H* 0.215686) (L+H* 0.156863) (L* 0.0196078) (L*+H 0) NONE))
|
183 |
+
((pp.syl_break is 0)
|
184 |
+
(((NONE 0.506667) (H* 0.173333) (!H* 0.106667) (L+H* 0.2) (L* 0.0133333) (L*+H 0) NONE))
|
185 |
+
((ssyl_in is 1)
|
186 |
+
(((NONE 0.1) (H* 0.4) (!H* 0.266667) (L+H* 0.188889) (L* 0.0444444) (L*+H 0) H*))
|
187 |
+
(((NONE 0.326316) (H* 0.210526) (!H* 0.221053) (L+H* 0.189474) (L* 0.0526316) (L*+H 0) NONE))))))
|
188 |
+
((R:SylStructure.parent.R:Word.p.gpos is in)
|
189 |
+
(((NONE 0.0625) (H* 0.296875) (!H* 0.265625) (L+H* 0.328125) (L* 0.046875) (L*+H 0) L+H*))
|
190 |
+
((syl_in is 6)
|
191 |
+
(((NONE 0.271739) (H* 0.152174) (!H* 0.358696) (L+H* 0.184783) (L* 0.0326087) (L*+H 0) !H*))
|
192 |
+
((syl_out is 2)
|
193 |
+
(((NONE 0.111111) (H* 0.361111) (!H* 0.319444) (L+H* 0.138889) (L* 0.0555556) (L*+H 0.0138889) H*))
|
194 |
+
((syl_in is 4)
|
195 |
+
(((NONE 0.224) (H* 0.152) (!H* 0.328) (L+H* 0.24) (L* 0.056) (L*+H 0) !H*))
|
196 |
+
((n.stress is 0)
|
197 |
+
((syl_in is 3)
|
198 |
+
(((NONE 0.0833333) (H* 0.333333) (!H* 0.233333) (L+H* 0.216667) (L* 0.133333) (L*+H 0) H*))
|
199 |
+
(((NONE 0.283465) (H* 0.188976) (!H* 0.23622) (L+H* 0.204724) (L* 0.0708661) (L*+H 0.015748) NONE)))
|
200 |
+
(((NONE 0.305263) (H* 0.284211) (!H* 0.210526) (L+H* 0.178947) (L* 0.0210526) (L*+H 0) NONE))))))))))))))))))))))))))))))))))))))))
|
201 |
+
)
|
202 |
+
|
203 |
+
; NON L-L L-H H-L
|
204 |
+
; NONE13017 0 0 0 0 0 13017 [13017/13017] 100.000
|
205 |
+
; H- 339 81 0 1 1 0 422 [81/422] 19.194
|
206 |
+
; L- 223 52 0 5 0 0 280 [0/280] 0.000
|
207 |
+
; L-L% 17 0 0 1057 96 0 1170 [1057/1170] 90.342
|
208 |
+
; L-H% 16 0 0 457 139 0 612 [139/612] 22.712
|
209 |
+
; H-L% 5 0 0 30 4 0 39 [0/39] 0.000
|
210 |
+
; 13617 133 0 1550 240 0
|
211 |
+
;total 15540 correct 14294.000 91.982%
|
212 |
+
(set! f2b_int_tone_cart_tree
|
213 |
+
'((lisp_syl_yn_question is 1)
|
214 |
+
(((H-H% 1.0) H-H%))
|
215 |
+
((R:SylStructure.parent.gpos is cc)
|
216 |
+
(((NONE 0.996942) (H- 0.0030581) (L- 0) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
217 |
+
((ssyl_in is 10)
|
218 |
+
(((NONE 0.989041) (H- 0.00273973) (L- 0) (L-L% 0.00273973) (L-H% 0.00547945) (H-L% 0) NONE))
|
219 |
+
((R:SylStructure.parent.gpos is md)
|
220 |
+
(((NONE 0.986014) (H- 0) (L- 0) (L-L% 0.00699301) (L-H% 0.00699301) (H-L% 0) NONE))
|
221 |
+
((p.old_syl_break is 4)
|
222 |
+
(((NONE 0.99462) (H- 0.00239091) (L- 0.00119546) (L-L% 0) (L-H% 0.00119546) (H-L% 0.000597729) NONE))
|
223 |
+
((R:SylStructure.parent.gpos is det)
|
224 |
+
(((NONE 0.984635) (H- 0.00512164) (L- 0.00384123) (L-L% 0.00384123) (L-H% 0.00256082) (H-L% 0) NONE))
|
225 |
+
((n.old_syl_break is 3)
|
226 |
+
(((NONE 0.981848) (H- 0.00495049) (L- 0.00330033) (L-L% 0.00660066) (L-H% 0.00330033) (H-L% 0) NONE))
|
227 |
+
((n.old_syl_break is 4)
|
228 |
+
(((NONE 0.986982) (H- 0.000591716) (L- 0.0100592) (L-L% 0.00118343) (L-H% 0.00118343) (H-L% 0) NONE))
|
229 |
+
((R:SylStructure.parent.gpos is in)
|
230 |
+
(((NONE 0.977865) (H- 0.00390625) (L- 0.00390625) (L-L% 0.0078125) (L-H% 0.00651042) (H-L% 0) NONE))
|
231 |
+
((old_syl_break is 4)
|
232 |
+
((R:SylStructure.parent.R:Word.n.gpos is 0)
|
233 |
+
(((NONE 0) (H- 0.00892857) (L- 0) (L-L% 0.982143) (L-H% 0.00892857) (H-L% 0) L-L%))
|
234 |
+
((R:SylStructure.parent.R:Word.p.gpos is aux)
|
235 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.761905) (L-H% 0.238095) (H-L% 0) L-L%))
|
236 |
+
((R:SylStructure.parent.R:Word.n.gpos is det)
|
237 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.652542) (L-H% 0.347458) (H-L% 0) L-L%))
|
238 |
+
((ssyl_in is 4)
|
239 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.682243) (L-H% 0.313084) (H-L% 0.0046729) L-L%))
|
240 |
+
((syl_in is 6)
|
241 |
+
(((NONE 0) (H- 0) (L- 0.00649351) (L-L% 0.688312) (L-H% 0.298701) (H-L% 0.00649351) L-L%))
|
242 |
+
((R:SylStructure.parent.R:Word.n.gpos is aux)
|
243 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.464286) (L-H% 0.535714) (H-L% 0) L-H%))
|
244 |
+
((syl_in is 5)
|
245 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.666667) (L-H% 0.322034) (H-L% 0.0112994) L-L%))
|
246 |
+
((sub_phrases is 2)
|
247 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.696429) (L-H% 0.267857) (H-L% 0.0357143) L-L%))
|
248 |
+
((R:SylStructure.parent.R:Word.p.gpos is det)
|
249 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.628866) (L-H% 0.350515) (H-L% 0.0206186) L-L%))
|
250 |
+
((sub_phrases is 0)
|
251 |
+
((R:SylStructure.parent.R:Word.n.gpos is in)
|
252 |
+
((n.old_syl_break is 0)
|
253 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.68254) (L-H% 0.31746) (H-L% 0) L-L%))
|
254 |
+
(((NONE 0) (H- 0.0147059) (L- 0) (L-L% 0.338235) (L-H% 0.632353) (H-L% 0.0147059) L-H%)))
|
255 |
+
((n.stress is 0)
|
256 |
+
(((NONE 0) (H- 0) (L- 0.0108303) (L-L% 0.599278) (L-H% 0.32491) (H-L% 0.064982) L-L%))
|
257 |
+
(((NONE 0) (H- 0) (L- 0) (L-L% 0.386364) (L-H% 0.579545) (H-L% 0.0340909) L-H%))))
|
258 |
+
(((NONE 0) (H- 0) (L- 0.00456621) (L-L% 0.652968) (L-H% 0.324201) (H-L% 0.0182648) L-L%))))))))))))
|
259 |
+
((R:SylStructure.parent.gpos is pps)
|
260 |
+
(((NONE 0.988764) (H- 0.011236) (L- 0) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
261 |
+
((syl_in is 0)
|
262 |
+
(((NONE 0.984848) (H- 0.0126263) (L- 0.00252525) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
263 |
+
((R:SylStructure.parent.gpos is content)
|
264 |
+
((R:SylStructure.parent.R:Word.nn.gpos is 0)
|
265 |
+
(((NONE 0.967914) (H- 0.0106952) (L- 0.0213904) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
266 |
+
((pp.old_syl_break is 4)
|
267 |
+
(((NONE 0.972315) (H- 0.0232558) (L- 0.00442968) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
268 |
+
((syl_in is 1)
|
269 |
+
(((NONE 0.951163) (H- 0.0372093) (L- 0.0116279) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
270 |
+
((nn.old_syl_break is 4)
|
271 |
+
(((NONE 0.956244) (H- 0.0127621) (L- 0.0291705) (L-L% 0) (L-H% 0) (H-L% 0.00182315) NONE))
|
272 |
+
((R:SylStructure.parent.R:Word.nn.gpos is in)
|
273 |
+
(((NONE 0.941919) (H- 0.0378788) (L- 0.020202) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
274 |
+
((R:SylStructure.parent.R:Word.p.gpos is cc)
|
275 |
+
(((NONE 0.919643) (H- 0.0714286) (L- 0.00892857) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
276 |
+
((nn.old_syl_break is 3)
|
277 |
+
(((NONE 0.927273) (H- 0.0472727) (L- 0.0254545) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
278 |
+
((R:SylStructure.parent.R:Word.nn.gpos is cc)
|
279 |
+
(((NONE 0.921569) (H- 0.0588235) (L- 0.0196078) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
280 |
+
((ssyl_in is 0)
|
281 |
+
(((NONE 0.911591) (H- 0.0825147) (L- 0.00589391) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
282 |
+
((R:SylStructure.parent.R:Word.nn.gpos is to)
|
283 |
+
(((NONE 0.912281) (H- 0.0350877) (L- 0.0526316) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
284 |
+
((R:SylStructure.parent.R:Word.pp.gpos is to)
|
285 |
+
(((NONE 0.894737) (H- 0.0526316) (L- 0.0526316) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
286 |
+
((R:SylStructure.parent.R:Word.p.gpos is in)
|
287 |
+
(((NONE 0.888554) (H- 0.0662651) (L- 0.0451807) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
288 |
+
((R:SylStructure.parent.R:Word.pp.gpos is in)
|
289 |
+
(((NONE 0.875817) (H- 0.0718954) (L- 0.0522876) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
290 |
+
((syl_in is 2)
|
291 |
+
(((NONE 0.869942) (H- 0.0867052) (L- 0.0433526) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
292 |
+
((R:SylStructure.parent.R:Word.nn.gpos is aux)
|
293 |
+
(((NONE 0.854839) (H- 0.0967742) (L- 0.0483871) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
294 |
+
((sub_phrases is 1)
|
295 |
+
(((NONE 0.836538) (H- 0.0721154) (L- 0.0913462) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
296 |
+
((R:SylStructure.parent.R:Word.pp.gpos is det)
|
297 |
+
(((NONE 0.832402) (H- 0.0949721) (L- 0.0726257) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
298 |
+
((ssyl_in is 4)
|
299 |
+
(((NONE 0.793103) (H- 0.103448) (L- 0.103448) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
300 |
+
((n.old_syl_break is 0)
|
301 |
+
(((NONE 0.850816) (H- 0.0839161) (L- 0.0652681) (L-L% 0) (L-H% 0) (H-L% 0) NONE))
|
302 |
+
((R:SylStructure.parent.R:Word.n.gpos is content)
|
303 |
+
(((NONE 0.889447) (H- 0.0753769) (L- 0.0251256) (L-L% 0) (L-H% 0) (H-L% 0.0100503) NONE))
|
304 |
+
((old_syl_break is 3)
|
305 |
+
(((NONE 0) (H- 0.609023) (L- 0.390977) (L-L% 0) (L-H% 0) (H-L% 0) H-))
|
306 |
+
(((NONE 1) (H- 0) (L- 0) (L-L% 0) (L-H% 0) (H-L% 0) NONE)))))))))))))))))))))))
|
307 |
+
(((NONE 0.978947) (H- 0.0131579) (L- 0.00789474) (L-L% 0) (L-H% 0) (H-L% 0) NONE)))))))))))))))
|
308 |
+
|
309 |
+
)
|
310 |
+
|
311 |
+
(defvar tobi_support_yn_questions t
|
312 |
+
"tobi_support_yn_questions
|
313 |
+
If set a crude final rise will be added at utterance that are judged
|
314 |
+
to be yesy/no questions. Namely ending in a ? and not starting with
|
315 |
+
a wh-for word.")
|
316 |
+
|
317 |
+
(define (first_word syl)
|
318 |
+
(let ((w (item.relation.parent syl 'SylStructure)))
|
319 |
+
(item.relation.first w 'Word)))
|
320 |
+
|
321 |
+
(define (syl_yn_question syl)
|
322 |
+
"(syl_yn_question utt syl)
|
323 |
+
Return 1 if this is the last syllable in a yes-no question. Basically
|
324 |
+
if it ends in question mark and doesn't start with a wh-woerd. This
|
325 |
+
isn't right but it depends on how much you want rising intonation."
|
326 |
+
(if (and
|
327 |
+
tobi_support_yn_questions
|
328 |
+
(member_string (item.feat syl "syl_break") '("4" "3"))
|
329 |
+
(not (member_string
|
330 |
+
(downcase (item.name (first_word syl)))
|
331 |
+
'("how" "why" "which" "who" "what" "where" "when")))
|
332 |
+
(string-matches
|
333 |
+
(item.feat syl "R:SylStructure.parent.R:Token.parent.punc")
|
334 |
+
".*\\?.*"))
|
335 |
+
"1"
|
336 |
+
"0"))
|
337 |
+
|
338 |
+
(provide 'tobi)
|
CosyVoice-ttsfrd/resource/festival/tobi_rules.scm
ADDED
@@ -0,0 +1,1002 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;; Authors: Robert A. J. Clark and Alan W Black
|
34 |
+
;;; Modifications and Checking:
|
35 |
+
;;; Gregor Moehler ([email protected])
|
36 |
+
;;; Matthew Stone ([email protected])
|
37 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
38 |
+
;;;
|
39 |
+
;;; Generate F0 points from tobi labels using rules given in:
|
40 |
+
;;; Jilka, Moehler & Dogil (forthcomming in Speech Communications)
|
41 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
42 |
+
;;;
|
43 |
+
;;; *** Converted to new Relation architecture -- but not checked yet -- awb
|
44 |
+
;;; -> crude (beta) checking: gm in Dec. 98
|
45 |
+
;;;
|
46 |
+
;;; -> fixed TAKEOVER bug that used time value
|
47 |
+
;;; as pitch target (!) - MDS 1/02
|
48 |
+
;;; -> hacked around bunches of target overlap problems - MDS 1/02
|
49 |
+
;;; -> added primitive pitch range controls
|
50 |
+
;;;
|
51 |
+
;;; Known problems and bugs:
|
52 |
+
;;; Can't currently use voicing intervals which cross syllable boundaries,
|
53 |
+
;;; so pre/post-nuclear tones are currently places 0.2s before/after the
|
54 |
+
;;; nuclear tone even if no voicing occurs. Failing this they default a
|
55 |
+
;;; percentage of the voicing for that syllable.
|
56 |
+
;;;
|
57 |
+
;;; Don't know about target points ahead of the current syllable.
|
58 |
+
;;; (As you need to know what comes before them to calculate them)
|
59 |
+
;;; So: post accent tones are placed 0.2 ahead if following syllable exists
|
60 |
+
;;; ends before 0.2 from starred target and is not accented
|
61 |
+
;;; The H-target of the H+!H* is 0.2 sec instead of 0.15 sec before
|
62 |
+
;;; starred tone.
|
63 |
+
;;;
|
64 |
+
;;; Multi-utterance input has not been tested.
|
65 |
+
;;;
|
66 |
+
;;; !H- does not generate any targets
|
67 |
+
;;;
|
68 |
+
;;; Unfortunaltely some other modules may decide to put pauses in the
|
69 |
+
;;; middle of a phrase
|
70 |
+
;;;
|
71 |
+
;;; valleys are not tested yet
|
72 |
+
;;;
|
73 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
74 |
+
;;;
|
75 |
+
;;; To use this in a voice
|
76 |
+
;;; (require 'tobi_rules)
|
77 |
+
;;; And in the voice call
|
78 |
+
;;; (setup_tobi_f0_method)
|
79 |
+
;;; Set the following for your speaker's F0 range
|
80 |
+
;;; (Parameter.set 'Default_Topline 146)
|
81 |
+
;;; (Parameter.set 'Default_Start_Baseline 61)
|
82 |
+
;;; (Parameter.set 'Valley_Dip 75)
|
83 |
+
|
84 |
+
;; level of debug printout
|
85 |
+
(set! printdebug 0)
|
86 |
+
|
87 |
+
(define (setup_tobi_f0_method)
|
88 |
+
"(setup_tobi_f0_method)
|
89 |
+
Set up parameters for current voice to use the implementaion
|
90 |
+
of ToBI labels to F0 targets by rule."
|
91 |
+
(Parameter.set 'Int_Method Intonation_Tree)
|
92 |
+
(Parameter.set 'Int_Target_Method Int_Targets_General)
|
93 |
+
(set! int_accent_cart_tree no_int_cart_tree) ; NONE always
|
94 |
+
(set! int_tone_cart_tree no_int_cart_tree) ; NONE always
|
95 |
+
(set! int_general_params
|
96 |
+
(list
|
97 |
+
(list 'targ_func tobi_f0_targets))) ; we will return a list of f0 targets here
|
98 |
+
|
99 |
+
(Parameter.set 'Phrase_Method 'cart_tree)
|
100 |
+
(set! phrase_cart_tree tobi_label_phrase_cart_tree) ; redefines the phrasebreak tree
|
101 |
+
t)
|
102 |
+
|
103 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
104 |
+
;;;;;;
|
105 |
+
;;;;;; Define and set the new f0 rules
|
106 |
+
;;;;;;
|
107 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
108 |
+
|
109 |
+
;;; Set global parameters
|
110 |
+
;;; You may want to reset these for different speakers
|
111 |
+
|
112 |
+
(Parameter.set 'Default_Topline 146) ;146
|
113 |
+
(Parameter.set 'Default_Start_Baseline 61) ;61
|
114 |
+
(Parameter.set 'Current_Topline (Parameter.get 'Default_Topline))
|
115 |
+
(Parameter.set 'Current_Start_Baseline (Parameter.get 'Default_Start_Baseline))
|
116 |
+
(Parameter.set 'Current_End_Baseline (Parameter.get 'Current_Start_Baseline))
|
117 |
+
(Parameter.set 'Downstep_Factor 0.70)
|
118 |
+
(Parameter.set 'Valley_Dip 75)
|
119 |
+
;;; function to add target points on a given syllable and fill in
|
120 |
+
;;; targets where necessary
|
121 |
+
|
122 |
+
(define (tobi_f0_targets utt syl)
|
123 |
+
"(tobi_f0_targets UTT ITEM)
|
124 |
+
Returns a list of targets for the given syllable."
|
125 |
+
(if (and (>= printdebug 1)
|
126 |
+
(not(equal? 0 (item.feat syl "R:Intonation.daughter1.name"))))
|
127 |
+
(format t "### %l (%.2f %.2f) %l ptarg: %l ###\n" (item.name syl)
|
128 |
+
(item.feat syl "syllable_start")(item.feat syl "syllable_end")
|
129 |
+
(item.feat syl "R:Intonation.daughter1.name") (ttt_last_target_time syl)))
|
130 |
+
|
131 |
+
;; only continue if there is a Word related to this syllable
|
132 |
+
;; I know there always should be, but there might be a bug elsewhere
|
133 |
+
(cond
|
134 |
+
((not(equal? 0 (item.feat syl "R:SylStructure.parent.name")))
|
135 |
+
|
136 |
+
; get current label. This assumes that there is only one accent and
|
137 |
+
; one endtone on a syllable. Although there can be one of each.
|
138 |
+
(let ((voicing (ttt_get_voice_times syl)) ; voicing interval
|
139 |
+
(pvoicing (ttt_get_voice_times ; previous voicing
|
140 |
+
(item.relation.prev syl 'Syllable)))
|
141 |
+
(nvoicing (ttt_get_voice_times ; next voicing
|
142 |
+
(item.relation.next syl 'Syllable))))
|
143 |
+
|
144 |
+
; if first syl of phrase set Phrase_Start and Phrase_End parameters
|
145 |
+
; and reset downstep (currently does so on big and little breaks.)
|
146 |
+
; only assignes Default values at this stage
|
147 |
+
; maybe trained from CART later - first steps now - MDS
|
148 |
+
; following Moehler and Mayer, SSW 2001
|
149 |
+
(if (eq 0 (item.feat syl 'syl_in)) ;; GM maybe something better needed here?
|
150 |
+
(progn
|
151 |
+
(Parameter.set 'Phrase_Start (item.feat syl 'R:SylStructure.parent.R:Phrase.last.word_start))
|
152 |
+
(Parameter.set 'Phrase_End (item.feat syl 'R:SylStructure.parent.R:Phrase.last.word_end))
|
153 |
+
(Parameter.set 'Current_Topline
|
154 |
+
(/ (* (wagon syl ttt_topline_tree)
|
155 |
+
(Parameter.get 'Default_Topline)) 100))
|
156 |
+
(Parameter.set 'Current_Start_Baseline
|
157 |
+
(/ (* (wagon syl ttt_baseline_tree)
|
158 |
+
(Parameter.get 'Default_Start_Baseline)) 100))
|
159 |
+
(Parameter.set 'Current_End_Baseline
|
160 |
+
(Parameter.get 'Current_Start_Baseline))
|
161 |
+
(if (>= printdebug 3)
|
162 |
+
(begin
|
163 |
+
(print (format nil "new range: %f %f %f"
|
164 |
+
(Parameter.get 'Current_Topline)
|
165 |
+
(Parameter.get 'Current_Start_Baseline)
|
166 |
+
(Parameter.get 'Current_End_Baseline) )))) ))
|
167 |
+
|
168 |
+
; do stuff (should go only if there is an accent/boundary?)
|
169 |
+
(let ((new_targets
|
170 |
+
(ttt_to_targets syl (wagon syl ttt_starttone_tree)
|
171 |
+
voicing
|
172 |
+
pvoicing
|
173 |
+
nvoicing
|
174 |
+
'Starttones)))
|
175 |
+
|
176 |
+
(set! new_targets (append new_targets
|
177 |
+
(ttt_to_targets syl (wagon syl ttt_accent_tree)
|
178 |
+
voicing
|
179 |
+
pvoicing
|
180 |
+
nvoicing
|
181 |
+
'Accents)))
|
182 |
+
|
183 |
+
(set! new_targets (append new_targets
|
184 |
+
(ttt_to_targets syl (wagon syl ttt_endtone_tree)
|
185 |
+
voicing
|
186 |
+
pvoicing
|
187 |
+
nvoicing
|
188 |
+
'Endtones)))
|
189 |
+
|
190 |
+
(if (and(not(equal? new_targets nil))
|
191 |
+
(>= printdebug 2))
|
192 |
+
(begin
|
193 |
+
(format t ">> Targets: %l\n" new_targets)
|
194 |
+
(format t ">> LastTarget: %l\n" (last new_targets))
|
195 |
+
))
|
196 |
+
|
197 |
+
new_targets)))))
|
198 |
+
|
199 |
+
|
200 |
+
;;; CART tree to specify no accents
|
201 |
+
|
202 |
+
(set! no_int_cart_tree
|
203 |
+
'
|
204 |
+
((NONE)))
|
205 |
+
|
206 |
+
;;;
|
207 |
+
;;; Relate phrasing to boundary tones.
|
208 |
+
;;; Added downstepped tones - MDS
|
209 |
+
|
210 |
+
(set! tobi_label_phrase_cart_tree
|
211 |
+
'
|
212 |
+
((tone in ("L-" "H-" "!H-"))
|
213 |
+
((B))
|
214 |
+
((tone in ("H-H%" "H-L%" "!H-L%" "L-L%" "L-H%"))
|
215 |
+
((BB))
|
216 |
+
((NB)))))
|
217 |
+
|
218 |
+
;;;
|
219 |
+
;;; The other functions
|
220 |
+
;;;
|
221 |
+
|
222 |
+
;;; process a list of relative targets and convert to actual targets
|
223 |
+
|
224 |
+
(define (ttt_to_targets syl rlist voicing pvoicing nvoicing type)
|
225 |
+
"Takes a list of target sets and returns a list of targets."
|
226 |
+
(if (or (and (>= printdebug 2)
|
227 |
+
rlist (atom (caar rlist))
|
228 |
+
(not (equal? 'NONE (caar rlist))) (not (equal? '(NONE) (caar rlist))))
|
229 |
+
(>= printdebug 3))
|
230 |
+
(begin (print "Entering ttt_to_targets with:")
|
231 |
+
(print (format nil "rlist: %l vc: %l pvc: %l nvc: %l type: %s" rlist voicing pvoicing nvoicing type))))
|
232 |
+
(cond
|
233 |
+
;; nowt
|
234 |
+
((eq (length rlist) 0) ())
|
235 |
+
;; a single target set
|
236 |
+
((atom (car (car rlist)))
|
237 |
+
(cond
|
238 |
+
((eq type 'Accents)
|
239 |
+
(ttt_accent_set_to_targets syl rlist voicing pvoicing nvoicing))
|
240 |
+
((eq type 'Starttones)
|
241 |
+
(ttt_bound_set_to_targets syl rlist voicing pvoicing))
|
242 |
+
((eq type 'Endtones)
|
243 |
+
(ttt_bound_set_to_targets syl rlist voicing pvoicing))
|
244 |
+
(t (error "unknown target set encountered in ttt_to_targets"))))
|
245 |
+
;; list of target sets
|
246 |
+
((atom (car (car (car rlist))))
|
247 |
+
(append (ttt_to_targets syl (cdr rlist) voicing pvoicing nvoicing type)
|
248 |
+
(ttt_to_targets syl (car rlist) voicing pvoicing nvoicing type)))
|
249 |
+
;; error
|
250 |
+
(t (error "something strange has happened in ttt_to_targets"))))
|
251 |
+
|
252 |
+
|
253 |
+
;; process a starttone/endtone target set.
|
254 |
+
|
255 |
+
(define (ttt_bound_set_to_targets syl tset voicing pvoicing)
|
256 |
+
"takes a start/endtone target set and returns a list of target points."
|
257 |
+
(if (>= printdebug 3) (begin
|
258 |
+
(print "Entering ttt_bound_set_to_targets with:")
|
259 |
+
(pprintf (format nil "tset: %l vc: %l pvc: %l" tset voicing pvoicing))))
|
260 |
+
(cond
|
261 |
+
;; usually target given is NONE. (also ignore unknown!)
|
262 |
+
((or (eq (car (car tset)) 'NONE)
|
263 |
+
(eq (car (car tset)) 'UNKNOWN))
|
264 |
+
nil)
|
265 |
+
;; a pair of target pairs
|
266 |
+
((eq (length tset) 2)
|
267 |
+
(list (ttt_get_target (car tset) voicing)
|
268 |
+
(ttt_get_target (car (cdr tset)) voicing)))
|
269 |
+
;; single target pair
|
270 |
+
((eq (length tset) 1)
|
271 |
+
(cond
|
272 |
+
;; an actual target pair
|
273 |
+
((not (null (cdr (car tset))))
|
274 |
+
(list (ttt_get_target (car tset) voicing)))
|
275 |
+
;; a TAKEOVER marker
|
276 |
+
((eq (car (car tset)) 'TAKEOVER)
|
277 |
+
(list (list (ttt_interval_percent voicing 0)
|
278 |
+
(ttt_last_target_value syl))))
|
279 |
+
(t (error "unknown target pair in ttt_bound_set_to_targets"))))
|
280 |
+
(t (error "unknown target set type in ttt_bound_set_to_targets"))))
|
281 |
+
|
282 |
+
|
283 |
+
;; process an accent target set.
|
284 |
+
|
285 |
+
(define (ttt_accent_set_to_targets syl tset voicing pvoicing nvoicing)
|
286 |
+
"takes a accent target set and returns a list of target points."
|
287 |
+
(if (>= printdebug 3) (begin
|
288 |
+
(print "Entering ttt_accent_set_to_targets with:")
|
289 |
+
(pprintf (format nil "tset: %l vc: %l pvc: %l nvc: %l" tset voicing pvoicing nvoicing))))
|
290 |
+
(cond
|
291 |
+
;; single target in set
|
292 |
+
((null (cdr tset))
|
293 |
+
(cond
|
294 |
+
; target given is NONE.
|
295 |
+
((or (eq (car (car tset)) 'NONE)
|
296 |
+
(eq (car (car tset)) 'UNKNOWN)) nil)
|
297 |
+
; V1 marker
|
298 |
+
((eq (car (car tset)) 'V1)
|
299 |
+
(let ((target_time (+ (/ (- (next_accent_start syl)
|
300 |
+
(ttt_last_target_time syl))
|
301 |
+
2.0)
|
302 |
+
(ttt_last_target_time syl))))
|
303 |
+
(list (list target_time (ttt_accent_pitch (Parameter.get 'Valley_Dip) target_time)))))
|
304 |
+
; V2 marker
|
305 |
+
((eq (car (car tset)) 'V2)
|
306 |
+
(let ((target_time (+ (ttt_last_target_time syl) 0.25)))
|
307 |
+
(list (list target_time (ttt_accent_pitch (Parameter.get 'Valley_Dip) target_time)))))
|
308 |
+
; V3 marker
|
309 |
+
((eq (car (car tset)) 'V3)
|
310 |
+
(let ((target_time (- (next_accent_start syl) 0.25)))
|
311 |
+
(list (list target_time (ttt_accent_pitch (Parameter.get 'Valley_Dip) target_time)))))
|
312 |
+
; single target pair
|
313 |
+
(t (list (ttt_get_target (car tset) voicing)))))
|
314 |
+
;; a pair of targets
|
315 |
+
((length tset 2)
|
316 |
+
(cond
|
317 |
+
;; a *ed tone with PRE type tone (as in L+H*)
|
318 |
+
((eq (car (car tset)) 'PRE)
|
319 |
+
(let ((star_target (ttt_get_target (car (cdr tset)) voicing))
|
320 |
+
(last_target (parse-number(ttt_last_target_time syl))))
|
321 |
+
(cond
|
322 |
+
; normal 0.2s case (currently doesn't check for voicing)
|
323 |
+
((and (eqv? 0 (ip_initial syl))
|
324 |
+
(> (- (car star_target) 0.2) last_target))
|
325 |
+
(list (list (- (car star_target) 0.2)
|
326 |
+
(ttt_accent_pitch (car (cdr (car tset)))
|
327 |
+
(- (car star_target) 0.2))) ; the time
|
328 |
+
star_target))
|
329 |
+
|
330 |
+
; 90% prev voiced if not before last target - Added back in MDS,
|
331 |
+
; with parse-number added and new check for ip_initial
|
332 |
+
((and (eqv? 0 (ip_initial syl))
|
333 |
+
(> (parse-number (ttt_interval_percent pvoicing 90))
|
334 |
+
(parse-number (ttt_last_target_time syl))))
|
335 |
+
(list (list (ttt_interval_percent pvoicing 90)
|
336 |
+
(ttt_accent_pitch (car (cdr (car tset)))
|
337 |
+
(ttt_interval_percent pvoicing 90)))
|
338 |
+
star_target))
|
339 |
+
|
340 |
+
; otherwise (UNTESTED) [NOTE: Voicing for this syllable only]
|
341 |
+
(t
|
342 |
+
(list (list (ttt_interval_percent voicing 20)
|
343 |
+
(ttt_accent_pitch (car (cdr (car tset)))
|
344 |
+
(ttt_interval_percent voicing 20)))
|
345 |
+
star_target)))))
|
346 |
+
; a *ed tone with POST type tone (as L*+H)
|
347 |
+
((eq (car(car(cdr tset))) 'POST)
|
348 |
+
(let ((star_target (ttt_get_target (car tset) voicing))
|
349 |
+
(next_target nil ) ; interesting problem
|
350 |
+
(next_syl (item.next syl)))
|
351 |
+
|
352 |
+
(cond
|
353 |
+
; normal 0.2s case (UNTESTED)
|
354 |
+
((and (not (equal? next_syl nil))
|
355 |
+
(eq 0 (item.feat next_syl "accented")))
|
356 |
+
(cond
|
357 |
+
((< (+ (car star_target) 0.2) (item.feat next_syl "syllable_end"))
|
358 |
+
(list star_target
|
359 |
+
(list (+ (car star_target) 0.2)
|
360 |
+
(ttt_accent_pitch (car (cdr (car (cdr tset))))
|
361 |
+
(+ (car star_target) 0.2) ))))
|
362 |
+
(t
|
363 |
+
|
364 |
+
(list star_target
|
365 |
+
(list (ttt_interval_percent nvoicing 90)
|
366 |
+
(ttt_accent_pitch (car (cdr (car (cdr tset))))
|
367 |
+
(ttt_interval_percent nvoicing 90) ))))))
|
368 |
+
|
369 |
+
; 20% next voiced (BUG: Can't do this as the next target hasn't been
|
370 |
+
; calculated yet!)
|
371 |
+
(nil nil)
|
372 |
+
;otherwise (UNTESTED)
|
373 |
+
(t (list star_target
|
374 |
+
(list (ttt_interval_percent voicing 90)
|
375 |
+
(ttt_accent_pitch (car (cdr (car (cdr tset))))
|
376 |
+
(ttt_interval_percent voicing 90) )))))))
|
377 |
+
|
378 |
+
(t
|
379 |
+
;; This case didn't use to happen, but now must
|
380 |
+
;; to avoid +H's clobbering endtones - MDS's hack.
|
381 |
+
(list (ttt_get_target (car tset) voicing)
|
382 |
+
(ttt_get_target (cadr tset) voicing)))))
|
383 |
+
|
384 |
+
|
385 |
+
;; something else...
|
386 |
+
(t (error (format nil "unknown accent set in ttt_accent_set_to_targets: %l" tset)))))
|
387 |
+
|
388 |
+
|
389 |
+
|
390 |
+
(define (ttt_get_target pair voicing)
|
391 |
+
"Returns actual target pair, usually for a stared tone."
|
392 |
+
(if (>= printdebug 4) (begin
|
393 |
+
(print "Entering ttt_get_target with:")
|
394 |
+
(pprintf pair) (pprintf voicing)))
|
395 |
+
(list (ttt_interval_percent voicing (car pair))
|
396 |
+
(ttt_accent_pitch (car (cdr pair))
|
397 |
+
(ttt_interval_percent voicing (car pair)))))
|
398 |
+
|
399 |
+
(define (ttt_accent_pitch value time)
|
400 |
+
"Converts a accent pitch entry to a pitch value."
|
401 |
+
(if (>= printdebug 4) (begin
|
402 |
+
(print "Entering ttt_accent_pitch with:")
|
403 |
+
(pprintf value)))
|
404 |
+
(cond
|
405 |
+
;; a real value
|
406 |
+
((number? value)
|
407 |
+
(ttt_interval_percent (list (ttt_get_current_baseline time)
|
408 |
+
(Parameter.get 'Current_Topline))
|
409 |
+
value))
|
410 |
+
;; Downstep then Topline
|
411 |
+
((eq value 'DHIGH)
|
412 |
+
(progn
|
413 |
+
(Parameter.set 'Current_Topline (+ (ttt_get_current_baseline time)
|
414 |
+
(* (Parameter.get 'Downstep_Factor)
|
415 |
+
(- (Parameter.get 'Current_Topline)
|
416 |
+
(ttt_get_current_baseline time)))))
|
417 |
+
(ttt_interval_percent (list (ttt_get_current_baseline time)
|
418 |
+
(Parameter.get 'Current_Topline))
|
419 |
+
100)))
|
420 |
+
|
421 |
+
;; Unknown
|
422 |
+
(t (error "Unknown accent pitch value encountered"))))
|
423 |
+
|
424 |
+
|
425 |
+
(define (ttt_get_current_baseline v)
|
426 |
+
"Returns the current declined baseline at time v."
|
427 |
+
(if (>= printdebug 4) (begin
|
428 |
+
(print "Entering ttt_get_current_baseline with:")
|
429 |
+
(pprintf v)))
|
430 |
+
(let ((h (Parameter.get 'Current_Start_Baseline))
|
431 |
+
(l (Parameter.get 'Current_End_Baseline))
|
432 |
+
(e (Parameter.get 'Phrase_End))
|
433 |
+
(s (Parameter.get 'Phrase_Start)))
|
434 |
+
(- h (* (/ (- h l) (- e s)) (- v s)))))
|
435 |
+
|
436 |
+
;;; find the time n% through an inteval
|
437 |
+
|
438 |
+
(define (ttt_interval_percent pair percent)
|
439 |
+
"Returns the time that is percent percent thought the pair."
|
440 |
+
(if (>= printdebug 4) (begin
|
441 |
+
(print "Entering ttt_interval_percent with:")
|
442 |
+
(pprintf (format nil "%l, %l" pair percent))))
|
443 |
+
(cond
|
444 |
+
; no pair given: just return nil
|
445 |
+
((null pair) nil)
|
446 |
+
; otherwise do the calculation
|
447 |
+
(t (let ((start (car pair))
|
448 |
+
(end (car(cdr pair))))
|
449 |
+
(+ start (* (- end start) (/ percent 100)))))))
|
450 |
+
|
451 |
+
|
452 |
+
;;; Getting start and end voicing times in a syllable
|
453 |
+
|
454 |
+
(define (ttt_get_voice_times syl_item)
|
455 |
+
"Returns a pair of start time of first voiced phone in syllable and
|
456 |
+
end of last voiced phone in syllable, or nil if syllable is nil"
|
457 |
+
(cond
|
458 |
+
((null syl_item) nil)
|
459 |
+
(t (let ((segs (item.relation.daughters syl_item "SylStructure")))
|
460 |
+
(list
|
461 |
+
(item.feat (ttt_first_voiced segs) "segment_start")
|
462 |
+
(item.feat (ttt_first_voiced (reverse segs)) "end"))))))
|
463 |
+
|
464 |
+
(define (ttt_first_voiced segs)
|
465 |
+
"Returns first segment that is voiced (vowel or voiced consonant)
|
466 |
+
returns last segment if all are unvoiced."
|
467 |
+
(cond
|
468 |
+
((null (cdr segs))
|
469 |
+
(car segs)) ;; last possibility
|
470 |
+
((equal? "+" (item.feat (car segs) "ph_vc"))
|
471 |
+
(car segs))
|
472 |
+
((equal? "+" (item.feat (car segs) "ph_cvox"))
|
473 |
+
(car segs))
|
474 |
+
(t
|
475 |
+
(ttt_first_voiced (cdr segs)))))
|
476 |
+
|
477 |
+
;;; ttt_last_target has bifurcated into
|
478 |
+
;;; ttt_last_target_time and
|
479 |
+
;;; ttt_last_target_value
|
480 |
+
;;; to fix a place where f0 was set to last target time!
|
481 |
+
;;; - MDS
|
482 |
+
|
483 |
+
(define (ttt_last_target_time syl)
|
484 |
+
"Returns the end of the most recent previous target
|
485 |
+
in the utterance or nil if there is not one present
|
486 |
+
"
|
487 |
+
(if (>= printdebug 3)
|
488 |
+
(begin (print "Entering ttt_last_target_time")
|
489 |
+
(print syl))
|
490 |
+
)
|
491 |
+
(let ((target (ttt_last_target syl)))
|
492 |
+
(if (null? target)
|
493 |
+
nil
|
494 |
+
(item.feat target "R:Target.daughter1.pos"))))
|
495 |
+
|
496 |
+
(define (ttt_last_target_value syl)
|
497 |
+
"Returns the pitch of the most recent previous target
|
498 |
+
in the utterance or nil if there is not one present
|
499 |
+
"
|
500 |
+
(if (>= printdebug 3)
|
501 |
+
(begin (print "Entering ttt_last_target_time")
|
502 |
+
(print syl))
|
503 |
+
)
|
504 |
+
(let ((target (ttt_last_target syl)))
|
505 |
+
(if (null? target)
|
506 |
+
nil
|
507 |
+
(item.feat target "R:Target.daughter1.f0"))))
|
508 |
+
|
509 |
+
;; Changed to scan through segments in the segment relation,
|
510 |
+
;; to catch (notional) targets on pauses. - MDS
|
511 |
+
;;
|
512 |
+
;;; associated segments are:
|
513 |
+
;;; - the segments in the word
|
514 |
+
;;; - subsequent segments not in the syllable structure
|
515 |
+
;;; and on the first word, preceding segments
|
516 |
+
;;; not in the syllable structure
|
517 |
+
|
518 |
+
(define (ttt_collect_following seg accum)
|
519 |
+
(if (or (null? seg)
|
520 |
+
(not (null? (item.relation seg 'SylStructure))))
|
521 |
+
accum
|
522 |
+
(ttt_collect_following (item.next seg)
|
523 |
+
(cons seg accum))))
|
524 |
+
|
525 |
+
|
526 |
+
(define (ttt_last_target syl)
|
527 |
+
"Returns the most recent previous target
|
528 |
+
in the utterance or nil if there is not one present
|
529 |
+
"
|
530 |
+
(if (>= printdebug 3)
|
531 |
+
(begin (print "Entering ttt_last_target")
|
532 |
+
(print syl))
|
533 |
+
)
|
534 |
+
(let ((prev_syl (item.relation.prev syl 'Syllable)))
|
535 |
+
(cond
|
536 |
+
; ((symbol-bound? 'new_targets) (last (caar new_targets)))
|
537 |
+
((null prev_syl) nil)
|
538 |
+
((ttt_last_target_segs
|
539 |
+
(ttt_collect_following
|
540 |
+
(item.relation.next
|
541 |
+
(item.relation.daughtern prev_syl "SylStructure")
|
542 |
+
"Segment")
|
543 |
+
(reverse (item.relation.daughters prev_syl "SylStructure")))))
|
544 |
+
;list of segments of prev. syllable
|
545 |
+
;in reverse order, with pauses
|
546 |
+
;prepended.
|
547 |
+
(t (ttt_last_target prev_syl)))))
|
548 |
+
|
549 |
+
(define (ttt_last_target_segs segs)
|
550 |
+
"Returns the first target no earlier than seg
|
551 |
+
or nil if there is not one
|
552 |
+
"
|
553 |
+
(if (>= printdebug 4)
|
554 |
+
(begin (print "Entering ttt_last_target_segs with:")
|
555 |
+
(pprintf (format nil "%l" segs))
|
556 |
+
))
|
557 |
+
(cond
|
558 |
+
((null segs) nil)
|
559 |
+
((and (> (parse-number
|
560 |
+
(item.feat (car segs) "R:Target.daughter1.f0")) 0)
|
561 |
+
(eq 0 (item.feat (car segs) "R:SylStructure.parent.lisp_lh_condition"))
|
562 |
+
(eq 0 (item.feat (car segs) "R:SylStructure.parent.lisp_hl_condition"))
|
563 |
+
(eq 0 (item.feat (car segs) "R:SylStructure.parent.lisp_valley_condition")))
|
564 |
+
(car segs))
|
565 |
+
|
566 |
+
(t (ttt_last_target_segs (cdr segs)))))
|
567 |
+
|
568 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
569 |
+
;;;;;;
|
570 |
+
;;;;;; CART TREES (ttt - tobi to target)
|
571 |
+
;;;;;;
|
572 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
573 |
+
|
574 |
+
;;;
|
575 |
+
;;; Return a list of target lists. A target list comprises of a list
|
576 |
+
;;; of related targets (ie for the L and H in L+H*), just to confuse
|
577 |
+
;;; matters each target is also a list! (pos pitch)
|
578 |
+
;;;
|
579 |
+
|
580 |
+
|
581 |
+
(set! ttt_endtone_tree ; BUG: does it check the current syl for last accent?
|
582 |
+
'
|
583 |
+
((tobi_endtone is NONE) ; ususally none
|
584 |
+
((((NONE))))
|
585 |
+
((tobi_endtone is "H-H%") ; H-H%
|
586 |
+
((((100 120))))
|
587 |
+
((tobi_endtone is "L-L%") ; L-L%
|
588 |
+
((((100 -20))))
|
589 |
+
((tobi_endtone is "L-H%") ; L-H%
|
590 |
+
((lisp_last_accent > 2)
|
591 |
+
((lisp_last_accent_type is "L*")
|
592 |
+
((((0 25) (100 40)))) ; paper says 80 but AWB had 40
|
593 |
+
((((0 0) (100 40)))))
|
594 |
+
((lisp_last_accent_type is "L*")
|
595 |
+
((((100 40))))
|
596 |
+
((((50 0) (100 40))))))
|
597 |
+
((tobi_endtone is "H-L%") ; H-L%
|
598 |
+
((lisp_last_accent_type is "L*")
|
599 |
+
((tobi_accent is"L*")
|
600 |
+
((((50 100) (100 100))))
|
601 |
+
((((0 100) (100 100)))))
|
602 |
+
((((100 100)))))
|
603 |
+
((tobi_endtone is "!H-L%") ; !H-L%
|
604 |
+
((lisp_last_accent_type is "L*")
|
605 |
+
((tobi_accent is"L*")
|
606 |
+
((((50 DHIGH) (100 100))))
|
607 |
+
((((0 DHIGH) (100 100)))))
|
608 |
+
((((100 DHIGH)))))
|
609 |
+
((tobi_endtone is "H-")
|
610 |
+
((((100 100))))
|
611 |
+
((tobi_endtone is "!H-")
|
612 |
+
((((100 DHIGH))))
|
613 |
+
((tobi_endtone is "L-")
|
614 |
+
((((100 0))))
|
615 |
+
((((UNKNOWN))))))))))))))
|
616 |
+
|
617 |
+
(set! ttt_starttone_tree
|
618 |
+
'
|
619 |
+
((lisp_ip_initial = 1)
|
620 |
+
((tobi_endtone is "%H")
|
621 |
+
((((0 100))))
|
622 |
+
((p.tobi_endtone in ("H-" "!H-" "L-"))
|
623 |
+
((((TAKEOVER)))) ; takeover case
|
624 |
+
((tobi_accent is NONE)
|
625 |
+
((lisp_next_accent > 2) ; default cases (dep. on whether next target is low)
|
626 |
+
((lisp_next_accent_type in ("L*" "L*+H" "L*+!H" "L+H*" "L+!H*" "L-" "L-H%" "L-L%"))
|
627 |
+
((((0 50)(100 25))))
|
628 |
+
((((0 50)(100 75)))))
|
629 |
+
((lisp_next_accent_type in ("L*" "L*+H" "L*+!H" "L+H*" "L+!H*" "L-" "L-H%" "L-L%"))
|
630 |
+
((((0 30))))
|
631 |
+
((((0 70))))))
|
632 |
+
((tobi_accent in ("L*" "L*+H" "L*+!H" "L+H*" "L+!H*" "L-" "L-H%" "L-L%"))
|
633 |
+
((((0 30))))
|
634 |
+
((((0 70))))))))
|
635 |
+
((((NONE)))))) ; otherwise (and usually) nothing.
|
636 |
+
|
637 |
+
;; Redone after Jilka, Moehler and Dogil
|
638 |
+
;; - But treating one-syllable-ip's like
|
639 |
+
;; last-syllable-of-ip's in cases of
|
640 |
+
;; two tone switches per syllable (e.g. H* L-H%).
|
641 |
+
;; - And (hack) a 70% target for the initial
|
642 |
+
;; H*'s of phrases when the next accent is L+H*
|
643 |
+
;; - MDS
|
644 |
+
|
645 |
+
(set! ttt_accent_tree
|
646 |
+
'
|
647 |
+
((tobi_accent is "H*" ) ; H*
|
648 |
+
((lisp_ip_final = 1)
|
649 |
+
((lisp_ip_one_syllable_case = 1)
|
650 |
+
((((50 100))))
|
651 |
+
((((25 100)))))
|
652 |
+
((lisp_hstar_weak_target = 1)
|
653 |
+
((((60 70))))
|
654 |
+
((lisp_ip_initial = 1)
|
655 |
+
((((85 100))))
|
656 |
+
((((60 100)))))))
|
657 |
+
|
658 |
+
((tobi_accent is "!H*" ) ; !H*
|
659 |
+
((lisp_ip_final = 1)
|
660 |
+
((lisp_ip_one_syllable_case = 1)
|
661 |
+
((((50 DHIGH))))
|
662 |
+
((((25 DHIGH)))))
|
663 |
+
((lisp_ip_initial = 1)
|
664 |
+
((((85 DHIGH))))
|
665 |
+
((((60 DHIGH))))))
|
666 |
+
|
667 |
+
((tobi_accent is "L*" ) ; L*
|
668 |
+
((lisp_ip_final = 1)
|
669 |
+
((lisp_ip_one_syllable_case = 1)
|
670 |
+
((((50 0))))
|
671 |
+
((((25 0)))))
|
672 |
+
((lisp_ip_initial = 1)
|
673 |
+
((((85 0))))
|
674 |
+
((((60 0))))))
|
675 |
+
|
676 |
+
((tobi_accent is "L+H*") ; L+H*
|
677 |
+
((lisp_ip_final = 1)
|
678 |
+
((lisp_ip_one_syllable_case = 1)
|
679 |
+
((((PRE 20) (50 100)))) ; JMD estimated 70
|
680 |
+
((((PRE 20) (25 100)))))
|
681 |
+
((lisp_ip_initial = 1)
|
682 |
+
((((PRE 20) (90 100))))
|
683 |
+
((((PRE 20) (75 100))))))
|
684 |
+
|
685 |
+
((tobi_accent is "L+!H*") ; L+!H*
|
686 |
+
((lisp_ip_final = 1)
|
687 |
+
((lisp_ip_one_syllable_case = 1)
|
688 |
+
((((PRE 20) (70 DHIGH))))
|
689 |
+
((((PRE 20) (25 DHIGH)))))
|
690 |
+
((lisp_ip_initial = 1)
|
691 |
+
((((PRE 20) (90 DHIGH))))
|
692 |
+
((((PRE 20) (75 DHIGH))))))
|
693 |
+
|
694 |
+
((tobi_accent is "L*+H") ; L*+H
|
695 |
+
((lisp_ip_final = 1)
|
696 |
+
((lisp_ip_one_syllable_case = 1)
|
697 |
+
((((35 0) (80 100)))) ; POST would clobber endtones
|
698 |
+
((((15 0) (40 100))))) ; POST would clobber endtones - MDS
|
699 |
+
((lisp_ip_initial = 1)
|
700 |
+
((((55 0) (POST 100))))
|
701 |
+
((((40 0) (POST 100))))))
|
702 |
+
|
703 |
+
((tobi_accent is "L*+!H") ; L*+!H
|
704 |
+
((lisp_ip_final = 1)
|
705 |
+
((lisp_ip_one_syllable_case = 1)
|
706 |
+
((((35 0) (80 DHIGH)))) ; POST would clobber endtones - MDS
|
707 |
+
((((15 0) (40 DHIGH))))) ; POST would clobber endtones - MDS
|
708 |
+
((lisp_ip_initial = 1)
|
709 |
+
((((55 0) (POST DHIGH))))
|
710 |
+
((((40 0) (POST DHIGH))))))
|
711 |
+
|
712 |
+
((tobi_accent is "H+!H*") ; H+!H*
|
713 |
+
((lisp_ip_final = 1)
|
714 |
+
((lisp_ip_one_syllable_case = 1)
|
715 |
+
((((PRE 143) (60 DHIGH)))) ; the 143 is a hack to level out the downstep
|
716 |
+
((((PRE 143) (20 DHIGH)))))
|
717 |
+
((lisp_ip_initial = 1)
|
718 |
+
((((PRE 143) (90 DHIGH))))
|
719 |
+
((((PRE 143) (60 DHIGH))))))
|
720 |
+
|
721 |
+
((lisp_lh_condition = 1)
|
722 |
+
((((100 75))))
|
723 |
+
((lisp_lh_condition = 2)
|
724 |
+
((((0 90))))
|
725 |
+
((lisp_hl_condition = 1)
|
726 |
+
((((100 25))))
|
727 |
+
((lisp_valley_condition = 1)
|
728 |
+
((((V1 85))))
|
729 |
+
((lisp_valley_condition = 2)
|
730 |
+
((((V2 70))))
|
731 |
+
((lisp_valley_condition = 3)
|
732 |
+
((((V3 70))))
|
733 |
+
((tobi_accent is NONE) ; usually we find no accent
|
734 |
+
((((NONE))))
|
735 |
+
((((UNKNOWN)))))))))))))))))))) ; UNKNOWN TARGET FOUND
|
736 |
+
|
737 |
+
;;; Cart tree to "predict" pitch range
|
738 |
+
;;; Right now just accesses a feature
|
739 |
+
;;; "register" following Moehler & Mayer 2001.
|
740 |
+
;;; Register must be one of
|
741 |
+
;;; H - primary high register (default): 133% lowest, 92% highest
|
742 |
+
;;; H-H - expanded high register: 134% lowest, 100% highest
|
743 |
+
;;; H-L - lowered high register: 128% lowest, 87% highest
|
744 |
+
;;; L - primary low register: 100% lowest, 73% highest
|
745 |
+
;;; L-L and HL-L - low compressed: 100% lowest, 66% highest
|
746 |
+
;;; HL - expanded register: 100% lowest, 84% highest
|
747 |
+
;;; HL-H - complete register: 100% lowest, 96% highest
|
748 |
+
;;; For their speaker, ,BASELINE was 42% of PEAK
|
749 |
+
|
750 |
+
(set! ttt_topline_tree
|
751 |
+
'
|
752 |
+
((R:SylStructure.parent.register is "H")
|
753 |
+
(92)
|
754 |
+
((R:SylStructure.parent.register is "H-H")
|
755 |
+
(100)
|
756 |
+
((R:SylStructure.parent.register is "H-L")
|
757 |
+
(87)
|
758 |
+
((R:SylStructure.parent.register is "L")
|
759 |
+
(73)
|
760 |
+
((R:SylStructure.parent.register is "L-L")
|
761 |
+
(66)
|
762 |
+
((R:SylStructure.parent.register is "HL")
|
763 |
+
(84)
|
764 |
+
((R:SylStructure.parent.register is "HL-H")
|
765 |
+
(96)
|
766 |
+
(92)))))))))
|
767 |
+
|
768 |
+
(set! ttt_baseline_tree
|
769 |
+
'
|
770 |
+
((R:SylStructure.parent.register is "H")
|
771 |
+
(133)
|
772 |
+
((R:SylStructure.parent.register is "H-H")
|
773 |
+
(134)
|
774 |
+
((R:SylStructure.parent.register is "H-L")
|
775 |
+
(128)
|
776 |
+
((R:SylStructure.parent.register is "L")
|
777 |
+
(100)
|
778 |
+
((R:SylStructure.parent.register is "L-L")
|
779 |
+
(100)
|
780 |
+
((R:SylStructure.parent.register is "HL")
|
781 |
+
(100)
|
782 |
+
((R:SylStructure.parent.register is "HL-H")
|
783 |
+
(100)
|
784 |
+
(133)))))))))
|
785 |
+
|
786 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
787 |
+
;;;;;;
|
788 |
+
;;;;;; Lisp Feature functions.
|
789 |
+
;;;;;;
|
790 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
791 |
+
|
792 |
+
(define (valley_condition syl)
|
793 |
+
"(valley_condition syl)
|
794 |
+
Function to determine if a lowered target between two high target points
|
795 |
+
is needed in this syllable.
|
796 |
+
Returns: 0 - no target required
|
797 |
+
1 - the single target case
|
798 |
+
2 - the first of the two target case
|
799 |
+
3 - the second of the two target case
|
800 |
+
"
|
801 |
+
(if (>= printdebug 4)
|
802 |
+
(begin (print "Entering valley_condition")))
|
803 |
+
(cond
|
804 |
+
((and (eq 0 (item.feat syl 'accented))
|
805 |
+
(string-matches (next_accent_type syl)
|
806 |
+
"\\(H\\*\\|H\\-\\|H\\-L\\%\\|H\\-H\\%\\|\\!H\\*\\|\\!H\\-\\|\\!H\\-L\\%\\|\\!H\\-H\\%\\)")
|
807 |
+
(string-matches (last_accent_type syl)
|
808 |
+
"\\(H\\*\\|L\\+H\\*\\|L\\*\\+H\\\\|\\!H\\*\\|L\\+\\!H\\*\\|L\\*\\+\\!H\\)"))
|
809 |
+
;GM: excluded %H (returns nil for last target)
|
810 |
+
(let ((nas (next_accent_start syl))
|
811 |
+
(syls (item.feat syl 'syllable_start))
|
812 |
+
(syle (item.feat syl 'syllable_end))
|
813 |
+
(las (ttt_last_target_time syl)))
|
814 |
+
(if (>= printdebug 3)
|
815 |
+
(begin (print (format nil "nas: %l syls: %l syle %l las %l" nas syls syle las))))
|
816 |
+
(cond
|
817 |
+
((and (< (- nas las) 0.5)
|
818 |
+
(> (- nas las) 0.25)
|
819 |
+
(< syls (+ (/ (- nas las) 2.0) (ttt_last_target_time syl)))
|
820 |
+
(> syle (+ (/ (- nas las) 2.0) (ttt_last_target_time syl)))) 1)
|
821 |
+
((and (> (- nas las) 0.5)
|
822 |
+
(< syls (+ (ttt_last_target_time syl) 0.25))
|
823 |
+
(> syle (+ (ttt_last_target_time syl) 0.25))) 2)
|
824 |
+
((and (> (- nas las) 0.5)
|
825 |
+
(< syls (- nas 0.25))
|
826 |
+
(> syle (- nas 0.25))) 3)
|
827 |
+
(t 0))))
|
828 |
+
(t 0)))
|
829 |
+
|
830 |
+
|
831 |
+
|
832 |
+
(define (lh_condition syl)
|
833 |
+
"(lh_condition syl)
|
834 |
+
Function to determine the need for extra target points between an L and an H
|
835 |
+
Returns: 1 - first extra target required
|
836 |
+
2 - second extra target required
|
837 |
+
0 - no target required.
|
838 |
+
"
|
839 |
+
(if (>= printdebug 4)
|
840 |
+
(begin (print "Entering LH_condition")))
|
841 |
+
(cond
|
842 |
+
((and (eq 0 (item.feat syl 'accented))
|
843 |
+
(string-matches (last_accent_type syl) "\\(L\\*\\)")
|
844 |
+
(string-matches (next_accent_type syl)
|
845 |
+
"\\(H\\*\\|H\\-\\|H\\-L\\%\\|H\\-H\\%\\)"))
|
846 |
+
(cond
|
847 |
+
((and (eq 1 (last_accent syl))
|
848 |
+
(< 2 (next_accent syl))) 1)
|
849 |
+
((and (< 2 (last_accent syl))
|
850 |
+
(eq 1 (next_accent syl))) 2)
|
851 |
+
(t 0)))
|
852 |
+
(t 0)))
|
853 |
+
|
854 |
+
(define (hl_condition syl)
|
855 |
+
"(lh_condition syl)
|
856 |
+
Function to determine the need for extra target points between an H and an L
|
857 |
+
Returns: 1 - extra target required
|
858 |
+
0 - no target required.
|
859 |
+
"
|
860 |
+
(if (>= printdebug 4)
|
861 |
+
(begin (print "Entering HL_condition")))
|
862 |
+
(cond
|
863 |
+
((and (eq 0 (item.feat syl 'accented))
|
864 |
+
(string-matches (next_accent_type syl)
|
865 |
+
"\\(L\\*\\|L\\+H\\*\\|L\\+\\!H\\*\\|L\\*\\+H\\|L\\*\\+!H\\|L\\-\\|L\\-L\\%\\|L-H\\%\\)")
|
866 |
+
(string-matches (last_accent_type syl)
|
867 |
+
"\\(H\\*\\|L\\+H\\*\\|L\\*\\+H\\\\|\\!H\\*\\|L\\+\\!H\\*\\|L\\*\\+\\!H\\|\\%H\\)")
|
868 |
+
;MDS: added !H's
|
869 |
+
(eq 1 (last_accent syl))
|
870 |
+
|
871 |
+
;; fall faster! -MDS
|
872 |
+
(<= 2 (next_accent syl))) 1)
|
873 |
+
(t 0)))
|
874 |
+
|
875 |
+
(define (next_accent syl)
|
876 |
+
"(next_accent syl)
|
877 |
+
Wrapper for c++ func ff_next_accent.
|
878 |
+
Returns the number of the syllables to the next accent in the following format.
|
879 |
+
0 - no next accent
|
880 |
+
1 - next syllable
|
881 |
+
2 - next next syllable
|
882 |
+
etc..."
|
883 |
+
(if (>= printdebug 4)
|
884 |
+
(begin (print "Entering next_accent")))
|
885 |
+
(cond
|
886 |
+
((eq 0 (next_accent_type syl)) 0)
|
887 |
+
(t (+ (item.feat syl 'next_accent) 1))))
|
888 |
+
|
889 |
+
;; Fixed bug that crashed complex phrase tones. - MDS
|
890 |
+
;; Not sure how else to get a big number...
|
891 |
+
(define infinity (/ 1 0))
|
892 |
+
|
893 |
+
;; Modified to include current accent as well -MDS
|
894 |
+
|
895 |
+
(define (last_accent syl)
|
896 |
+
"(last_accent syl)
|
897 |
+
Wrapper for c++ func ff_last_accent.
|
898 |
+
Returns the number of the syllables to the previous accent in the following format.
|
899 |
+
0 - accent on current syllable
|
900 |
+
1 - prev syllable
|
901 |
+
2 - prev to prev syllable
|
902 |
+
etc...
|
903 |
+
infinity - no previous syllable"
|
904 |
+
(if (>= printdebug 4)
|
905 |
+
(begin (print "Entering last_accent")))
|
906 |
+
(cond
|
907 |
+
((not (equal? "NONE" (item.feat syl 'tobi_accent))) 0)
|
908 |
+
((equal? 0 (last_accent_type syl)) infinity)
|
909 |
+
(t (+ (item.feat syl 'last_accent) 1))))
|
910 |
+
|
911 |
+
(define (next_accent_type syl)
|
912 |
+
"(next_accent_type syl)
|
913 |
+
Returns the type of the next accent."
|
914 |
+
(cond
|
915 |
+
((not (eq 0 (item.feat syl "n.R:Intonation.daughter1.name")))
|
916 |
+
(item.feat syl "n.R:Intonation.daughter1.name"))
|
917 |
+
((eq 0 (item.feat syl 'syl_out)) 0) ;;GM real ip_final would be better
|
918 |
+
(t (next_accent_type (item.relation.next syl 'Syllable)))))
|
919 |
+
|
920 |
+
(define (last_accent_type syl)
|
921 |
+
"(last_accent_type syl)
|
922 |
+
Returns the type of the last (previous) accent."
|
923 |
+
(if (>= printdebug 4)
|
924 |
+
(begin (print "Entering last_accent_type")))
|
925 |
+
(cond
|
926 |
+
((not (equal? "NONE" (item.feat syl 'p.tobi_endtone)))
|
927 |
+
(item.feat syl 'R:Syllable.p.tobi_endtone))
|
928 |
+
((not (equal? "NONE" (item.feat syl 'p.tobi_accent)))
|
929 |
+
(item.feat syl 'R:Syllable.p.tobi_accent))
|
930 |
+
((eq 0 (item.feat syl 'syl_in)) 0) ;;GM real ip_initial would be better
|
931 |
+
(t (last_accent_type (item.prev syl 'Syllable)))))
|
932 |
+
|
933 |
+
(define (next_accent_start syl)
|
934 |
+
"(next_accent_start syl)
|
935 |
+
Returns the start time of the vowel of next accented syllable"
|
936 |
+
(if (>= printdebug 4)
|
937 |
+
(begin (print "Entering next_accent_start")))
|
938 |
+
(cond
|
939 |
+
((not (eq 0 (item.feat syl "n.R:Intonation.daughter1.name")))
|
940 |
+
(item.feat syl "R:Syllable.n.syllable_start")) ;;GM vowel start would be better
|
941 |
+
((eq 0 (item.feat syl 'syl_out)) 0)
|
942 |
+
(t (next_accent_start (item.relation.next syl 'Syllable)))))
|
943 |
+
|
944 |
+
; new features (not used yet)
|
945 |
+
|
946 |
+
(define (ip_final syl)
|
947 |
+
"(ip_final SYL)
|
948 |
+
returns 1 if the syllable is the final syllable of an
|
949 |
+
ip (intermediate phrase)"
|
950 |
+
(cond
|
951 |
+
((or (equal? 0 (item.feat syl "syl_out"))
|
952 |
+
(equal? "L-" (item.feat syl "tobi_endtone"))
|
953 |
+
(equal? "H-" (item.feat syl "tobi_endtone"))
|
954 |
+
(equal? "!H-" (item.feat syl "tobi_endtone"))) 1)
|
955 |
+
(t 0)))
|
956 |
+
|
957 |
+
(define (ip_initial syl)
|
958 |
+
"(ip_initial SYL)
|
959 |
+
returns 1 if the syllable is the initial syllable of an
|
960 |
+
ip (intermediate phrase)"
|
961 |
+
(cond
|
962 |
+
((equal? 0 (item.feat syl "syl_in"))
|
963 |
+
1)
|
964 |
+
((equal? 1 (ip_final (item.relation.prev syl 'Syllable)))
|
965 |
+
1)
|
966 |
+
(t 0)))
|
967 |
+
|
968 |
+
;; NEXT TWO FUNCTIONS ARE NEW - MDS
|
969 |
+
(define (ip_one_syllable_case syl)
|
970 |
+
"(ip_one_syllable_case SYL)
|
971 |
+
returns true if the syllable is the initial syllable of an
|
972 |
+
ip (intermediate phrase) and doesn't itself contain a complex
|
973 |
+
tone that starts opposite this syllable's accent"
|
974 |
+
(if (eqv? 0 (ip_initial syl))
|
975 |
+
0
|
976 |
+
(let ((accent (item.feat syl "tobi_accent"))
|
977 |
+
(tone (item.feat syl "tobi_endtone")))
|
978 |
+
(cond
|
979 |
+
((and (equal? tone "L-H%")
|
980 |
+
(or (equal? accent "H*")
|
981 |
+
(equal? accent "!H*")
|
982 |
+
(equal? accent "L+H*")
|
983 |
+
(equal? accent "L+!H*")
|
984 |
+
(equal? accent "L*+H")
|
985 |
+
(equal? accent "L*+!H*")
|
986 |
+
(equal? accent "H+!H*")))
|
987 |
+
0)
|
988 |
+
((and (or (equal? tone "H-L%")
|
989 |
+
(equal? tone "!H-L%"))
|
990 |
+
(equal? accent "L*"))
|
991 |
+
0)
|
992 |
+
(t
|
993 |
+
1)))))
|
994 |
+
|
995 |
+
(define (hstar_weak_target syl)
|
996 |
+
(if (and (equal? 0 (item.feat syl 'asyl_in))
|
997 |
+
(member (next_accent_type syl)
|
998 |
+
(list "L*" "L*+H" "L*+!H" "L+H*" "L+!H*")))
|
999 |
+
1
|
1000 |
+
0))
|
1001 |
+
|
1002 |
+
(provide 'tobi_rules)
|
CosyVoice-ttsfrd/resource/festival/token.scm
ADDED
@@ -0,0 +1,815 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Various tokenizing functions and customization
|
35 |
+
|
36 |
+
(define (Token utt)
|
37 |
+
"(Token UTT)
|
38 |
+
Build a Word stream from the Token stream, analyzing compound words
|
39 |
+
numbers etc as tokens into words. Respects the Parameter Language
|
40 |
+
to choose the appropriate token to word module."
|
41 |
+
(let ((rval (apply_method 'Token_Method utt)) ;; might be defined
|
42 |
+
(language (Parameter.get 'Language)))
|
43 |
+
(cond
|
44 |
+
(rval rval) ;; newer style
|
45 |
+
((or (string-equal "britishenglish" language)
|
46 |
+
(string-equal "english" language)
|
47 |
+
(string-equal "americanenglish" language))
|
48 |
+
(Token_English utt))
|
49 |
+
((string-equal "welsh" language)
|
50 |
+
(Token_Welsh utt))
|
51 |
+
(t
|
52 |
+
(Token_Any utt)))))
|
53 |
+
|
54 |
+
(define (remove_leadtrail_underscores name)
|
55 |
+
"(remove_leadtrail_underscores name)
|
56 |
+
Get rid of leading and trailing underscores that may be used for emphasis,
|
57 |
+
not this is called when there are underscores at the beginning and end but
|
58 |
+
there may not be an equal number of them."
|
59 |
+
(let ((se (symbolexplode name)))
|
60 |
+
(while (string-equal "_" (car se))
|
61 |
+
(set! se (cdr se)))
|
62 |
+
(set! se (reverse se))
|
63 |
+
(while (string-equal "_" (car se))
|
64 |
+
(set! se (cdr se)))
|
65 |
+
(apply string-append (reverse se))))
|
66 |
+
|
67 |
+
(define (english_token_to_words token name)
|
68 |
+
"(english_token_to_words TOKEN NAME)
|
69 |
+
Returns a list of words for NAME from TOKEN. This allows the
|
70 |
+
user to customize various non-local, multi-word, context dependent
|
71 |
+
translations of tokens into words. If this function is unset only
|
72 |
+
the builtin translation rules are used, if this is set the builtin
|
73 |
+
rules are not used unless explicitly called. [see Token to word rules]"
|
74 |
+
(cond
|
75 |
+
((string-equal (downcase name) "al'ar")
|
76 |
+
(list "Allar"))
|
77 |
+
((string-equal name "POA")
|
78 |
+
(list "P" "O" (list '(name "A") (list 'pos token.letter_pos))))
|
79 |
+
((string-equal name "US")
|
80 |
+
(list "U" "S"))
|
81 |
+
((string-equal name "IT")
|
82 |
+
(list (list '(name "I") (list 'pos token.letter_pos)) "T"))
|
83 |
+
((string-equal name "AI")
|
84 |
+
(list (list '(name "A") (list 'pos token.letter_pos)) "I"))
|
85 |
+
((string-equal (downcase name) "openai")
|
86 |
+
(list "Open" (list '(name "A") (list 'pos token.letter_pos)) "I"))
|
87 |
+
((string-equal name "EB")
|
88 |
+
(list "E" "B"))
|
89 |
+
((string-equal (downcase name) "ios")
|
90 |
+
(list "I" "O" "S"))
|
91 |
+
((string-equal (downcase name) "content")
|
92 |
+
(if (and (string-equal (downcase (item.feat token "n.name")) "with")
|
93 |
+
(string-matches (downcase (item.feat token "p.name")) "be\\|been\\|being\\|is\\(n'?t\\)?\\|are\\(n'?t\\)?\\|was\\(n'?t\\)\\|were\\(n'?t\\)\\|not\\|will\\|won'?t\\|may\\|would\\(n'?t\\)?\\|can\\(not\\)?\\|could\\(n'?t\\)?\\|should\\(n'?t\\)?\\|must\\(n'?t\\)?\\|might"))
|
94 |
+
(list (list (list 'name name)(list 'pos 'jj)))
|
95 |
+
(list (list (list 'name name)(list 'pos 'nn)))))
|
96 |
+
((string-equal name "/") (list ""))
|
97 |
+
((and (string-equal (downcase name) "refuse")
|
98 |
+
(string-equal (downcase (item.feat token "n.name")) "to"))
|
99 |
+
(list (list (list 'name name)(list 'pos 'vb))))
|
100 |
+
((string-equal (downcase name) "live")
|
101 |
+
(cond
|
102 |
+
((or (string-matches (downcase (item.feat token "n.name")) "nation\\|tv\\|news\\|broadcasts?\\|streams?\\|stream\\(ing\\)?\\|shows?\\|events?\\|games?\\|match\\(es\\)?\\|scores?")
|
103 |
+
(string-matches (downcase (item.feat token "nn.name")) "games?\\|match\\(es\\)?\\|scores?"))
|
104 |
+
(list (list (list 'name name)(list 'pos 'jj))))
|
105 |
+
((string-equal (item.feat token "p.name") "I")
|
106 |
+
(list (list (list 'name name)(list 'pos 'vb))))
|
107 |
+
((not (string-equal (item.feat token "punc") 0))
|
108 |
+
(if (string-matches (downcase (item.feat token "p.name")) "to\\|I\\|we\\|you\\|they\\|he\\|she\\|will\\|may\\|would\\|can\\|could\\|should\\|must\\|might")
|
109 |
+
(list (list (list 'name name)(list 'pos 'vb)))
|
110 |
+
(list (list (list 'name name)(list 'pos 'jj)))))
|
111 |
+
(t
|
112 |
+
(builtin_english_token_to_words token name))))
|
113 |
+
((string-equal name "#") (list "pound"))
|
114 |
+
((string-equal name "$") (list "dollar"))
|
115 |
+
((string-matches name "[A-Z]*[\\$#][0-9,]+\\(\\.[0-9]+\\)?")
|
116 |
+
;; Some form of money (pounds or type of dollars)
|
117 |
+
(let (amount type currency)
|
118 |
+
(cond
|
119 |
+
((string-matches name ".*\\$.*")
|
120 |
+
(set! amount (string-after name "$"))
|
121 |
+
(set! type (string-before name "$"))
|
122 |
+
(set! currency "dollar"))
|
123 |
+
((string-matches name ".*#.*")
|
124 |
+
(set! amount (string-after name "#"))
|
125 |
+
(set! type (string-before name "#"))
|
126 |
+
(set! currency "pound"))
|
127 |
+
(t
|
128 |
+
;; who knows
|
129 |
+
(set! amount (string-after name "$"))
|
130 |
+
(set! type (string-before name "$"))
|
131 |
+
(set! currency "dollar")))
|
132 |
+
(cond
|
133 |
+
((string-matches (item.feat token "n.name")
|
134 |
+
".*illion.?")
|
135 |
+
(append ;; "billions and billions" - Sagan
|
136 |
+
(builtin_english_token_to_words token amount)
|
137 |
+
(list (item.feat token "n.name")) ;; illion
|
138 |
+
(token_money_expand type)
|
139 |
+
(list (string-append currency "s"))))
|
140 |
+
((string-matches amount ".*\\...$")
|
141 |
+
(cond
|
142 |
+
((string-equal amount "0.00")
|
143 |
+
(append
|
144 |
+
(list "zero")
|
145 |
+
(list (string-append currency "s"))))
|
146 |
+
((string-equal amount "0.01")
|
147 |
+
(append
|
148 |
+
(list "one")
|
149 |
+
(if (string-equal currency "dollar")
|
150 |
+
(list "cent")
|
151 |
+
(list "penny"))))
|
152 |
+
((string-matches amount "0\\.[0-9][0-9]")
|
153 |
+
(append
|
154 |
+
(builtin_english_token_to_words
|
155 |
+
token (remove_leading_zeros (string-after amount ".")))
|
156 |
+
(if (string-equal currency "dollar")
|
157 |
+
(list "cents")
|
158 |
+
(list "pence"))))
|
159 |
+
(t
|
160 |
+
(append
|
161 |
+
(builtin_english_token_to_words token (string-before amount "."))
|
162 |
+
(token_money_expand type)
|
163 |
+
(if (string-matches amount "1\\..*")
|
164 |
+
(list currency)
|
165 |
+
(list (string-append currency "s")))
|
166 |
+
(cond
|
167 |
+
((string-matches name ".*\\.00$")
|
168 |
+
nil)
|
169 |
+
((string-matches name ".*\\.01$")
|
170 |
+
(append
|
171 |
+
(list "and" "one")
|
172 |
+
(if (string-equal currency "dollar")
|
173 |
+
(list "cent")
|
174 |
+
(list "penny"))))
|
175 |
+
(t
|
176 |
+
(append
|
177 |
+
(list "and")
|
178 |
+
(builtin_english_token_to_words
|
179 |
+
token (remove_leading_zeros (string-after amount ".")))
|
180 |
+
(if (string-equal currency "dollar")
|
181 |
+
(list "cents")
|
182 |
+
(list "pence")))))))))
|
183 |
+
(t
|
184 |
+
(append ;; nothing after point or lots after point
|
185 |
+
(builtin_english_token_to_words token amount)
|
186 |
+
(token_money_expand type)
|
187 |
+
(if (or (string-matches amount "1")
|
188 |
+
(string-equal currency "yuan"))
|
189 |
+
(list currency)
|
190 |
+
(list (string-append currency "s"))))))))
|
191 |
+
((and (string-matches name ".*illion.?")
|
192 |
+
(string-matches (item.feat token "p.name")
|
193 |
+
"[A-Z]*[\\$#][0-9,]+\\(\\.[0-9]+\\)?"))
|
194 |
+
nil ;; dealt with on the previous symbol
|
195 |
+
)
|
196 |
+
((string-matches name "[1-9][0-9]*/[1-9][0-9]*")
|
197 |
+
(let ((numerator (string-before name "/"))
|
198 |
+
(denominator (string-after name "/"))
|
199 |
+
)
|
200 |
+
(cond
|
201 |
+
((string-matches name "1/2")
|
202 |
+
(list "half"))
|
203 |
+
((string-matches denominator "4")
|
204 |
+
(append
|
205 |
+
(builtin_english_token_to_words token numerator)
|
206 |
+
(list "quarter")
|
207 |
+
(if (string-equal numerator "1")
|
208 |
+
(list '((name "'s")(pos nnp)))
|
209 |
+
nil)))
|
210 |
+
(t
|
211 |
+
(append
|
212 |
+
(builtin_english_token_to_words token numerator)
|
213 |
+
(begin
|
214 |
+
(item.set_feat token "token_pos" "ordinal")
|
215 |
+
(builtin_english_token_to_words token denominator))
|
216 |
+
(if (string-equal numerator "1")
|
217 |
+
nil
|
218 |
+
(list '((name "'s")(pos nnp)))))))))
|
219 |
+
((and (string-matches name "No")
|
220 |
+
(item.next token)
|
221 |
+
(string-matches (item.feat token "n.name")
|
222 |
+
"[0-9]+"))
|
223 |
+
(list
|
224 |
+
"number"))
|
225 |
+
((string-matches name ".*%$")
|
226 |
+
(append
|
227 |
+
(token_to_words token (string-before name "%"))
|
228 |
+
(list "percent")))
|
229 |
+
((string-matches name "[0-9]+s") ;; e.g. 1950s
|
230 |
+
(item.set_feat token "token_pos" "year") ;; reasonable guess
|
231 |
+
(append
|
232 |
+
(builtin_english_token_to_words token (string-before name "s"))
|
233 |
+
(list '((name "'s")(pos nnp))) ;; will get assimilated by postlexical rules
|
234 |
+
))
|
235 |
+
((string-matches name "[0-9]+'s") ;; e.g. 1950's
|
236 |
+
(item.set_feat token "token_pos" "year") ;; reasonable guess
|
237 |
+
(append
|
238 |
+
(builtin_english_token_to_words token (string-before name "'s"))
|
239 |
+
(list '((name "'s")(pos nnp))) ;; will get assimilated by postlexical rules
|
240 |
+
))
|
241 |
+
((and (string-matches name ".*s$")
|
242 |
+
(string-equal (item.feat token "punc") "'"))
|
243 |
+
;; potential possessive or may be end of a quote
|
244 |
+
(if (token_no_starting_quote token)
|
245 |
+
(item.set_feat token "punc" ""))
|
246 |
+
(builtin_english_token_to_words token name))
|
247 |
+
((and (string-equal name "A") ;; letter or determiner
|
248 |
+
(or (and (string-matches (item.feat token "p.name") "[A-Za-z].*")
|
249 |
+
(string-equal (item.feat token "p.punc") 0))
|
250 |
+
;; (or (string-equal (item.feat token "p.punc") 0)
|
251 |
+
;; (not string-matches (item.feat token "p.punc") ".*[?!:\\.;].*")))
|
252 |
+
(string-matches (item.feat token "n.name") "[A-Z].*")))
|
253 |
+
(list (list '(name "a")(list 'pos token.letter_pos))))
|
254 |
+
((and (or (string-equal name "A") (string-equal name "a")) ;; letter or determiner
|
255 |
+
(and (string-equal (item.feat token "p.name") 0)
|
256 |
+
(string-equal (item.feat token "n.name") 0)))
|
257 |
+
(list (list '(name "a")(list 'pos token.letter_pos))))
|
258 |
+
((member_string name english_homographs)
|
259 |
+
(list (list (list 'name name)
|
260 |
+
(list 'hg_pos (item.feat token "token_pos")))))
|
261 |
+
((string-matches name "__*[^_][^_]*_*_") ;; _emphasis_
|
262 |
+
(english_token_to_words
|
263 |
+
token
|
264 |
+
(remove_leadtrail_underscores name)
|
265 |
+
))
|
266 |
+
((string-matches name "\\(EW\\|NS\\|NE\\|CC\\|DT\\|TE\\|JS\\|JW\\|JE\\|CR\\|CP\\)[1-4][0-9]") ;; Singapore MRT station IDs
|
267 |
+
(let (lname num)
|
268 |
+
(cond
|
269 |
+
((string-matches name "EW.*")
|
270 |
+
(set! lname "EW"))
|
271 |
+
((string-matches name "NS.*")
|
272 |
+
(set! lname "NS"))
|
273 |
+
((string-matches name "NE.*")
|
274 |
+
(set! lname "NE"))
|
275 |
+
((string-matches name "CC.*")
|
276 |
+
(set! lname "CC"))
|
277 |
+
((string-matches name "DT.*")
|
278 |
+
(set! lname "DT"))
|
279 |
+
((string-matches name "TE.*")
|
280 |
+
(set! lname "TE"))
|
281 |
+
((string-matches name "JS.*")
|
282 |
+
(set! lname "JS"))
|
283 |
+
((string-matches name "JW.*")
|
284 |
+
(set! lname "JW"))
|
285 |
+
((string-matches name "JE.*")
|
286 |
+
(set! lname "JE"))
|
287 |
+
((string-matches name "CR.*")
|
288 |
+
(set! lname "CR"))
|
289 |
+
(t
|
290 |
+
(set! lname "CP")))
|
291 |
+
(set! num (string-after name lname))
|
292 |
+
(append
|
293 |
+
(symbolexplode lname)
|
294 |
+
(builtin_english_token_to_words token num))))
|
295 |
+
((string-matches name "\\([1-9]\\|10\\|11\\|12\\)[AaPp][Mm]") ;; time
|
296 |
+
(let (hour apm (atime (downcase name)))
|
297 |
+
(if (string-matches atime ".*am")
|
298 |
+
(set! apm "am")
|
299 |
+
(set! apm "pm"))
|
300 |
+
(set! hour (string-before atime apm))
|
301 |
+
(append
|
302 |
+
(builtin_english_token_to_words token hour)
|
303 |
+
(if (string-equal apm "am")
|
304 |
+
(builtin_english_token_to_words token "A.M")
|
305 |
+
(builtin_english_token_to_words token "P.M")))))
|
306 |
+
((string-matches name "[0-9]?[0-9][:\\.][0-9][0-9][AaPp][Mm]") ;; time
|
307 |
+
;; must be am/pm present for . to be acceptable separator
|
308 |
+
(let (hours mins half sep (ttime (downcase name)))
|
309 |
+
(if (string-matches ttime ".*:.*")
|
310 |
+
(set! sep ":")
|
311 |
+
(set! sep "."))
|
312 |
+
(set! hours (string-before ttime sep))
|
313 |
+
(set! mins (string-after ttime sep))
|
314 |
+
(if (string-matches ttime ".*am")
|
315 |
+
(set! sep "am")
|
316 |
+
(set! sep "pm"))
|
317 |
+
(set! mins (string-before mins sep))
|
318 |
+
(append
|
319 |
+
(builtin_english_token_to_words token hours)
|
320 |
+
(cond
|
321 |
+
((string-equal mins "00")
|
322 |
+
nil)
|
323 |
+
((string-matches mins "0.")
|
324 |
+
(cons
|
325 |
+
"oh"
|
326 |
+
(builtin_english_token_to_words token (string-after mins "0"))))
|
327 |
+
(t
|
328 |
+
(builtin_english_token_to_words token mins)))
|
329 |
+
(if (string-equal sep "am")
|
330 |
+
(builtin_english_token_to_words token "A.M")
|
331 |
+
(builtin_english_token_to_words token "P.M")))))
|
332 |
+
((string-matches name "[0-9]?[0-9]:[0-9][0-9]") ;; time
|
333 |
+
(append
|
334 |
+
(builtin_english_token_to_words
|
335 |
+
token (remove_leading_zeros (string-before name ":")))
|
336 |
+
(cond
|
337 |
+
((string-equal "00" (string-after name ":"))
|
338 |
+
nil)
|
339 |
+
((string-matches (string-after name ":") "0.")
|
340 |
+
(cons
|
341 |
+
"oh"
|
342 |
+
(builtin_english_token_to_words
|
343 |
+
token
|
344 |
+
(remove_leading_zeros (string-after name ":")))))
|
345 |
+
(t
|
346 |
+
(builtin_english_token_to_words
|
347 |
+
token
|
348 |
+
(string-after name ":"))))))
|
349 |
+
((string-matches name "[0-9][0-9]:[0-9][0-9]:[0-9][0-9]") ;; exact time
|
350 |
+
(append
|
351 |
+
(builtin_english_token_to_words
|
352 |
+
token (remove_leading_zeros (string-before name ":")))
|
353 |
+
(list "hours")
|
354 |
+
(builtin_english_token_to_words
|
355 |
+
token (remove_leading_zeros
|
356 |
+
(string-before (string-after name ":") ":")))
|
357 |
+
(list "minutes" "and")
|
358 |
+
(builtin_english_token_to_words
|
359 |
+
token (remove_leading_zeros
|
360 |
+
(string-after (string-after name ":") ":")))
|
361 |
+
(list "seconds")))
|
362 |
+
((string-matches name "[12][0-9][0-9][0-9]/\\(1[012]\\|0[1-9]\\)/\\(0[1-9]\\|[12][0-9]\\|3[01]\\)")
|
363 |
+
(let ((year (string-before name "/"))
|
364 |
+
(num1 (string-before (string-after name "/") "/"))
|
365 |
+
(num2 (string-after (string-after name "/") "/"))
|
366 |
+
month day)
|
367 |
+
(cond
|
368 |
+
((string-equal num1 "01")
|
369 |
+
(set! month "january"))
|
370 |
+
((string-equal num1 "02")
|
371 |
+
(set! month "february"))
|
372 |
+
((string-equal num1 "03")
|
373 |
+
(set! month "march"))
|
374 |
+
((string-equal num1 "04")
|
375 |
+
(set! month "april"))
|
376 |
+
((string-equal num1 "05")
|
377 |
+
(set! month "may"))
|
378 |
+
((string-equal num1 "06")
|
379 |
+
(set! month "june"))
|
380 |
+
((string-equal num1 "07")
|
381 |
+
(set! month "july"))
|
382 |
+
((string-equal num1 "08")
|
383 |
+
(set! month "august"))
|
384 |
+
((string-equal num1 "09")
|
385 |
+
(set! month "september"))
|
386 |
+
((string-equal num1 "10")
|
387 |
+
(set! month "october"))
|
388 |
+
((string-equal num1 "11")
|
389 |
+
(set! month "november"))
|
390 |
+
((string-equal num1 "12")
|
391 |
+
(set! month "december"))
|
392 |
+
(t
|
393 |
+
(set! month (tok_string_as_letters num1))))
|
394 |
+
(item.set_feat token "token_pos" "ordinal")
|
395 |
+
(set! day (builtin_english_token_to_words token num2))
|
396 |
+
(item.set_feat token "token_pos" "year")
|
397 |
+
(append
|
398 |
+
(list month)
|
399 |
+
(list "the")
|
400 |
+
day
|
401 |
+
(builtin_english_token_to_words token year))))
|
402 |
+
((string-matches name "[0-9][0-9]?/[0-9][0-9]?/[0-9][0-9]\\([0-9][0-9]\\)?")
|
403 |
+
;; date, say it as numbers to avoid American/British problem
|
404 |
+
(let ((num1 (string-before name "/"))
|
405 |
+
(num2 (string-before (string-after name "/") "/"))
|
406 |
+
(year (string-after (string-after name "/") "/"))
|
407 |
+
day month)
|
408 |
+
(item.set_feat token "token_pos" "cardinal")
|
409 |
+
(set! day (builtin_english_token_to_words token num1))
|
410 |
+
(set! month (builtin_english_token_to_words token num2))
|
411 |
+
(item.set_feat token "token_pos" "year")
|
412 |
+
(append
|
413 |
+
day
|
414 |
+
month
|
415 |
+
(list '((name ",")(pbreak_scale 0.9)))
|
416 |
+
(builtin_english_token_to_words token year))))
|
417 |
+
((string-matches name "[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]")
|
418 |
+
(item.set_feat token "token_pos" "digits") ;; canonical phone number
|
419 |
+
(append
|
420 |
+
(builtin_english_token_to_words token (string-before name "-"))
|
421 |
+
(list '((name ",")(pbreak_scale 1.0)))
|
422 |
+
(builtin_english_token_to_words token (string-after name "-"))))
|
423 |
+
((string-matches name "[0-9]+-[0-9]+-[-0-9]+")
|
424 |
+
;; long distance number
|
425 |
+
(let ((r '(dummy)) (remainder name))
|
426 |
+
(item.set_feat token "token_pos" "digits")
|
427 |
+
(while (> (length remainder) 0)
|
428 |
+
(if (string-matches remainder "[0-9]+")
|
429 |
+
(set! r (append r
|
430 |
+
(builtin_english_token_to_words
|
431 |
+
token remainder)))
|
432 |
+
(set! r (append r
|
433 |
+
(builtin_english_token_to_words
|
434 |
+
token (string-before remainder "-")))))
|
435 |
+
(set! remainder (string-after remainder "-"))
|
436 |
+
(if (> (length remainder) 0)
|
437 |
+
(set! r (append r (list '((name ",")(pbreak_scale 1.0)))))))
|
438 |
+
(cdr r))
|
439 |
+
)
|
440 |
+
((and (string-matches name "[0-9][0-9][0-9]")
|
441 |
+
(string-matches (item.feat token "n.name")
|
442 |
+
"[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]"))
|
443 |
+
(item.set_feat token "token_pos" "digits")
|
444 |
+
(builtin_english_token_to_words token name))
|
445 |
+
((string-matches name "[0-9]+-[0-9]+")
|
446 |
+
(let ((tokpos))
|
447 |
+
(item.set_name token (string-before name "-"))
|
448 |
+
(set! tokpos (wagon token
|
449 |
+
(car (cdr (assoc "[0-9]+" token_pos_cart_trees)))))
|
450 |
+
(item.set_feat token "token_pos" (car tokpos))
|
451 |
+
(append
|
452 |
+
(builtin_english_token_to_words token (string-before name "-"))
|
453 |
+
(list "to")
|
454 |
+
(builtin_english_token_to_words token (string-after name "-")))))
|
455 |
+
((string-matches name "\\(iii?\\|II?I?\\|IV\\|VI?I?I?\\|IX\\|X[VIX]*\\)")
|
456 |
+
;; Roman numerals
|
457 |
+
(let ((tp (item.feat token "token_pos")))
|
458 |
+
(cond
|
459 |
+
((string-matches tp "century");; always believe this
|
460 |
+
(item.set_feat token "token_pos" "ordinal")
|
461 |
+
(if (or (string-equal "1" (tok_rex token))
|
462 |
+
(item.feat token "p.lisp_tok_rex_names"))
|
463 |
+
(append
|
464 |
+
(list "the")
|
465 |
+
(builtin_english_token_to_words
|
466 |
+
token (tok_roman_to_numstring name)))
|
467 |
+
(builtin_english_token_to_words
|
468 |
+
token (tok_roman_to_numstring name))))
|
469 |
+
((string-matches name "[IVX]");; be *very* wary of this one
|
470 |
+
(if (and (string-equal
|
471 |
+
"1" (item.feat token "p.lisp_tok_section_name"))
|
472 |
+
(string-matches tp "number")
|
473 |
+
(string-equal (item.feat token "p.punc") 0))
|
474 |
+
(builtin_english_token_to_words
|
475 |
+
token (tok_roman_to_numstring name))
|
476 |
+
(tok_string_as_letters name)))
|
477 |
+
((or (string-matches tp "number")
|
478 |
+
(string-matches name "iii?\\|III?"))
|
479 |
+
(item.set_feat token "token_pos" "cardinal")
|
480 |
+
(builtin_english_token_to_words
|
481 |
+
token (tok_roman_to_numstring name)))
|
482 |
+
(t;; else its a letter
|
483 |
+
(tok_string_as_letters name)))))
|
484 |
+
((and (string-matches name "pp")
|
485 |
+
(string-matches (item.feat token "n.name")
|
486 |
+
"[0-9]+-[0-9]+"))
|
487 |
+
(list "pages"))
|
488 |
+
((and (string-matches name "ss")
|
489 |
+
(string-matches (item.feat token "n.name")
|
490 |
+
"[0-9]+-[0-9]+"))
|
491 |
+
(list "sections"))
|
492 |
+
((string-matches name "_____+")
|
493 |
+
(list "line" "of" "underscores"))
|
494 |
+
((string-matches name "=====+")
|
495 |
+
(list "line" "of" "equals"))
|
496 |
+
((string-matches name "-----+")
|
497 |
+
(list "line" "of" "hyphens"))
|
498 |
+
((string-matches name "\\*\\*\\*\\*\\*+")
|
499 |
+
(list "line" "of" "asterisks"))
|
500 |
+
((string-matches name "--+")
|
501 |
+
(list '((name ",")(pbreak_scale 1.0))))
|
502 |
+
((string-matches name ".*--+.*")
|
503 |
+
(append
|
504 |
+
(builtin_english_token_to_words token (string-before name "--"))
|
505 |
+
(list '((name ",")(pbreak_scale 1.0)))
|
506 |
+
(builtin_english_token_to_words token (string-after name "--"))))
|
507 |
+
((string-matches name "[A-Z][A-Z]?&[A-Z][A-Z]?")
|
508 |
+
(append
|
509 |
+
(tok_string_as_letters (string-before name "&"))
|
510 |
+
(list "and")
|
511 |
+
(tok_string_as_letters (string-after name "&"))))
|
512 |
+
((and (string-equal name "Ms")
|
513 |
+
(string-matches (item.feat token "n.name") "[A-Z][^A-Z]*"))
|
514 |
+
(list "mizz"))
|
515 |
+
((string-matches name "[A-Z]+'s")
|
516 |
+
(append
|
517 |
+
(builtin_english_token_to_words token (string-before name "'s"))
|
518 |
+
(list '((name "'s")(pos nnp))) ;; will get assimilated by postlexical rules
|
519 |
+
))
|
520 |
+
((or (string-matches name "[A-Z][A-Z]+s")
|
521 |
+
(string-matches name "[BCDEFGHJKLMNOPQRSTVWXYZ]+s"))
|
522 |
+
(append
|
523 |
+
(builtin_english_token_to_words token (string-before name "s"))
|
524 |
+
(list '((name "'s")(pos nnp))) ;; will get assimilated by postlexical rules
|
525 |
+
))
|
526 |
+
((string-matches name "<.*@.*>") ;; quoted e-mail
|
527 |
+
(append
|
528 |
+
(builtin_english_token_to_words
|
529 |
+
token (string-after (string-before name "@") "<"))
|
530 |
+
(list "at")
|
531 |
+
(builtin_english_token_to_words
|
532 |
+
token (string-before (string-after name "@") ">"))))
|
533 |
+
((string-matches name "\\(Dr\\|St\\)")
|
534 |
+
(if (string-equal (item.feat token "token_pos") "street")
|
535 |
+
(if (string-matches name "Dr")
|
536 |
+
(list "drive")
|
537 |
+
(list "street"))
|
538 |
+
(if (string-matches name "Dr") ;; default on title side
|
539 |
+
(list "doctor")
|
540 |
+
(list "saint"))))
|
541 |
+
((string-matches name "[Cc]alif") ;; hopelessly specific ...
|
542 |
+
(list
|
543 |
+
"california"))
|
544 |
+
(t
|
545 |
+
(builtin_english_token_to_words token name))))
|
546 |
+
|
547 |
+
;;; This is set as the default
|
548 |
+
(defvar token_to_words english_token_to_words)
|
549 |
+
|
550 |
+
(defvar token.punctuation "\"'`.,:;!?(){}[]"
|
551 |
+
"token.punctuation
|
552 |
+
A string of characters which are to be treated as punctuation when
|
553 |
+
tokenizing text. Punctuation symbols will be removed from the text
|
554 |
+
of the token and made available through the \"punctuation\" feature.
|
555 |
+
[see Tokenizing]")
|
556 |
+
(defvar token.prepunctuation "\"'`({["
|
557 |
+
"token.prepunctuation
|
558 |
+
A string of characters which are to be treated as preceding punctuation
|
559 |
+
when tokenizing text. Prepunctuation symbols will be removed from the text
|
560 |
+
of the token and made available through the \"prepunctuation\" feature.
|
561 |
+
[see Tokenizing]")
|
562 |
+
(defvar token.whitespace " \t\n\r "
|
563 |
+
"token.whitespace
|
564 |
+
A string of characters which are to be treated as whitespace when
|
565 |
+
tokenizing text. Whitespace is treated as a separator and removed
|
566 |
+
from the text of a token and made available through the \"whitespace\"
|
567 |
+
feature. [see Tokenizing]")
|
568 |
+
(defvar token.singlecharsymbols ""
|
569 |
+
"token.singlecharsymbols
|
570 |
+
Characters which have always to be split as tokens. This would be
|
571 |
+
usual is standard text, but is useful in parsing some types of
|
572 |
+
file. [see Tokenizing]")
|
573 |
+
|
574 |
+
(defvar token.letter_pos 'nn
|
575 |
+
"token.letter_pos
|
576 |
+
The part of speech tag (valid for your part of speech tagger) for
|
577 |
+
individual letters. When the tokenizer decide to pronounce a token
|
578 |
+
as a list of letters this tag is added to each letter in the list.
|
579 |
+
Note this should be from the part of speech set used in your tagger
|
580 |
+
which may not be the same one that appears in the actual lexical
|
581 |
+
entry (if you map them afterwards). This specifically allows \"a\"
|
582 |
+
to come out as ae rather than @.")
|
583 |
+
|
584 |
+
(defvar token.unknown_word_name "unknown"
|
585 |
+
"token.unknown_word_name
|
586 |
+
When all else fails and a pronunciation for a word or character can't
|
587 |
+
be found this word will be said instead. If you make this \"\" them
|
588 |
+
the unknown word will simple be omitted. This will only
|
589 |
+
really be called when there is a bug in the lexicon and characters
|
590 |
+
are missing from the lexicon. Note this word should be in the lexicon.")
|
591 |
+
|
592 |
+
(def_feature_docstring
|
593 |
+
'Token.punc
|
594 |
+
"Token.punc
|
595 |
+
Succeeding punctuation symbol found after token in original
|
596 |
+
string/file.")
|
597 |
+
(def_feature_docstring
|
598 |
+
'Token.whitespace
|
599 |
+
"Token.whitespace
|
600 |
+
Whitespace found before token in original string/file.")
|
601 |
+
(def_feature_docstring
|
602 |
+
'Token.prepunctuation
|
603 |
+
"Token.prepunctuation
|
604 |
+
Preceeding puctuation symbol found before token in original string/file.")
|
605 |
+
|
606 |
+
(require 'tokenpos)
|
607 |
+
;;;
|
608 |
+
;;; Token pos are gross level part of speech tags which help decide
|
609 |
+
;;; pronunciation of tokens (particular expansion of Tokens into words)
|
610 |
+
;;; The most obvious example is identifying number types (ordinals,
|
611 |
+
;;; years, digits or numbers).
|
612 |
+
;;;
|
613 |
+
(defvar english_token_pos_cart_trees
|
614 |
+
'(
|
615 |
+
;; Format is (Regex Tree)
|
616 |
+
("[0-9]+"
|
617 |
+
((lisp_num_digits < 3.8)
|
618 |
+
((p.lisp_token_pos_guess is month)
|
619 |
+
((lisp_month_range is 0) ((cardinal)) ((ordinal)))
|
620 |
+
((n.lisp_token_pos_guess is month)
|
621 |
+
((lisp_month_range is 0) ((cardinal)) ((ordinal)))
|
622 |
+
((n.lisp_token_pos_guess is numeric)
|
623 |
+
((lisp_num_digits < 2)
|
624 |
+
((p.lisp_token_pos_guess is numeric)
|
625 |
+
((pp.lisp_token_pos_guess is sym) ((digits)) ((cardinal)))
|
626 |
+
((cardinal)))
|
627 |
+
((nn.lisp_token_pos_guess is sym) ((cardinal)) ((digits))))
|
628 |
+
((lisp_num_digits < 2)
|
629 |
+
((nn.lisp_token_pos_guess is numeric)
|
630 |
+
((n.lisp_token_pos_guess is sym)
|
631 |
+
((lisp_month_range is 0) ((digits)) ((cardinal)))
|
632 |
+
((cardinal)))
|
633 |
+
((cardinal)))
|
634 |
+
((name < 302.3)
|
635 |
+
((p.lisp_token_pos_guess is flight)
|
636 |
+
((digits))
|
637 |
+
((n.lisp_token_pos_guess is sym)
|
638 |
+
((p.lisp_token_pos_guess is sym) ((digits)) ((cardinal)))
|
639 |
+
((cardinal))))
|
640 |
+
((p.lisp_token_pos_guess is a)
|
641 |
+
((digits))
|
642 |
+
((n.lisp_token_pos_guess is sym)
|
643 |
+
((nn.lisp_token_pos_guess is sym)
|
644 |
+
((name < 669.2) ((digits)) ((cardinal)))
|
645 |
+
((cardinal)))
|
646 |
+
((name < 373.2)
|
647 |
+
((cardinal))
|
648 |
+
((name < 436.2)
|
649 |
+
((name < 392.6) ((digits)) ((cardinal)))
|
650 |
+
((name < 716.5)
|
651 |
+
((cardinal))
|
652 |
+
((name < 773.6)
|
653 |
+
((p.lisp_token_pos_guess is _other_) ((digits)) ((cardinal)))
|
654 |
+
((cardinal)))))))))))))
|
655 |
+
((p.lisp_token_pos_guess is numeric)
|
656 |
+
((pp.lisp_token_pos_guess is month)
|
657 |
+
((year))
|
658 |
+
((nn.lisp_token_pos_guess is numeric)
|
659 |
+
((cardinal))
|
660 |
+
((p.lisp_token_pos_precise_val is year)
|
661 |
+
((cardinal))
|
662 |
+
((p.lisp_token_pos_precise_val is ordinal)
|
663 |
+
((cardinal))
|
664 |
+
((digits))))))
|
665 |
+
((nn.lisp_token_pos_guess is numeric)
|
666 |
+
((n.lisp_token_pos_guess is month)
|
667 |
+
((cardinal))
|
668 |
+
((n.lisp_token_pos_guess is numeric)
|
669 |
+
((digits))
|
670 |
+
((p.lisp_token_pos_guess is _other_) ((cardinal)) ((year)))))
|
671 |
+
((p.lisp_token_pos_guess is _other_)
|
672 |
+
((lisp_num_digits < 4.4)
|
673 |
+
((name < 2959.6)
|
674 |
+
((name < 1773.4) ((cardinal)) ((year)))
|
675 |
+
((cardinal)))
|
676 |
+
((pp.lisp_token_pos_guess is _other_) ((digits)) ((cardinal))))
|
677 |
+
((n.lisp_token_pos_guess is to)
|
678 |
+
((year))
|
679 |
+
((p.lisp_token_pos_guess is sym)
|
680 |
+
((pp.lisp_token_pos_guess is sym)
|
681 |
+
((cardinal))
|
682 |
+
((lisp_num_digits < 4.6) ((year)) ((digits))))
|
683 |
+
((lisp_num_digits < 4.8)
|
684 |
+
((name < 2880)
|
685 |
+
((name < 1633.2)
|
686 |
+
((name < 1306.4) ((cardinal)) ((year)))
|
687 |
+
((year)))
|
688 |
+
((cardinal)))
|
689 |
+
((cardinal)))))))))
|
690 |
+
)
|
691 |
+
("\\(II?I?\\|IV\\|VI?I?I?\\|IX\\|X[VIX]*\\)";; Roman numerals
|
692 |
+
((p.lisp_tok_rex_names is 0)
|
693 |
+
((lisp_num_digits is 5)
|
694 |
+
((number))
|
695 |
+
((lisp_num_digits is 4)
|
696 |
+
((number))
|
697 |
+
((nn.lisp_num_digits is 13)
|
698 |
+
((number))
|
699 |
+
((p.lisp_num_digits is 7)
|
700 |
+
((number))
|
701 |
+
((p.lisp_tok_section_name is 0)
|
702 |
+
((lisp_tok_rex is 0)
|
703 |
+
((lisp_num_digits is 3)
|
704 |
+
((p.lisp_num_digits is 4)
|
705 |
+
((number))
|
706 |
+
((nn.lisp_num_digits is 4)
|
707 |
+
((number))
|
708 |
+
((n.lisp_num_digits is 4)
|
709 |
+
((number))
|
710 |
+
((pp.lisp_num_digits is 3)
|
711 |
+
((number))
|
712 |
+
((p.lisp_num_digits is 2)
|
713 |
+
((letter))
|
714 |
+
((nn.lisp_num_digits is 2)
|
715 |
+
((letter))
|
716 |
+
((n.cap is 0) ((letter)) ((number)))))))))
|
717 |
+
((nn.lisp_num_digits is 11)
|
718 |
+
((letter))
|
719 |
+
((lisp_num_digits is 1)
|
720 |
+
((pp.lisp_num_digits is 9)
|
721 |
+
((letter))
|
722 |
+
((p.lisp_num_digits is 9)
|
723 |
+
((letter))
|
724 |
+
((n.lisp_num_digits is 6)
|
725 |
+
((letter))
|
726 |
+
((pp.lisp_num_digits is 6)
|
727 |
+
((letter))
|
728 |
+
((pp.cap is 0)
|
729 |
+
((n.cap is 0)
|
730 |
+
((p.lisp_num_digits is 1)
|
731 |
+
((letter))
|
732 |
+
((n.lisp_num_digits is 4) ((letter)) ((letter))))
|
733 |
+
((letter)))
|
734 |
+
((letter)))))))
|
735 |
+
((p.lisp_num_digits is 10)
|
736 |
+
((number))
|
737 |
+
((n.lisp_num_digits is 8)
|
738 |
+
((number))
|
739 |
+
((pp.lisp_num_digits is 9)
|
740 |
+
((number))
|
741 |
+
((nn.lisp_num_digits is 5)
|
742 |
+
((number))
|
743 |
+
((n.lisp_num_digits is 4) ((number)) ((letter))))))))))
|
744 |
+
((letter)))
|
745 |
+
((number)))))))
|
746 |
+
((century))))
|
747 |
+
("\\(Dr\\|St\\)"
|
748 |
+
((n.name is 0)
|
749 |
+
((p.cap is 1)
|
750 |
+
((street))
|
751 |
+
((p.name matches "[0-9]*\\(1[sS][tT]\\|2[nN][dD]\\|3[rR][dD]\\|[0-9][tT][hH]\\)")
|
752 |
+
((street))
|
753 |
+
((title))))
|
754 |
+
((punc matches ".*,.*")
|
755 |
+
((street))
|
756 |
+
((p.punc matches ".*,.*")
|
757 |
+
((title))
|
758 |
+
((n.cap is 0)
|
759 |
+
((street))
|
760 |
+
((p.cap is 0)
|
761 |
+
((p.name matches "[0-9]*\\(1[sS][tT]\\|2[nN][dD]\\|3[rR][dD]\\|[0-9][tT][hH]\\)")
|
762 |
+
((street))
|
763 |
+
((title)))
|
764 |
+
((pp.name matches "[1-9][0-9]+")
|
765 |
+
((street))
|
766 |
+
((title)))))))))
|
767 |
+
("lead"
|
768 |
+
((p.name in (was were have had been having has is are))
|
769 |
+
((led))
|
770 |
+
((liid))))
|
771 |
+
("read"
|
772 |
+
((p.name in ("was" "wasn't" "were" "weren't" "have" "haven't" "had" "hadn't" "been" "having" "has" "hasn't" "is" "isn't" "are" "aren't" "He" "She"))
|
773 |
+
((red))
|
774 |
+
((riid))))
|
775 |
+
;("read"
|
776 |
+
; ((p.name matches "[Pp]lease\\|PLEASE\\|[Ll]et'?s\\|LET'?S\\|[Tt][Oo]\\|[Ww]ill\\|WILL\\|[Ww]on'?t\\|WON'?T\\|[Mm]ay\\|MAY\\|[Cc]an\\(not\\|'?t\\)?\\|CAN\\(NOT\\|'?T\\)?\\|[Mm]ight\\|MIGHT\\|\\([Ww]ould\\|[Cc]ould\\|[Ss]hould\\|[Mm]ust\\)\\(n'?t\\)?\\|\\(WOULD\\|COULD\\|SHOULD\\|MUST\\)\\(N'?T\\)?")
|
777 |
+
; ((riid))
|
778 |
+
; ((p.name is 0)
|
779 |
+
; ((riid))
|
780 |
+
; ((red)))))
|
781 |
+
("and"
|
782 |
+
((n.name is 0)
|
783 |
+
((aend))
|
784 |
+
((punc is 0)
|
785 |
+
((ahnd))
|
786 |
+
((aend)))))
|
787 |
+
("for"
|
788 |
+
((n.name is 0)
|
789 |
+
((faor))
|
790 |
+
((punc is 0)
|
791 |
+
((fer))
|
792 |
+
((faor)))))
|
793 |
+
("to"
|
794 |
+
((n.name is 0)
|
795 |
+
((tuu))
|
796 |
+
((punc is 0)
|
797 |
+
((to))
|
798 |
+
((tuu)))))
|
799 |
+
))
|
800 |
+
|
801 |
+
(defvar english_homographs
|
802 |
+
'("lead" "read" "and" "for" "to")
|
803 |
+
"english_homographs
|
804 |
+
A list of tokens that are dealt with by a homograph disambiguation tree
|
805 |
+
in english_token_pos_cart_trees.")
|
806 |
+
|
807 |
+
(defvar token_pos_cart_trees
|
808 |
+
english_token_pos_cart_trees
|
809 |
+
"token_pos_cart_trees
|
810 |
+
This is a list of pairs or regex plus CART tree. Tokens that match
|
811 |
+
the regex will have the CART tree aplied, setting the result as
|
812 |
+
the token_pos feature on the token. The list is checked in order
|
813 |
+
and only the first match will be applied.")
|
814 |
+
|
815 |
+
(provide 'token)
|
CosyVoice-ttsfrd/resource/festival/tokenpos.scm
ADDED
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Functions used in identifying token types.
|
35 |
+
;;;
|
36 |
+
|
37 |
+
(defvar token_most_common
|
38 |
+
'(
|
39 |
+
sym numeric month to day in the of on and writes a years from
|
40 |
+
for jst at million by is was gmt page he that than more since as when
|
41 |
+
with but after about or his i has it date no died number bst who miles
|
42 |
+
university some people an only w year have ago were are pages up days
|
43 |
+
months hours minutes through out had which least hi last now ft this
|
44 |
+
all one its there between cents until over will before past they
|
45 |
+
nearly times tim message so lbs just if age we during she billion then
|
46 |
+
other be time new her first states not you members under would many
|
47 |
+
says degrees two next fax week while bush been around including back
|
48 |
+
campaign american within publisher flight points even early later
|
49 |
+
world countries every edt can president most could their what them
|
50 |
+
former began women killed another also received long americans pounds
|
51 |
+
do dear said km made into did dead war tel still old x took total men
|
52 |
+
like f am less c well late down weeks end chapter among place house
|
53 |
+
away him election death almost students state soviet where version
|
54 |
+
summer man s nation because washington top though m id est these spent
|
55 |
+
seats gnu estimated those lost ian high each copies children acres
|
56 |
+
tons son per my found won off seconds power nations federal born
|
57 |
+
presidential much city begin p name different whose three home hello
|
58 |
+
million-euro)
|
59 |
+
|
60 |
+
"token_most_common
|
61 |
+
A list of (English) words which were found to be most common in
|
62 |
+
an text database and are used as discriminators in token analysis.")
|
63 |
+
|
64 |
+
(define (token_pos_precise_val sc)
|
65 |
+
"(tok_pos sc)
|
66 |
+
Returns a general pos for sc's name.
|
67 |
+
numeric All digits
|
68 |
+
number float or comma'd numeric
|
69 |
+
sym Contains at least one non alphanumeric
|
70 |
+
month has month name (or abbrev)
|
71 |
+
day has day name (or abbrev)
|
72 |
+
rootname else downcased alphabetic.
|
73 |
+
Note this can be used to find token_pos but isn't used directly as
|
74 |
+
its not disciminatory enough."
|
75 |
+
(let ((name (downcase (item.feat sc "token_pos"))))
|
76 |
+
(cond
|
77 |
+
((string-equal name "year")
|
78 |
+
'year)
|
79 |
+
((string-equal name "ordinal")
|
80 |
+
'ordinal)
|
81 |
+
(t
|
82 |
+
'_other_))))
|
83 |
+
|
84 |
+
(define (token_pos_guess sc)
|
85 |
+
"(tok_pos sc)
|
86 |
+
Returns a general pos for sc's name.
|
87 |
+
numeric All digits
|
88 |
+
number float or comma'd numeric
|
89 |
+
sym Contains at least one non alphanumeric
|
90 |
+
month has month name (or abbrev)
|
91 |
+
day has day name (or abbrev)
|
92 |
+
rootname else downcased alphabetic.
|
93 |
+
Note this can be used to find token_pos but isn't used directly as
|
94 |
+
its not disciminatory enough."
|
95 |
+
(let ((name (downcase (item.name sc))))
|
96 |
+
(cond
|
97 |
+
((string-matches name "[0-9]+")
|
98 |
+
'numeric)
|
99 |
+
((or (string-matches name "[0-9]+\\.[0-9]+")
|
100 |
+
(string-matches name
|
101 |
+
"[0-9][0-9]?[0-9]?,\\([0-9][0-9][0-9],\\)*[0-9][0-9][0-9]"))
|
102 |
+
'number)
|
103 |
+
((member_string name token_most_common)
|
104 |
+
name)
|
105 |
+
((string-matches name ".*[^A-Za-z0-9].*")
|
106 |
+
'sym)
|
107 |
+
((member_string name '(jan january feb february mar march
|
108 |
+
apr april may jun june
|
109 |
+
jul july aug august sep sept september
|
110 |
+
oct october nov november dec december))
|
111 |
+
'month)
|
112 |
+
((member_string name '(sun sunday mon monday tue tues tuesday
|
113 |
+
wed wednesday thu thurs thursday
|
114 |
+
fri friday sat saturday))
|
115 |
+
'day)
|
116 |
+
(t
|
117 |
+
'_other_))))
|
118 |
+
|
119 |
+
(define (token_no_starting_quote token)
|
120 |
+
"(token_no_starting_quote TOKEN)
|
121 |
+
Check to see if a single quote (or backquote) appears as prepunctuation
|
122 |
+
in this token or any previous one in this utterance. This is used to
|
123 |
+
disambiguate ending single quote as possessive or end quote."
|
124 |
+
(cond
|
125 |
+
((null token)
|
126 |
+
t)
|
127 |
+
((string-matches (item.feat token "prepunctuation") "[`']")
|
128 |
+
nil)
|
129 |
+
(t
|
130 |
+
(token_no_starting_quote (item.relation.prev token "Token")))))
|
131 |
+
|
132 |
+
(define (token_zerostart sc)
|
133 |
+
"(zerostart sc)
|
134 |
+
Returns, 1 if first char of sc's name is 0, 0 otherwise."
|
135 |
+
(if (string-matches (item.name sc) "^0.*")
|
136 |
+
"1"
|
137 |
+
"0"))
|
138 |
+
|
139 |
+
(define (tok_roman_to_numstring roman)
|
140 |
+
"(tok_roman_to_numstring ROMAN)
|
141 |
+
Takes a string of roman numerals and converts it to a number and
|
142 |
+
then returns the printed string of that. Only deals with numbers up to 50."
|
143 |
+
(let ((val 0) (chars (symbolexplode (upcase roman))))
|
144 |
+
(while chars
|
145 |
+
(cond
|
146 |
+
((equal? (car chars) 'X)
|
147 |
+
(set! val (+ 10 val)))
|
148 |
+
((equal? (car chars) 'V)
|
149 |
+
(set! val (+ 5 val)))
|
150 |
+
((equal? (car chars) 'I)
|
151 |
+
(cond
|
152 |
+
((equal? (car (cdr chars)) 'V)
|
153 |
+
(set! val (+ 4 val))
|
154 |
+
(set! chars (cdr chars)))
|
155 |
+
((equal? (car (cdr chars)) 'X)
|
156 |
+
(set! val (+ 9 val))
|
157 |
+
(set! chars (cdr chars)))
|
158 |
+
(t
|
159 |
+
(set! val (+ 1 val))))))
|
160 |
+
(set! chars (cdr chars)))
|
161 |
+
(format nil "%d" val)))
|
162 |
+
|
163 |
+
(define (num_digits sc)
|
164 |
+
"(num_digits SC)
|
165 |
+
Returns number of digits (actually chars) is SC's name."
|
166 |
+
(string-length (format nil "%s" (item.name sc))))
|
167 |
+
|
168 |
+
(define (month_range sc)
|
169 |
+
"(month_range SC)
|
170 |
+
1 if SC's name is > 0 and < 32, 0 otherwise."
|
171 |
+
(let ((val (parse-number (item.name sc))))
|
172 |
+
(if (and (> val 0) (< val 32))
|
173 |
+
"1"
|
174 |
+
"0")))
|
175 |
+
|
176 |
+
(define (remove_leading_zeros name)
|
177 |
+
"(remove_leading_zeros name)
|
178 |
+
Remove leading zeros from given string."
|
179 |
+
(let ((nname name))
|
180 |
+
(while (string-matches nname "^0..*")
|
181 |
+
(set! nname (string-after nname "0")))
|
182 |
+
nname))
|
183 |
+
|
184 |
+
(define (token_money_expand type)
|
185 |
+
"(token_money_expand type)
|
186 |
+
Convert shortened form of money identifier to words if of a known type."
|
187 |
+
(cond
|
188 |
+
((string-equal type "HK")
|
189 |
+
(list "Hong" "Kong"))
|
190 |
+
((string-equal type "C")
|
191 |
+
(list "Canadian"))
|
192 |
+
((string-equal type "A")
|
193 |
+
(list "Australian"))
|
194 |
+
((< (length type) 4)
|
195 |
+
(mapcar
|
196 |
+
(lambda (letter)
|
197 |
+
(list (list 'name letter)
|
198 |
+
(list 'pos token.letter_pos)))
|
199 |
+
(symbolexplode type)))
|
200 |
+
(t
|
201 |
+
(list type))))
|
202 |
+
|
203 |
+
(define (find_month_from_number token string-number)
|
204 |
+
"(find_month_from_number token string-number)
|
205 |
+
Find the textual representation of the month from the given string number"
|
206 |
+
(let ((nnum (parse-number string-number)))
|
207 |
+
(cond
|
208 |
+
((equal? 1 nnum) (list "January"))
|
209 |
+
((equal? 2 nnum) (list "February"))
|
210 |
+
((equal? 3 nnum) (list "March"))
|
211 |
+
((equal? 4 nnum) (list "April"))
|
212 |
+
((equal? 5 nnum) (list "May"))
|
213 |
+
((equal? 6 nnum) (list "June"))
|
214 |
+
((equal? 7 nnum) (list "July"))
|
215 |
+
((equal? 8 nnum) (list "August"))
|
216 |
+
((equal? 9 nnum) (list "September"))
|
217 |
+
((equal? 10 nnum) (list "October"))
|
218 |
+
((equal? 11 nnum) (list "November"))
|
219 |
+
((equal? 12 nnum) (list "December"))
|
220 |
+
(t
|
221 |
+
(cons "month"
|
222 |
+
(builtin_english_token_to_words token string-number))))))
|
223 |
+
|
224 |
+
(define (tok_allcaps sc)
|
225 |
+
"(tok_allcaps sc)
|
226 |
+
Returns 1 if sc's name is all capitals, 0 otherwise"
|
227 |
+
(if (string-matches (item.name sc) "[A-Z]+")
|
228 |
+
"1"
|
229 |
+
"0"))
|
230 |
+
|
231 |
+
(define (tok_section_name sc)
|
232 |
+
"(tok_section_name sc)
|
233 |
+
Returns 1 if sc's name is in list of things that are section/chapter
|
234 |
+
like."
|
235 |
+
(if (member_string
|
236 |
+
(downcase (item.name sc))
|
237 |
+
'(chapter section part article phrase verse scene act book
|
238 |
+
volume chap sect art vol war fortran saturn
|
239 |
+
trek))
|
240 |
+
"1"
|
241 |
+
"0"))
|
242 |
+
|
243 |
+
(define (tok_string_as_letters name)
|
244 |
+
"(tok_string_as_letters NAME)
|
245 |
+
Return list of letters marked as letter part of speech made
|
246 |
+
by exploding NAME."
|
247 |
+
(mapcar
|
248 |
+
(lambda (letter)
|
249 |
+
(list (list 'name letter)
|
250 |
+
(list 'pos token.letter_pos)))
|
251 |
+
(symbolexplode name)))
|
252 |
+
|
253 |
+
(define (tok_rex sc)
|
254 |
+
"(tok_rex sc)
|
255 |
+
Returns 1 if King like title is within 3 tokens before or 2 after."
|
256 |
+
(let ((kings '(king queen pope duke tsar emperor shah ceasar
|
257 |
+
duchess tsarina empress baron baroness
|
258 |
+
count countess)))
|
259 |
+
(if (or (member_string
|
260 |
+
(downcase (item.feat sc "R:Token.pp.name"))
|
261 |
+
kings)
|
262 |
+
(member_string
|
263 |
+
(downcase (item.feat sc "R:Token.pp.p.name"))
|
264 |
+
kings)
|
265 |
+
(member_string
|
266 |
+
(downcase (item.feat sc "R:Token.n.name"))
|
267 |
+
kings))
|
268 |
+
"1"
|
269 |
+
"0")))
|
270 |
+
|
271 |
+
(define (tok_rex_names sc)
|
272 |
+
"(tok_rex sc)
|
273 |
+
Returns 1 if this is a King-like name."
|
274 |
+
(if (and
|
275 |
+
(member_string
|
276 |
+
(downcase (item.name sc))
|
277 |
+
'(louis henry charles philip george edward pius william richard
|
278 |
+
ptolemy john paul peter nicholas
|
279 |
+
alexander frederick james alfonso ivan napolean leo
|
280 |
+
gregory catherine alexandria pierre elizabeth mary))
|
281 |
+
(or (string-equal "" (item.feat sc "punc"))
|
282 |
+
(string-equal "0" (item.feat sc "punc"))))
|
283 |
+
"1"
|
284 |
+
"0"))
|
285 |
+
|
286 |
+
(provide 'tokenpos)
|
CosyVoice-ttsfrd/resource/festival/tts.scm
ADDED
@@ -0,0 +1,304 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; Various tts functions and hooks
|
35 |
+
|
36 |
+
;;; Once the utterance is built these functions synth and play it
|
37 |
+
(defvar tts_hooks (list utt.synth utt.play)
|
38 |
+
"tts_hooks
|
39 |
+
Function or list of functions to be called during text to speech.
|
40 |
+
The function tts_file, chunks data into Utterances of type Token and
|
41 |
+
applies this hook to the utterance. This typically contains the utt.synth
|
42 |
+
function and utt.play. [see TTS]")
|
43 |
+
|
44 |
+
;;; This is used to define utterance breaks in tts on files
|
45 |
+
(defvar eou_tree
|
46 |
+
'((lisp_max_num_tokens > 200)
|
47 |
+
((1))
|
48 |
+
((n.whitespace matches ".*\n.*\n\\(.\\|\n\\)*");; significant break (2 nls)
|
49 |
+
((1))
|
50 |
+
((name matches "--+")
|
51 |
+
((1))
|
52 |
+
((punc matches ".*[\\?:!;].*")
|
53 |
+
((1))
|
54 |
+
((punc matches ".*\\..*")
|
55 |
+
((punc matches "..+");; longer punctuation string
|
56 |
+
((punc matches "\\..*,") ;; for U.S.S.R., like tokens
|
57 |
+
((0))
|
58 |
+
((1)))
|
59 |
+
;; This is to distinguish abbreviations vs periods
|
60 |
+
;; These are heuristics
|
61 |
+
((name matches "\\(.*\\..*\\|[A-Z][A-Za-z]?[A-Za-z]?\\|etc\\)");; an abbreviation
|
62 |
+
((n.whitespace is " ")
|
63 |
+
((0));; if abbrev single space isn't enough for break
|
64 |
+
((n.name matches "[A-Z].*")
|
65 |
+
((1))
|
66 |
+
((0))))
|
67 |
+
((n.whitespace is " ");; if it doesn't look like an abbreviation
|
68 |
+
((n.name matches "[A-Z].*");; single space and non-cap is no break
|
69 |
+
((1))
|
70 |
+
((0)))
|
71 |
+
((1)))))
|
72 |
+
((0)))))))
|
73 |
+
"eou_tree
|
74 |
+
End of utterance tree. A decision tree used to determine if the given
|
75 |
+
token marks the end of an utterance. It may look one token ahead to
|
76 |
+
do this. [see Utterance chunking]")
|
77 |
+
|
78 |
+
(define (max_num_tokens x)
|
79 |
+
"(num_tokens x)
|
80 |
+
This is probably controversial, but its good to have a maximum number
|
81 |
+
of tokens in an utterance. You really dont want to wait on very long
|
82 |
+
utterances, some utts can be thousands of words long, these maybe
|
83 |
+
shouldn't be spoken, but we do have to deal with them."
|
84 |
+
(let ((c 1) (y x))
|
85 |
+
(while y
|
86 |
+
(set! c (+ 1 c))
|
87 |
+
(set! y (item.prev y)))
|
88 |
+
c))
|
89 |
+
|
90 |
+
;;; The program used to parse stml files
|
91 |
+
;;; Needs version 1.0 to allow -D option to work
|
92 |
+
(defvar sgml_parse_progname "nsgmls-1.0"
|
93 |
+
"sgml_parse_progname
|
94 |
+
The name of the program to use to parse SGML files. Typically this is
|
95 |
+
nsgml-1.0 from the sp SGML package. [see XML/SGML requirements]")
|
96 |
+
|
97 |
+
;;; When PHRASE elements are specified in an utterance in STML
|
98 |
+
;;; no other method for phrase prediction is to be used, so we
|
99 |
+
;;; use the following tree
|
100 |
+
(set! stml_phrase_cart_tree
|
101 |
+
'((R:Token.parent.pbreak is B)
|
102 |
+
((B))
|
103 |
+
((n.name is 0)
|
104 |
+
((B))
|
105 |
+
((NB)))))
|
106 |
+
|
107 |
+
(define (xxml_synth utt)
|
108 |
+
"(xxml_synth UTT)
|
109 |
+
This applies the xxml_hooks (mode specific) and tts_hooks to the
|
110 |
+
given utterance. This function should be called from xxml element
|
111 |
+
definitions that signal an utterance boundary."
|
112 |
+
(cond
|
113 |
+
((or (not utt)
|
114 |
+
(not (utt.relation utt 'Token))) ;; no tokens
|
115 |
+
nil)
|
116 |
+
(t
|
117 |
+
(apply_hooks xxml_hooks utt)
|
118 |
+
(apply_hooks tts_hooks utt)
|
119 |
+
(set! utt nil) ;; not enough ...
|
120 |
+
(gc)
|
121 |
+
utt))
|
122 |
+
)
|
123 |
+
|
124 |
+
(define (xxml_attval ATTNAME ATTLIST)
|
125 |
+
"(xxml_attval ATTNAME ATTLIST)
|
126 |
+
Returns attribute value of ATTNAME in ATTLIST or nil if it doesn't
|
127 |
+
exists."
|
128 |
+
(cond
|
129 |
+
((not ATTLIST)
|
130 |
+
nil)
|
131 |
+
((string-equal ATTNAME (car (car ATTLIST)))
|
132 |
+
(car (cdr (car ATTLIST))))
|
133 |
+
(t
|
134 |
+
(xxml_attval ATTNAME (cdr ATTLIST)))))
|
135 |
+
|
136 |
+
(defvar xxml_word_features nil
|
137 |
+
"xxml_word_features
|
138 |
+
An assoc list of features to be added to the current word when
|
139 |
+
in xxml parse mode.")
|
140 |
+
|
141 |
+
(defvar xxml_token_hooks nil
|
142 |
+
"xxml_token_hooks
|
143 |
+
Functions to apply to each token.")
|
144 |
+
|
145 |
+
(defvar xxml_hooks nil
|
146 |
+
"xxml_hooks
|
147 |
+
Function or list of functions to be applied to an utterance when
|
148 |
+
parsed with xxML, before tts_hooks.")
|
149 |
+
|
150 |
+
(defvar xxml_elements nil
|
151 |
+
"xxml_elements
|
152 |
+
List of Scheme actions to perform on finding xxML tags.")
|
153 |
+
|
154 |
+
(defvar xml_dtd_dir libdir
|
155 |
+
"xml_dtd_dir
|
156 |
+
The directory holding standard DTD form the xml parser.")
|
157 |
+
|
158 |
+
(set! tts_fnum 1)
|
159 |
+
(define (save_tts_output utt)
|
160 |
+
(let ((fname (string-append "tts_file_" tts_fnum ".wav")))
|
161 |
+
(format stderr "festival: saving waveform in %s\n" fname)
|
162 |
+
(utt.save.wave utt fname)
|
163 |
+
(set! tts_fnum (+ 1 tts_fnum))
|
164 |
+
utt))
|
165 |
+
|
166 |
+
(define (save_waves_during_tts)
|
167 |
+
"(save_waves_during_tts)
|
168 |
+
Save each waveform in the current directory in files \"tts_file_XXX.wav\".
|
169 |
+
use (save_waves_during_tts_STOP) to stop saving waveforms"
|
170 |
+
(if (not (member save_tts_output tts_hooks))
|
171 |
+
(set! tts_hooks (append tts_hooks (list save_tts_output))))
|
172 |
+
t)
|
173 |
+
|
174 |
+
(define (save_waves_during_tts_STOP)
|
175 |
+
"(save_waves_during_tts_STOP)
|
176 |
+
Stop saving waveforms when doing tts."
|
177 |
+
(if (member save_tts_output tts_hooks)
|
178 |
+
(set! tts_hooks (delq save_tts_output tts_hooks)))
|
179 |
+
t)
|
180 |
+
|
181 |
+
(define (tts file mode)
|
182 |
+
"(tts FILE MODE)
|
183 |
+
Convert FILE to speech. MODE identifies any special treatment
|
184 |
+
necessary for FILE. This is simply a front end to tts_file but
|
185 |
+
puts the system in async audio mode first. [see TTS]"
|
186 |
+
(audio_mode 'async)
|
187 |
+
(if mode
|
188 |
+
(tts_file file mode)
|
189 |
+
(tts_file file (tts_find_text_mode file auto-text-mode-alist)))
|
190 |
+
;; (audio_mode 'sync) ;; Hmm this is probably bad
|
191 |
+
)
|
192 |
+
|
193 |
+
(define (tts_text string mode)
|
194 |
+
"(tts_text STRING mode)
|
195 |
+
Apply tts on given string. That is, segment it into utterances and
|
196 |
+
apply tts_hooks to each utterance. This is naively done by saving the
|
197 |
+
string to a file and calling tts_file on that file. This differs from
|
198 |
+
SayText which constructs a single utterance for the whole given text."
|
199 |
+
(let ((tmpfile (make_tmp_filename))
|
200 |
+
(fd))
|
201 |
+
(set! fd (fopen tmpfile "wb"))
|
202 |
+
(format fd "%s" string)
|
203 |
+
(fclose fd)
|
204 |
+
(audio_mode 'async)
|
205 |
+
(tts_file tmpfile mode)
|
206 |
+
(delete-file tmpfile)))
|
207 |
+
|
208 |
+
(define (save_record_wave utt)
|
209 |
+
"Saves the waveform and records its so it can be joined into a
|
210 |
+
a single waveform at the end."
|
211 |
+
(let ((fn (make_tmp_filename)))
|
212 |
+
(utt.save.wave utt fn)
|
213 |
+
(set! wavefiles (cons fn wavefiles))
|
214 |
+
utt))
|
215 |
+
|
216 |
+
(define (combine_waves)
|
217 |
+
"(combine_waves)
|
218 |
+
Join all the waves together into the desired output file
|
219 |
+
and delete the intermediate ones."
|
220 |
+
(let ((wholeutt (Utterance Text "")))
|
221 |
+
(mapcar
|
222 |
+
(lambda (d)
|
223 |
+
(utt.import.wave wholeutt d t)
|
224 |
+
(delete-file d))
|
225 |
+
(reverse wavefiles))
|
226 |
+
wholeutt))
|
227 |
+
|
228 |
+
(define (tts_textall string mode)
|
229 |
+
"(tts_textall STRING MODE)
|
230 |
+
Apply tts to STRING. This function is specifically designed for
|
231 |
+
use in server mode so a single function call may synthesize the string.
|
232 |
+
This function name maybe added to the server safe functions."
|
233 |
+
(if (not (string-equal mode "nil"))
|
234 |
+
(begin
|
235 |
+
;; a mode has been specified so do something different
|
236 |
+
(let ((tmpfile (make_tmp_filename))
|
237 |
+
(fd))
|
238 |
+
(set! fd (fopen tmpfile "wb"))
|
239 |
+
(format fd "%s" string)
|
240 |
+
(fclose fd)
|
241 |
+
(set! tts_hooks (list utt.synth save_record_wave))
|
242 |
+
(set! wavefiles nil)
|
243 |
+
(tts_file tmpfile mode)
|
244 |
+
(delete-file tmpfile)
|
245 |
+
(utt.send.wave.client (combine_waves))
|
246 |
+
))
|
247 |
+
;; Simple fundamental mode
|
248 |
+
(utt.send.wave.client
|
249 |
+
(utt.synth
|
250 |
+
(eval (list 'Utterance 'Text string))))))
|
251 |
+
|
252 |
+
;; Function to interface with app_festival for asterisk
|
253 |
+
;; See http://www.asterisk.org
|
254 |
+
(define (tts_textasterisk string mode)
|
255 |
+
"(tts_textasterisk STRING MODE)
|
256 |
+
Apply tts to STRING. This function is specifically designed for
|
257 |
+
use in server mode so a single function call may synthesize the string.
|
258 |
+
This function name may be added to the server safe functions."
|
259 |
+
(utt.send.wave.asterisk
|
260 |
+
(utt.synth
|
261 |
+
(eval (list 'Utterance 'Text string)))))
|
262 |
+
|
263 |
+
|
264 |
+
|
265 |
+
(define (tts_return_to_client)
|
266 |
+
"(tts_return_to_client)
|
267 |
+
This function is called by clients who wish to return waveforms of
|
268 |
+
their text samples asynchronously. This replaces utt.play in tts_hooks
|
269 |
+
with utt.send.wave.client."
|
270 |
+
(if (not (member utt.send.wave.client tts_hooks))
|
271 |
+
(set! tts_hooks
|
272 |
+
(append (delq utt.play tts_hooks)
|
273 |
+
(list utt.send.wave.client)))))
|
274 |
+
|
275 |
+
(defvar tts_text_modes nil
|
276 |
+
"tts_text_modes
|
277 |
+
An a-list of text modes data for file type specific tts functions.
|
278 |
+
See the manual for an example. [see Text modes]")
|
279 |
+
|
280 |
+
(define (tts_find_text_mode file alist)
|
281 |
+
"(find_text_mode FILE ALIST)
|
282 |
+
Search through ALIST for one that matches FILE. Returns nil if
|
283 |
+
nothing macthes."
|
284 |
+
(cond
|
285 |
+
((null alist) nil) ;; can't find a match
|
286 |
+
((string-matches file (string-append ".*" (car (car alist)) ".*"))
|
287 |
+
(cdr (car alist)))
|
288 |
+
(t
|
289 |
+
(tts_find_text_mode file (cdr alist)))))
|
290 |
+
|
291 |
+
(defvar auto-text-mode-alist
|
292 |
+
(list
|
293 |
+
(cons "\\.sable$" 'sable)
|
294 |
+
(cons "\\.ogi" 'ogimarkup)
|
295 |
+
(cons "\\.email" 'email)
|
296 |
+
(cons "" 'fundamental)
|
297 |
+
)
|
298 |
+
"auto-text-mode-alist
|
299 |
+
Following Emacs' auto-mode-alist thios provides a mechanism for auto
|
300 |
+
selecting a TTS text mode based on the filename being analyzed. Its
|
301 |
+
format is exactly the same as Emacs in that it consists of an alist of
|
302 |
+
dotted pairs of regular expression and text mode name.")
|
303 |
+
|
304 |
+
(provide 'tts)
|
CosyVoice-ttsfrd/resource/festival/voices/english/kal_diphone/COPYING
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
This directory contains a diphone synthesizer voice for American English.
|
3 |
+
This distribution falls under the following copyright. See further
|
4 |
+
notes below copyright.
|
5 |
+
|
6 |
+
Alan W Black and Kevin Lenzo
|
7 |
+
Copyright (c) 1998
|
8 |
+
All Rights Reserved.
|
9 |
+
|
10 |
+
Permission is hereby granted, free of charge, to use and distribute
|
11 |
+
this software and its documentation without restriction, including
|
12 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
13 |
+
distribute, sublicense, and/or sell copies of this work, and to
|
14 |
+
permit persons to whom this work is furnished to do so, subject to
|
15 |
+
the following conditions:
|
16 |
+
1. The code must retain the above copyright notice, this list of
|
17 |
+
conditions and the following disclaimer.
|
18 |
+
2. Any modifications must be clearly marked as such.
|
19 |
+
3. Original authors' names are not deleted.
|
20 |
+
4. The authors' names are not used to endorse or promote products
|
21 |
+
derived from this software without specific prior written
|
22 |
+
permission.
|
23 |
+
|
24 |
+
THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK
|
25 |
+
DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
26 |
+
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
|
27 |
+
SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE
|
28 |
+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
29 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
30 |
+
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
31 |
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
32 |
+
THIS SOFTWARE.
|
33 |
+
|
34 |
+
Note this voice cotains a file Copyright CSTR, University of Edinburgh
|
35 |
+
under the same lincences as the above. The voice also requires the
|
36 |
+
separate distributions festlex_POSLEX.tar.gz and festlex_CMU.tar.gz.
|
37 |
+
festlex_POSLEX.tar.gz is copyright CSTR under the same free licence
|
38 |
+
while festlex_CMU.tar.gz contain material derived from material
|
39 |
+
copyright by Carnegie Mellon University, though their licence is as
|
40 |
+
free as the one above so.
|
41 |
+
|
42 |
+
This voice was created while awb was visiting the speech group at
|
43 |
+
CMU in fall 98.
|
CosyVoice-ttsfrd/resource/festival/voices/english/kal_diphone/festvox/kal_diphone.scm
ADDED
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-*-mode:scheme-*-
|
2 |
+
;;; ;;
|
3 |
+
;;; Alan W Black and Kevin Lenzo ;;
|
4 |
+
;;; Copyright (c) 1998 ;;
|
5 |
+
;;; All Rights Reserved. ;;
|
6 |
+
;;; ;;
|
7 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
8 |
+
;;; this software and its documentation without restriction, including ;;
|
9 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
10 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
11 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
12 |
+
;;; the following conditions: ;;
|
13 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
14 |
+
;;; conditions and the following disclaimer. ;;
|
15 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
16 |
+
;;; 3. Original authors' names are not deleted. ;;
|
17 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
18 |
+
;;; derived from this software without specific prior written ;;
|
19 |
+
;;; permission. ;;
|
20 |
+
;;; ;;
|
21 |
+
;;; THE AUTHORS OF THIS WORK DISCLAIM ALL WARRANTIES WITH REGARD TO ;;
|
22 |
+
;;; THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY ;;
|
23 |
+
;;; AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY ;;
|
24 |
+
;;; SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
25 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
26 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
27 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
28 |
+
;;; THIS SOFTWARE. ;;
|
29 |
+
;;; ;;
|
30 |
+
;;; This file is part "Building Voices in the Festival Speech ;;
|
31 |
+
;;; Synthesis System" by Alan W Black and Kevin Lenzo written at ;;
|
32 |
+
;;; Robotics Institute, Carnegie Mellon University, fall 98 ;;
|
33 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
34 |
+
;;;
|
35 |
+
;;; A US English diphone voice based on KAL
|
36 |
+
;;;
|
37 |
+
;;; Much of the front end is based on KED
|
38 |
+
;;;
|
39 |
+
|
40 |
+
(defvar kal_diphone_dir (cdr (assoc 'kal_diphone voice-locations))
|
41 |
+
"kal_diphone_dir
|
42 |
+
The default directory for the kal diphone database.")
|
43 |
+
(set! load-path (cons (path-append kal_diphone_dir "festvox/") load-path))
|
44 |
+
|
45 |
+
(require 'radio_phones)
|
46 |
+
(require_module 'UniSyn)
|
47 |
+
|
48 |
+
;; set this to lpc or psola
|
49 |
+
(defvar kal_sigpr 'lpc)
|
50 |
+
;; Rset this to ungroup for ungrouped version
|
51 |
+
(defvar kal_groupungroup 'group)
|
52 |
+
|
53 |
+
(if (probe_file (path-append kal_diphone_dir "group/kallpc16k.group"))
|
54 |
+
(defvar kal_index_file
|
55 |
+
(path-append kal_diphone_dir "group/kallpc16k.group"))
|
56 |
+
(defvar kal_index_file
|
57 |
+
(path-append kal_diphone_dir "group/kallpc8k.group")))
|
58 |
+
|
59 |
+
(set! kal_psola_sep
|
60 |
+
(list
|
61 |
+
'(name "kal_psola_sep")
|
62 |
+
(list 'index_file (path-append kal_diphone_dir "dic/diphdic.est"))
|
63 |
+
'(grouped "false")
|
64 |
+
(list 'coef_dir (path-append kal_diphone_dir "pm"))
|
65 |
+
(list 'sig_dir (path-append kal_diphone_dir "wav"))
|
66 |
+
'(coef_ext ".pm")
|
67 |
+
'(sig_ext ".wav")
|
68 |
+
; '(alternates_left ((er ax)))
|
69 |
+
; '(alternates_right (($p p) ($k k) ($g g) ($d d) ($b b) ($t t)
|
70 |
+
; (y ih) (ax ah) (ll l)))
|
71 |
+
'(alternates_right ((er ax)))
|
72 |
+
'(default_diphone "ax-ax")))
|
73 |
+
|
74 |
+
(set! kal_lpc_sep
|
75 |
+
(list
|
76 |
+
'(name "kal_lpc_sep")
|
77 |
+
(list 'index_file (path-append kal_diphone_dir "dic/diphdic.est"))
|
78 |
+
'(grouped "false")
|
79 |
+
(list 'coef_dir (path-append kal_diphone_dir "lpc"))
|
80 |
+
(list 'sig_dir (path-append kal_diphone_dir "lpc"))
|
81 |
+
'(coef_ext ".lpc")
|
82 |
+
'(sig_ext ".res")
|
83 |
+
'(alternates_right ((er ax)))
|
84 |
+
'(default_diphone "ax-ax")))
|
85 |
+
|
86 |
+
(set! kal_lpc_group
|
87 |
+
(list
|
88 |
+
'(name "kal_lpc_group")
|
89 |
+
(list 'index_file kal_index_file)
|
90 |
+
'(grouped "true")
|
91 |
+
'(alternates_right ((er ax)))
|
92 |
+
'(default_diphone "ax-ax")))
|
93 |
+
|
94 |
+
(defvar kal_di_16k nil)
|
95 |
+
(defvar kal_di_8k nil)
|
96 |
+
|
97 |
+
(cond
|
98 |
+
(kal_di_16k
|
99 |
+
(require 'kal_di)
|
100 |
+
(setup_kal_diphone_lpc_16k_grouped))
|
101 |
+
(kal_di_8k
|
102 |
+
(require 'kal_di)
|
103 |
+
(setup_kal_diphone_lpc_8k_grouped))
|
104 |
+
((and (eq kal_sigpr 'psola)
|
105 |
+
(eq kal_groupungroup 'group))
|
106 |
+
(set! kal_db_name (us_diphone_init kal_psola_group)))
|
107 |
+
((and (eq kal_sigpr 'psola)
|
108 |
+
(eq kal_groupungroup 'ungroup))
|
109 |
+
(set! kal_db_name (us_diphone_init kal_psola_sep)))
|
110 |
+
((and (eq kal_sigpr 'lpc)
|
111 |
+
(eq kal_groupungroup 'group))
|
112 |
+
(set! kal_db_name (us_diphone_init kal_lpc_group)))
|
113 |
+
((and (eq kal_sigpr 'lpc)
|
114 |
+
(eq kal_groupungroup 'ungroup))
|
115 |
+
(set! kal_db_name (us_diphone_init kal_lpc_sep))))
|
116 |
+
|
117 |
+
;;;;
|
118 |
+
;;;; Our general diphone scheme allows identification of consonant
|
119 |
+
;;; clusters etc the follow rules should work for American English
|
120 |
+
;;;;
|
121 |
+
(define (kal_diphone_const_clusters utt)
|
122 |
+
"(kal_diphone_const_clusters UTT)
|
123 |
+
Identify consonant clusters, dark ls etc in the segment stream
|
124 |
+
ready for diphone resynthesis. This may be called as a post lexical
|
125 |
+
rule through poslex_rule_hooks."
|
126 |
+
(mapcar
|
127 |
+
(lambda (s) (kal_diphone_fix_phone_name utt s))
|
128 |
+
(utt.relation.items utt 'Segment))
|
129 |
+
utt)
|
130 |
+
|
131 |
+
(define (kal_diphone_fix_phone_name utt seg)
|
132 |
+
"(kal_diphone_fix_phone_name UTT SEG)
|
133 |
+
Add the feature diphone_phone_name to given segment with the appropriate
|
134 |
+
name for constructing a diphone. Basically adds _ if either side is part
|
135 |
+
of the same consonant cluster, adds $ either side if in different
|
136 |
+
syllable for preceding/succeeding vowel syllable."
|
137 |
+
(let ((name (item.name seg)))
|
138 |
+
(cond
|
139 |
+
((string-equal name "pau") t)
|
140 |
+
((string-equal "-" (item.feat seg 'ph_vc))
|
141 |
+
(if (and (member_string name '(r w y l))
|
142 |
+
(member_string (item.feat seg "p.name") '(p t k b d g))
|
143 |
+
(item.relation.prev seg "SylStructure"))
|
144 |
+
(item.set_feat seg "us_diphone_right" (format nil "_%s" name)))
|
145 |
+
(if (and (member_string name '(w y l m n p t k))
|
146 |
+
(string-equal (item.feat seg "p.name") 's)
|
147 |
+
(item.relation.prev seg "SylStructure"))
|
148 |
+
(item.set_feat seg "us_diphone_right" (format nil "_%s" name)))
|
149 |
+
(if (and (string-equal name 's)
|
150 |
+
(member_string (item.feat seg "n.name") '(w y l m n p t k))
|
151 |
+
(item.relation.next seg "SylStructure"))
|
152 |
+
(item.set_feat seg "us_diphone_left" (format nil "%s_" name)))
|
153 |
+
(if (and (string-equal name 'hh)
|
154 |
+
(string-equal (item.feat seg "n.name") 'y)
|
155 |
+
(item.relation.next seg "SylStructure"))
|
156 |
+
(item.set_feat seg "us_diphone_left" (format nil "%s_" name)))
|
157 |
+
(if (and (string-equal name 'y)
|
158 |
+
(string-equal (item.feat seg "p.name") 'hh)
|
159 |
+
(item.relation.next seg "SylStructure"))
|
160 |
+
(item.set_feat seg "us_diphone_right" (format nil "_%s" name)))
|
161 |
+
(if (and (member_string name '(p t k b d g))
|
162 |
+
(member_string (item.feat seg "n.name") '(r w y l))
|
163 |
+
(item.relation.next seg "SylStructure"))
|
164 |
+
(item.set_feat seg "us_diphone_left" (format nil "%s_" name)))
|
165 |
+
)
|
166 |
+
((string-equal "ah" (item.name seg))
|
167 |
+
(item.set_feat seg "us_diphone" "aa"))
|
168 |
+
|
169 |
+
)))
|
170 |
+
|
171 |
+
;;; Set up the CMU lexicon
|
172 |
+
(setup_cmu_lex)
|
173 |
+
|
174 |
+
(define (voice_kal_diphone)
|
175 |
+
"(voice_kal_diphone)
|
176 |
+
Set up the current voice to be male American English (Kevin) using
|
177 |
+
the standard diphone code."
|
178 |
+
;; Phone set
|
179 |
+
(voice_reset)
|
180 |
+
(Parameter.set 'Language 'americanenglish)
|
181 |
+
(require 'radio_phones)
|
182 |
+
(Parameter.set 'PhoneSet 'radio)
|
183 |
+
(PhoneSet.select 'radio)
|
184 |
+
;; Tokenization rules
|
185 |
+
(set! token_to_words english_token_to_words)
|
186 |
+
;; POS tagger
|
187 |
+
(require 'pos)
|
188 |
+
(set! pos_lex_name "english_poslex")
|
189 |
+
(set! pos_ngram_name 'english_pos_ngram)
|
190 |
+
(set! pos_supported t)
|
191 |
+
(set! guess_pos english_guess_pos) ;; need this for accents
|
192 |
+
;; Lexicon selection
|
193 |
+
(lex.select "cmu")
|
194 |
+
(set! postlex_rules_hooks (list postlex_apos_s_check))
|
195 |
+
(set! postlex_s_check postlex_apos_s_check)
|
196 |
+
;; Phrase prediction
|
197 |
+
(require 'phrase)
|
198 |
+
(Parameter.set 'Phrase_Method 'prob_models)
|
199 |
+
(set! phr_break_params english_phr_break_params)
|
200 |
+
;; Accent and tone prediction
|
201 |
+
(require 'tobi)
|
202 |
+
(set! int_tone_cart_tree f2b_int_tone_cart_tree)
|
203 |
+
(set! int_accent_cart_tree f2b_int_accent_cart_tree)
|
204 |
+
|
205 |
+
(set! postlex_vowel_reduce_cart_tree
|
206 |
+
postlex_vowel_reduce_cart_data)
|
207 |
+
;; F0 prediction
|
208 |
+
(require 'f2bf0lr)
|
209 |
+
(set! f0_lr_start f2b_f0_lr_start)
|
210 |
+
(set! f0_lr_mid f2b_f0_lr_mid)
|
211 |
+
(set! f0_lr_end f2b_f0_lr_end)
|
212 |
+
(Parameter.set 'Int_Method Intonation_Tree)
|
213 |
+
(set! int_lr_params
|
214 |
+
'((target_f0_mean 105) (target_f0_std 14)
|
215 |
+
(model_f0_mean 170) (model_f0_std 34)))
|
216 |
+
(Parameter.set 'Int_Target_Method Int_Targets_LR)
|
217 |
+
;; Duration prediction
|
218 |
+
(require 'kaldurtreeZ)
|
219 |
+
(set! duration_cart_tree kal_duration_cart_tree)
|
220 |
+
(set! duration_ph_info kal_durs)
|
221 |
+
(Parameter.set 'Duration_Method Duration_Tree_ZScores)
|
222 |
+
(Parameter.set 'Duration_Stretch 1.1)
|
223 |
+
;; Waveform synthesizer: kal diphones
|
224 |
+
;; This assigned the diphone names from their context (_ $ etc)
|
225 |
+
(cond
|
226 |
+
((or kal_di_16k kal_di_8k)
|
227 |
+
;; Waveform synthesizer: kal diphones
|
228 |
+
(Parameter.set 'Synth_Method Diphone_Synthesize)
|
229 |
+
;; This assigned the diphone names from their context (_ $ etc)
|
230 |
+
(set! diphone_module_hooks (list kal_di_const_clusters ))
|
231 |
+
(Diphone.select 'kal))
|
232 |
+
(t
|
233 |
+
(set! UniSyn_module_hooks (list kal_diphone_const_clusters ))
|
234 |
+
(set! us_abs_offset 0.0)
|
235 |
+
(set! window_factor 1.0)
|
236 |
+
(set! us_rel_offset 0.0)
|
237 |
+
(set! us_gain 0.9)
|
238 |
+
|
239 |
+
(Parameter.set 'Synth_Method 'UniSyn)
|
240 |
+
(Parameter.set 'us_sigpr kal_sigpr)
|
241 |
+
(us_db_select kal_db_name)))
|
242 |
+
|
243 |
+
(set! after_synth_hooks
|
244 |
+
(lambda (utt)
|
245 |
+
(utt.wave.rescale utt 2.6)))
|
246 |
+
|
247 |
+
(set! current-voice 'kal_diphone)
|
248 |
+
)
|
249 |
+
|
250 |
+
(proclaim_voice
|
251 |
+
'kal_diphone
|
252 |
+
'((language english)
|
253 |
+
(gender male)
|
254 |
+
(dialect american)
|
255 |
+
(description
|
256 |
+
"This voice provides an American English male voice using a
|
257 |
+
residual excited LPC diphone synthesis method. It uses
|
258 |
+
the CMU Lexicon pronunciations. Prosodic phrasing is provided
|
259 |
+
by a statistically trained model using part of speech and local
|
260 |
+
distribution of breaks. Intonation is provided by a CART tree
|
261 |
+
predicting ToBI accents and an F0 contour generated from a model
|
262 |
+
trained from natural speech. The duration model is also trained
|
263 |
+
from data using a CART tree.")))
|
264 |
+
|
265 |
+
(provide 'kal_diphone)
|
266 |
+
|
CosyVoice-ttsfrd/resource/festival/voices/english/kal_diphone/festvox/kaldurtreeZ.scm
ADDED
@@ -0,0 +1,978 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;;
|
34 |
+
;;; A tree to predict zcore durations build from f2b
|
35 |
+
;;; doesn't use actual phonemes so it can have better generalizations
|
36 |
+
;;;
|
37 |
+
;;; Basically copied from ked
|
38 |
+
;;;
|
39 |
+
|
40 |
+
(set! kal_durs
|
41 |
+
'(
|
42 |
+
(uh 0.067 0.025)
|
43 |
+
(hh 0.061 0.028)
|
44 |
+
(ao 0.138 0.046)
|
45 |
+
(hv 0.053 0.020)
|
46 |
+
(v 0.051 0.019)
|
47 |
+
(ih 0.058 0.023)
|
48 |
+
(el 0.111 0.043)
|
49 |
+
(ey 0.132 0.042)
|
50 |
+
(em 0.080 0.033)
|
51 |
+
(jh 0.094 0.024)
|
52 |
+
(w 0.054 0.023)
|
53 |
+
(uw 0.107 0.044)
|
54 |
+
(ae 0.120 0.036)
|
55 |
+
(en 0.117 0.056)
|
56 |
+
(k 0.089 0.034)
|
57 |
+
(y 0.048 0.025)
|
58 |
+
(axr 0.147 0.035)
|
59 |
+
; (l 0.056 0.026)
|
60 |
+
(l 0.066 0.026)
|
61 |
+
(ng 0.064 0.024)
|
62 |
+
(zh 0.071 0.030)
|
63 |
+
(z 0.079 0.034)
|
64 |
+
(brth 0.246 0.046)
|
65 |
+
(m 0.069 0.028)
|
66 |
+
(iy 0.097 0.041)
|
67 |
+
(n 0.059 0.025)
|
68 |
+
(ah 0.087 0.031)
|
69 |
+
(er 0.086 0.010)
|
70 |
+
(b 0.069 0.024)
|
71 |
+
(pau 0.200 0.104)
|
72 |
+
(aw 0.166 0.053)
|
73 |
+
(p 0.088 0.030)
|
74 |
+
(ch 0.115 0.025)
|
75 |
+
(ow 0.134 0.039)
|
76 |
+
(dh 0.031 0.016)
|
77 |
+
(nx 0.049 0.100)
|
78 |
+
(d 0.048 0.021)
|
79 |
+
(ax 0.046 0.024)
|
80 |
+
(h# 0.060 0.083)
|
81 |
+
(r 0.053 0.031)
|
82 |
+
(eh 0.095 0.036)
|
83 |
+
(ay 0.137 0.047)
|
84 |
+
(oy 0.183 0.050)
|
85 |
+
(f 0.095 0.033)
|
86 |
+
(sh 0.108 0.031)
|
87 |
+
(s 0.102 0.037)
|
88 |
+
(g 0.064 0.021)
|
89 |
+
(dx 0.031 0.016)
|
90 |
+
(th 0.093 0.050)
|
91 |
+
(aa 0.094 0.037)
|
92 |
+
(t 0.070 0.020)
|
93 |
+
)
|
94 |
+
)
|
95 |
+
|
96 |
+
(set! kal_duration_cart_tree
|
97 |
+
'
|
98 |
+
((name is pau)
|
99 |
+
((emph_sil is +)
|
100 |
+
((0.0 -0.5))
|
101 |
+
((p.R:SylStructure.parent.parent.pbreak is BB)
|
102 |
+
((0.0 2.0))
|
103 |
+
((0.0 0.0))))
|
104 |
+
((R:SylStructure.parent.accented is 0)
|
105 |
+
((n.ph_ctype is 0)
|
106 |
+
((p.ph_vlng is 0)
|
107 |
+
((R:SylStructure.parent.syl_codasize < 1.5)
|
108 |
+
((p.ph_ctype is n)
|
109 |
+
((ph_ctype is f)
|
110 |
+
((0.559208 -0.783163))
|
111 |
+
((1.05215 -0.222704)))
|
112 |
+
((ph_ctype is s)
|
113 |
+
((R:SylStructure.parent.syl_break is 2)
|
114 |
+
((0.589948 0.764459))
|
115 |
+
((R:SylStructure.parent.asyl_in < 0.7)
|
116 |
+
((1.06385 0.567944))
|
117 |
+
((0.691943 0.0530272))))
|
118 |
+
((ph_vlng is l)
|
119 |
+
((pp.ph_vfront is 1)
|
120 |
+
((1.06991 0.766486))
|
121 |
+
((R:SylStructure.parent.syl_break is 1)
|
122 |
+
((0.69665 0.279248))
|
123 |
+
((0.670353 0.0567774))))
|
124 |
+
((p.ph_ctype is s)
|
125 |
+
((seg_onsetcoda is coda)
|
126 |
+
((0.828638 -0.038356))
|
127 |
+
((ph_ctype is f)
|
128 |
+
((0.7631 -0.545853))
|
129 |
+
((0.49329 -0.765994))))
|
130 |
+
((R:SylStructure.parent.parent.gpos is det)
|
131 |
+
((R:SylStructure.parent.last_accent < 0.3)
|
132 |
+
((R:SylStructure.parent.sub_phrases < 1)
|
133 |
+
((0.811686 0.160195))
|
134 |
+
((0.799015 0.713958)))
|
135 |
+
((0.731599 -0.215472)))
|
136 |
+
((ph_ctype is r)
|
137 |
+
((0.673487 0.092772))
|
138 |
+
((R:SylStructure.parent.asyl_in < 1)
|
139 |
+
((0.745273 0.00132813))
|
140 |
+
((0.75457 -0.334898)))))))))
|
141 |
+
((pos_in_syl < 0.5)
|
142 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 2)
|
143 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
144 |
+
((0.902446 -0.041618))
|
145 |
+
((R:SylStructure.parent.sub_phrases < 2.3)
|
146 |
+
((0.900629 0.262952))
|
147 |
+
((1.18474 0.594794))))
|
148 |
+
((seg_onset_stop is 0)
|
149 |
+
((R:SylStructure.parent.position_type is mid)
|
150 |
+
((0.512323 -0.760444))
|
151 |
+
((R:SylStructure.parent.syl_out < 6.8)
|
152 |
+
((pp.ph_vlng is a)
|
153 |
+
((0.640575 -0.450449))
|
154 |
+
((ph_ctype is f)
|
155 |
+
((R:SylStructure.parent.sub_phrases < 1.3)
|
156 |
+
((0.862876 -0.296956))
|
157 |
+
((R:SylStructure.parent.syl_out < 2.4)
|
158 |
+
((0.803215 0.0422868))
|
159 |
+
((0.877856 -0.154465))))
|
160 |
+
((R:SylStructure.parent.syl_out < 3.6)
|
161 |
+
((R:SylStructure.parent.syl_out < 1.2)
|
162 |
+
((0.567081 -0.264199))
|
163 |
+
((0.598043 -0.541738)))
|
164 |
+
((0.676843 -0.166623)))))
|
165 |
+
((0.691678 -0.57173))))
|
166 |
+
((R:SylStructure.parent.parent.gpos is cc)
|
167 |
+
((1.15995 0.313289))
|
168 |
+
((pp.ph_vfront is 1)
|
169 |
+
((0.555993 0.0695819))
|
170 |
+
((R:SylStructure.parent.asyl_in < 1.2)
|
171 |
+
((R:SylStructure.parent.sub_phrases < 2.7)
|
172 |
+
((0.721635 -0.367088))
|
173 |
+
((0.71919 -0.194887)))
|
174 |
+
((0.547052 -0.0637491)))))))
|
175 |
+
((ph_ctype is s)
|
176 |
+
((R:SylStructure.parent.syl_break is 0)
|
177 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 1)
|
178 |
+
((0.650007 -0.333421))
|
179 |
+
((0.846301 -0.165383)))
|
180 |
+
((0.527756 -0.516332)))
|
181 |
+
((R:SylStructure.parent.syl_break is 0)
|
182 |
+
((p.ph_ctype is s)
|
183 |
+
((0.504414 -0.779112))
|
184 |
+
((0.812498 -0.337611)))
|
185 |
+
((pos_in_syl < 1.4)
|
186 |
+
((0.513041 -0.745807))
|
187 |
+
((p.ph_ctype is s)
|
188 |
+
((0.350582 -1.04907))
|
189 |
+
((0.362 -0.914974))))))))
|
190 |
+
((R:SylStructure.parent.syl_break is 0)
|
191 |
+
((ph_ctype is n)
|
192 |
+
((R:SylStructure.parent.position_type is initial)
|
193 |
+
((pos_in_syl < 1.2)
|
194 |
+
((0.580485 0.172658))
|
195 |
+
((0.630973 -0.101423)))
|
196 |
+
((0.577937 -0.360092)))
|
197 |
+
((R:SylStructure.parent.syl_out < 2.9)
|
198 |
+
((R:SylStructure.parent.syl_out < 1.1)
|
199 |
+
((R:SylStructure.parent.position_type is initial)
|
200 |
+
((0.896092 0.764189))
|
201 |
+
((R:SylStructure.parent.sub_phrases < 3.6)
|
202 |
+
((ph_ctype is s)
|
203 |
+
((0.877362 0.555132))
|
204 |
+
((0.604511 0.369882)))
|
205 |
+
((0.799982 0.666966))))
|
206 |
+
((seg_onsetcoda is coda)
|
207 |
+
((p.ph_vlng is a)
|
208 |
+
((R:SylStructure.parent.last_accent < 0.4)
|
209 |
+
((0.800736 0.240634))
|
210 |
+
((0.720606 0.486176)))
|
211 |
+
((1.18173 0.573811)))
|
212 |
+
((0.607147 0.194468))))
|
213 |
+
((ph_ctype is r)
|
214 |
+
((0.88377 0.499383))
|
215 |
+
((R:SylStructure.parent.last_accent < 0.5)
|
216 |
+
((R:SylStructure.parent.position_type is initial)
|
217 |
+
((R:SylStructure.parent.parent.word_numsyls < 2.4)
|
218 |
+
((0.62798 0.0737318))
|
219 |
+
((0.787334 0.331014)))
|
220 |
+
((ph_ctype is s)
|
221 |
+
((0.808368 0.0929299))
|
222 |
+
((0.527948 -0.0443271))))
|
223 |
+
((seg_coda_fric is 0)
|
224 |
+
((p.ph_vlng is a)
|
225 |
+
((0.679745 0.517681))
|
226 |
+
((R:SylStructure.parent.sub_phrases < 1.1)
|
227 |
+
((0.759979 0.128316))
|
228 |
+
((0.775233 0.361383))))
|
229 |
+
((R:SylStructure.parent.last_accent < 1.3)
|
230 |
+
((0.696255 0.054136))
|
231 |
+
((0.632425 0.246742))))))))
|
232 |
+
((pos_in_syl < 0.3)
|
233 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 2)
|
234 |
+
((0.847602 0.621547))
|
235 |
+
((ph_ctype is s)
|
236 |
+
((0.880645 0.501679))
|
237 |
+
((R:SylStructure.parent.sub_phrases < 3.3)
|
238 |
+
((R:SylStructure.parent.sub_phrases < 0.3)
|
239 |
+
((0.901014 -0.042049))
|
240 |
+
((0.657493 0.183226)))
|
241 |
+
((0.680126 0.284799)))))
|
242 |
+
((ph_ctype is s)
|
243 |
+
((p.ph_vlng is s)
|
244 |
+
((0.670033 -0.820934))
|
245 |
+
((0.863306 -0.348735)))
|
246 |
+
((ph_ctype is n)
|
247 |
+
((R:SylStructure.parent.asyl_in < 1.2)
|
248 |
+
((0.656966 -0.40092))
|
249 |
+
((0.530966 -0.639366)))
|
250 |
+
((seg_coda_fric is 0)
|
251 |
+
((1.04153 0.364857))
|
252 |
+
((pos_in_syl < 1.2)
|
253 |
+
((R:SylStructure.parent.syl_out < 3.4)
|
254 |
+
((0.81503 -0.00768613))
|
255 |
+
((0.602665 -0.197753)))
|
256 |
+
((0.601844 -0.394632)))))))))
|
257 |
+
((n.ph_ctype is f)
|
258 |
+
((pos_in_syl < 1.5)
|
259 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 2)
|
260 |
+
((pos_in_syl < 0.1)
|
261 |
+
((1.63863 0.938841))
|
262 |
+
((R:SylStructure.parent.position_type is initial)
|
263 |
+
((0.897722 -0.0796637))
|
264 |
+
((nn.ph_vheight is 0)
|
265 |
+
((0.781081 0.480026))
|
266 |
+
((0.779711 0.127175)))))
|
267 |
+
((ph_ctype is r)
|
268 |
+
((p.ph_ctype is s)
|
269 |
+
((0.581329 -0.708767))
|
270 |
+
((0.564366 -0.236212)))
|
271 |
+
((ph_vlng is a)
|
272 |
+
((p.ph_ctype is r)
|
273 |
+
((0.70992 -0.273389))
|
274 |
+
((R:SylStructure.parent.parent.gpos is in)
|
275 |
+
((0.764696 0.0581338))
|
276 |
+
((nn.ph_vheight is 0)
|
277 |
+
((0.977737 0.721904))
|
278 |
+
((R:SylStructure.parent.sub_phrases < 2.2)
|
279 |
+
((pp.ph_vfront is 0)
|
280 |
+
((0.586708 0.0161206))
|
281 |
+
((0.619949 0.227372)))
|
282 |
+
((0.707285 0.445569))))))
|
283 |
+
((ph_ctype is n)
|
284 |
+
((R:SylStructure.parent.syl_break is 1)
|
285 |
+
((nn.ph_vfront is 2)
|
286 |
+
((0.430295 -0.120097))
|
287 |
+
((0.741371 0.219042)))
|
288 |
+
((0.587492 0.321245)))
|
289 |
+
((p.ph_ctype is n)
|
290 |
+
((0.871586 0.134075))
|
291 |
+
((p.ph_ctype is r)
|
292 |
+
((0.490751 -0.466418))
|
293 |
+
((R:SylStructure.parent.syl_codasize < 1.3)
|
294 |
+
((R:SylStructure.parent.sub_phrases < 2.2)
|
295 |
+
((p.ph_ctype is s)
|
296 |
+
((0.407452 -0.425925))
|
297 |
+
((0.644771 -0.542809)))
|
298 |
+
((0.688772 -0.201899)))
|
299 |
+
((ph_vheight is 1)
|
300 |
+
((nn.ph_vheight is 0)
|
301 |
+
((0.692018 0.209018))
|
302 |
+
((0.751345 -0.178136)))
|
303 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.3)
|
304 |
+
((R:SylStructure.parent.asyl_in < 1.5)
|
305 |
+
((0.599633 -0.235593))
|
306 |
+
((0.60042 0.126118)))
|
307 |
+
((p.ph_vlng is a)
|
308 |
+
((0.7148 -0.174812))
|
309 |
+
((R:SylStructure.parent.parent.gpos is content)
|
310 |
+
((0.761296 -0.231509))
|
311 |
+
((0.813081 -0.536405)))))))))))))
|
312 |
+
((ph_ctype is n)
|
313 |
+
((0.898844 0.163343))
|
314 |
+
((p.ph_vlng is s)
|
315 |
+
((seg_coda_fric is 0)
|
316 |
+
((0.752921 -0.45528))
|
317 |
+
((0.890079 -0.0998025)))
|
318 |
+
((ph_ctype is f)
|
319 |
+
((0.729376 -0.930547))
|
320 |
+
((ph_ctype is s)
|
321 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 0)
|
322 |
+
((0.745052 -0.634119))
|
323 |
+
((0.521502 -0.760176)))
|
324 |
+
((R:SylStructure.parent.syl_break is 1)
|
325 |
+
((0.766575 -0.121355))
|
326 |
+
((0.795616 -0.557509))))))))
|
327 |
+
((p.ph_vlng is 0)
|
328 |
+
((p.ph_ctype is r)
|
329 |
+
((ph_vlng is 0)
|
330 |
+
((0.733659 -0.402734))
|
331 |
+
((R:SylStructure.parent.sub_phrases < 1.5)
|
332 |
+
((ph_vlng is s)
|
333 |
+
((0.326176 -0.988478))
|
334 |
+
((n.ph_ctype is s)
|
335 |
+
((0.276471 -0.802536))
|
336 |
+
((0.438283 -0.900628))))
|
337 |
+
((nn.ph_vheight is 0)
|
338 |
+
((ph_vheight is 2)
|
339 |
+
((0.521 -0.768992))
|
340 |
+
((0.615436 -0.574918)))
|
341 |
+
((ph_vheight is 1)
|
342 |
+
((0.387376 -0.756359))
|
343 |
+
((pos_in_syl < 0.3)
|
344 |
+
((0.417235 -0.808937))
|
345 |
+
((0.384043 -0.93315)))))))
|
346 |
+
((ph_vlng is a)
|
347 |
+
((ph_ctype is 0)
|
348 |
+
((n.ph_ctype is s)
|
349 |
+
((p.ph_ctype is f)
|
350 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
351 |
+
((0.415908 -0.428493))
|
352 |
+
((pos_in_syl < 0.1)
|
353 |
+
((0.790441 0.0211071))
|
354 |
+
((0.452465 -0.254485))))
|
355 |
+
((p.ph_ctype is s)
|
356 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
357 |
+
((0.582447 -0.389966))
|
358 |
+
((0.757648 0.185781)))
|
359 |
+
((R:SylStructure.parent.sub_phrases < 1.4)
|
360 |
+
((0.628965 0.422551))
|
361 |
+
((0.713613 0.145576)))))
|
362 |
+
((seg_onset_stop is 0)
|
363 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 0)
|
364 |
+
((pp.ph_vfront is 1)
|
365 |
+
((0.412363 -0.62319))
|
366 |
+
((R:SylStructure.parent.syl_out < 3.6)
|
367 |
+
((0.729259 -0.317324))
|
368 |
+
((0.441633 -0.591051))))
|
369 |
+
((R:SylStructure.parent.syl_break is 1)
|
370 |
+
((R:SylStructure.parent.sub_phrases < 2.7)
|
371 |
+
((0.457728 -0.405607))
|
372 |
+
((0.532411 -0.313148)))
|
373 |
+
((R:SylStructure.parent.last_accent < 0.3)
|
374 |
+
((1.14175 0.159416))
|
375 |
+
((0.616396 -0.254651)))))
|
376 |
+
((R:SylStructure.parent.position_type is initial)
|
377 |
+
((0.264181 -0.799896))
|
378 |
+
((0.439801 -0.551309)))))
|
379 |
+
((R:SylStructure.parent.position_type is final)
|
380 |
+
((0.552027 -0.707084))
|
381 |
+
((0.585661 -0.901874))))
|
382 |
+
((ph_ctype is s)
|
383 |
+
((pos_in_syl < 1.2)
|
384 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
385 |
+
((pp.ph_vfront is 1)
|
386 |
+
((0.607449 0.196466))
|
387 |
+
((0.599662 0.00382414)))
|
388 |
+
((0.64109 -0.12859)))
|
389 |
+
((pp.ph_vfront is 1)
|
390 |
+
((0.720484 -0.219339))
|
391 |
+
((0.688707 -0.516734))))
|
392 |
+
((ph_vlng is s)
|
393 |
+
((n.ph_ctype is s)
|
394 |
+
((R:SylStructure.parent.parent.gpos is content)
|
395 |
+
((R:SylStructure.parent.position_type is single)
|
396 |
+
((0.659206 0.159445))
|
397 |
+
((R:SylStructure.parent.parent.word_numsyls < 3.5)
|
398 |
+
((R:SylStructure.parent.sub_phrases < 2)
|
399 |
+
((0.447186 -0.419103))
|
400 |
+
((0.631822 -0.0928561)))
|
401 |
+
((0.451623 -0.576116))))
|
402 |
+
((ph_vheight is 3)
|
403 |
+
((0.578626 -0.64583))
|
404 |
+
((0.56636 -0.4665))))
|
405 |
+
((R:SylStructure.parent.parent.gpos is in)
|
406 |
+
((0.771516 -0.217292))
|
407 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 2)
|
408 |
+
((0.688571 -0.304382))
|
409 |
+
((R:SylStructure.parent.parent.gpos is content)
|
410 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 1)
|
411 |
+
((n.ph_ctype is n)
|
412 |
+
((0.556085 -0.572203))
|
413 |
+
((0.820173 -0.240338)))
|
414 |
+
((R:SylStructure.parent.parent.word_numsyls < 2.2)
|
415 |
+
((0.595398 -0.588171))
|
416 |
+
((0.524737 -0.95797))))
|
417 |
+
((R:SylStructure.parent.sub_phrases < 3.9)
|
418 |
+
((0.371492 -0.959427))
|
419 |
+
((0.440479 -0.845747)))))))
|
420 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 0)
|
421 |
+
((p.ph_ctype is f)
|
422 |
+
((0.524088 -0.482247))
|
423 |
+
((nn.ph_vheight is 1)
|
424 |
+
((0.587666 -0.632362))
|
425 |
+
((ph_vlng is l)
|
426 |
+
((R:SylStructure.parent.position_type is final)
|
427 |
+
((0.513286 -0.713117))
|
428 |
+
((0.604613 -0.924308)))
|
429 |
+
((R:SylStructure.parent.syl_codasize < 2.2)
|
430 |
+
((0.577997 -0.891342))
|
431 |
+
((0.659804 -1.15252))))))
|
432 |
+
((pp.ph_vlng is s)
|
433 |
+
((ph_ctype is f)
|
434 |
+
((0.813383 -0.599624))
|
435 |
+
((0.984027 -0.0771909)))
|
436 |
+
((p.ph_ctype is f)
|
437 |
+
((R:SylStructure.parent.parent.gpos is in)
|
438 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 1)
|
439 |
+
((0.313572 -1.03242))
|
440 |
+
((0.525854 -0.542799)))
|
441 |
+
((R:SylStructure.parent.syl_out < 2.8)
|
442 |
+
((0.613007 -0.423979))
|
443 |
+
((0.570258 -0.766379))))
|
444 |
+
((R:SylStructure.parent.syl_break is 1)
|
445 |
+
((R:SylStructure.parent.parent.gpos is to)
|
446 |
+
((0.364585 -0.792895))
|
447 |
+
((ph_vlng is l)
|
448 |
+
((0.69143 -0.276816))
|
449 |
+
((0.65673 -0.523721))))
|
450 |
+
((R:SylStructure.parent.syl_out < 3.6)
|
451 |
+
((R:SylStructure.parent.position_type is initial)
|
452 |
+
((0.682096 -0.488102))
|
453 |
+
((0.406364 -0.731758)))
|
454 |
+
((0.584694 -0.822229)))))))))))
|
455 |
+
((n.ph_ctype is r)
|
456 |
+
((R:SylStructure.parent.position_type is initial)
|
457 |
+
((p.ph_vlng is a)
|
458 |
+
((0.797058 1.02334))
|
459 |
+
((ph_ctype is s)
|
460 |
+
((1.0548 0.536277))
|
461 |
+
((0.817253 0.138201))))
|
462 |
+
((R:SylStructure.parent.sub_phrases < 1.1)
|
463 |
+
((R:SylStructure.parent.syl_out < 3.3)
|
464 |
+
((0.884574 -0.23471))
|
465 |
+
((0.772063 -0.525292)))
|
466 |
+
((nn.ph_vfront is 1)
|
467 |
+
((1.25254 0.417485))
|
468 |
+
((0.955557 -0.0781996)))))
|
469 |
+
((pp.ph_vfront is 0)
|
470 |
+
((ph_ctype is f)
|
471 |
+
((n.ph_ctype is s)
|
472 |
+
((R:SylStructure.parent.parent.gpos is content)
|
473 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 0)
|
474 |
+
((0.583506 -0.56941))
|
475 |
+
((0.525949 -0.289362)))
|
476 |
+
((0.749316 -0.0921038)))
|
477 |
+
((p.ph_vlng is s)
|
478 |
+
((0.734234 0.139463))
|
479 |
+
((0.680119 -0.0708717))))
|
480 |
+
((ph_vlng is s)
|
481 |
+
((ph_vheight is 1)
|
482 |
+
((0.908712 -0.618971))
|
483 |
+
((0.55344 -0.840495)))
|
484 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 1.2)
|
485 |
+
((pos_in_syl < 1.2)
|
486 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 2)
|
487 |
+
((0.838715 0.00913392))
|
488 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 1)
|
489 |
+
((ph_vheight is 2)
|
490 |
+
((0.555513 -0.512523))
|
491 |
+
((R:SylStructure.parent.position_type is initial)
|
492 |
+
((0.758711 0.121704))
|
493 |
+
((0.737555 -0.25637))))
|
494 |
+
((R:SylStructure.parent.syl_out < 3.1)
|
495 |
+
((n.ph_ctype is s)
|
496 |
+
((0.611756 -0.474522))
|
497 |
+
((1.05437 -0.247206)))
|
498 |
+
((R:SylStructure.parent.syl_codasize < 2.2)
|
499 |
+
((R:SylStructure.parent.position_type is final)
|
500 |
+
((0.567761 -0.597866))
|
501 |
+
((0.785599 -0.407765)))
|
502 |
+
((0.575598 -0.741256))))))
|
503 |
+
((ph_ctype is s)
|
504 |
+
((n.ph_ctype is s)
|
505 |
+
((0.661069 -1.08426))
|
506 |
+
((0.783184 -0.39789)))
|
507 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 1)
|
508 |
+
((R:SylStructure.parent.sub_phrases < 2.6)
|
509 |
+
((0.511323 -0.666011))
|
510 |
+
((0.691878 -0.499492)))
|
511 |
+
((ph_ctype is r)
|
512 |
+
((0.482131 -0.253186))
|
513 |
+
((0.852955 -0.372832))))))
|
514 |
+
((0.854447 -0.0936489)))))
|
515 |
+
((R:SylStructure.parent.position_type is final)
|
516 |
+
((0.685939 -0.249982))
|
517 |
+
((R:SylStructure.parent.syl_out < 3.2)
|
518 |
+
((0.989843 0.18086))
|
519 |
+
((0.686805 -0.0402908)))))))))
|
520 |
+
((R:SylStructure.parent.syl_out < 2.4)
|
521 |
+
((R:SylStructure.parent.syl_out < 0.2)
|
522 |
+
((seg_onsetcoda is coda)
|
523 |
+
((ph_ctype is s)
|
524 |
+
((R:SylStructure.parent.syl_break is 4)
|
525 |
+
((pp.ph_vlng is 0)
|
526 |
+
((0.959737 1.63203))
|
527 |
+
((1.20714 0.994933)))
|
528 |
+
((n.ph_ctype is 0)
|
529 |
+
((R:SylStructure.parent.syl_break is 2)
|
530 |
+
((0.864809 0.214457))
|
531 |
+
((0.874278 0.730381)))
|
532 |
+
((pp.ph_vfront is 0)
|
533 |
+
((seg_coda_fric is 0)
|
534 |
+
((1.20844 -0.336221))
|
535 |
+
((1.01357 0.468302)))
|
536 |
+
((0.658106 -0.799121)))))
|
537 |
+
((n.ph_ctype is f)
|
538 |
+
((ph_ctype is f)
|
539 |
+
((1.26332 0.0300613))
|
540 |
+
((ph_vlng is d)
|
541 |
+
((1.02719 1.1649))
|
542 |
+
((ph_ctype is 0)
|
543 |
+
((R:SylStructure.parent.asyl_in < 1.2)
|
544 |
+
((1.14048 2.2668))
|
545 |
+
((ph_vheight is 1)
|
546 |
+
((1.15528 1.50375))
|
547 |
+
((1.42406 2.07927))))
|
548 |
+
((R:SylStructure.parent.sub_phrases < 1.1)
|
549 |
+
((0.955892 1.10243))
|
550 |
+
((R:SylStructure.parent.syl_break is 2)
|
551 |
+
((1.32682 1.8432))
|
552 |
+
((1.27582 1.59853)))))))
|
553 |
+
((n.ph_ctype is 0)
|
554 |
+
((ph_ctype is n)
|
555 |
+
((R:SylStructure.parent.syl_break is 2)
|
556 |
+
((1.45399 1.12927))
|
557 |
+
((1.05543 0.442376)))
|
558 |
+
((R:SylStructure.parent.syl_break is 4)
|
559 |
+
((R:SylStructure.parent.position_type is final)
|
560 |
+
((ph_ctype is f)
|
561 |
+
((1.46434 1.76508))
|
562 |
+
((0.978055 0.7486)))
|
563 |
+
((1.2395 2.30826)))
|
564 |
+
((ph_ctype is 0)
|
565 |
+
((0.935325 1.69917))
|
566 |
+
((nn.ph_vfront is 1)
|
567 |
+
((1.20456 1.31128))
|
568 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
569 |
+
((nn.ph_vheight is 0)
|
570 |
+
((1.16907 0.212421))
|
571 |
+
((0.952091 0.653094)))
|
572 |
+
((p.ph_ctype is 0)
|
573 |
+
((1.05502 1.25802))
|
574 |
+
((0.818731 0.777568))))))))
|
575 |
+
((ph_ctype is f)
|
576 |
+
((p.ph_ctype is 0)
|
577 |
+
((1.03918 0.163941))
|
578 |
+
((0.737545 -0.167063)))
|
579 |
+
((R:SylStructure.parent.position_type is final)
|
580 |
+
((n.ph_ctype is n)
|
581 |
+
((R:SylStructure.parent.last_accent < 0.5)
|
582 |
+
((R:SylStructure.parent.sub_phrases < 2.8)
|
583 |
+
((0.826207 -0.000859005))
|
584 |
+
((0.871119 0.273433)))
|
585 |
+
((R:SylStructure.parent.parent.word_numsyls < 2.4)
|
586 |
+
((1.17405 1.05694))
|
587 |
+
((0.858394 0.244916))))
|
588 |
+
((R:SylStructure.parent.syl_codasize < 2.2)
|
589 |
+
((p.ph_ctype is 0)
|
590 |
+
((1.14092 1.21187))
|
591 |
+
((R:SylStructure.parent.syl_break is 2)
|
592 |
+
((1.02653 0.59865))
|
593 |
+
((0.94248 1.1634))))
|
594 |
+
((seg_coda_fric is 0)
|
595 |
+
((1.07441 0.292935))
|
596 |
+
((1.15736 0.92574)))))
|
597 |
+
((ph_vlng is s)
|
598 |
+
((R:SylStructure.parent.syl_break is 2)
|
599 |
+
((1.34638 1.23484))
|
600 |
+
((0.951514 2.02008)))
|
601 |
+
((ph_ctype is 0)
|
602 |
+
((p.ph_ctype is r)
|
603 |
+
((0.806106 0.697089))
|
604 |
+
((R:SylStructure.parent.syl_break is 2)
|
605 |
+
((1.10891 0.992197))
|
606 |
+
((1.04657 1.51093))))
|
607 |
+
((1.18165 0.520952)))))))))
|
608 |
+
((p.ph_vlng is 0)
|
609 |
+
((pos_in_syl < 0.7)
|
610 |
+
((R:SylStructure.parent.position_type is final)
|
611 |
+
((ph_ctype is r)
|
612 |
+
((0.966357 0.185827))
|
613 |
+
((ph_ctype is s)
|
614 |
+
((0.647163 0.0332298))
|
615 |
+
((0.692972 -0.534917))))
|
616 |
+
((ph_ctype is s)
|
617 |
+
((0.881521 0.575107))
|
618 |
+
((p.ph_ctype is f)
|
619 |
+
((0.8223 -0.111275))
|
620 |
+
((R:SylStructure.parent.last_accent < 0.3)
|
621 |
+
((0.969188 0.09447))
|
622 |
+
((0.894438 0.381947))))))
|
623 |
+
((p.ph_ctype is f)
|
624 |
+
((0.479748 -0.490108))
|
625 |
+
((0.813125 -0.201268))))
|
626 |
+
((ph_ctype is s)
|
627 |
+
((0.908566 1.20397))
|
628 |
+
((R:SylStructure.parent.last_accent < 1.2)
|
629 |
+
((0.88078 0.636568))
|
630 |
+
((0.978087 1.07763))))))
|
631 |
+
((pos_in_syl < 1.3)
|
632 |
+
((R:SylStructure.parent.syl_break is 0)
|
633 |
+
((pos_in_syl < 0.1)
|
634 |
+
((R:SylStructure.parent.position_type is initial)
|
635 |
+
((p.ph_ctype is n)
|
636 |
+
((0.801651 -0.0163359))
|
637 |
+
((ph_ctype is s)
|
638 |
+
((n.ph_ctype is r)
|
639 |
+
((0.893307 1.07253))
|
640 |
+
((p.ph_vlng is 0)
|
641 |
+
((0.92651 0.525806))
|
642 |
+
((0.652444 0.952792))))
|
643 |
+
((p.ph_vlng is 0)
|
644 |
+
((seg_onsetcoda is coda)
|
645 |
+
((0.820151 0.469117))
|
646 |
+
((p.ph_ctype is f)
|
647 |
+
((0.747972 -0.0716448))
|
648 |
+
((ph_ctype is f)
|
649 |
+
((0.770882 0.457137))
|
650 |
+
((0.840905 0.102492)))))
|
651 |
+
((R:SylStructure.parent.syl_out < 1.1)
|
652 |
+
((0.667824 0.697337))
|
653 |
+
((0.737967 0.375114))))))
|
654 |
+
((ph_vheight is 1)
|
655 |
+
((0.624353 0.410671))
|
656 |
+
((R:SylStructure.parent.asyl_in < 0.8)
|
657 |
+
((0.647905 -0.331055))
|
658 |
+
((p.ph_ctype is s)
|
659 |
+
((0.629039 -0.240616))
|
660 |
+
((0.749277 -0.0191273))))))
|
661 |
+
((ph_vheight is 3)
|
662 |
+
((p.ph_ctype is s)
|
663 |
+
((0.626922 0.556537))
|
664 |
+
((0.789357 0.153892)))
|
665 |
+
((seg_onsetcoda is coda)
|
666 |
+
((n.ph_ctype is 0)
|
667 |
+
((R:SylStructure.parent.parent.word_numsyls < 3.4)
|
668 |
+
((0.744714 0.123242))
|
669 |
+
((0.742039 0.295753)))
|
670 |
+
((seg_coda_fric is 0)
|
671 |
+
((R:SylStructure.parent.parent.word_numsyls < 2.4)
|
672 |
+
((ph_vheight is 1)
|
673 |
+
((0.549715 -0.341018))
|
674 |
+
((0.573641 -0.00893114)))
|
675 |
+
((nn.ph_vfront is 2)
|
676 |
+
((0.67099 -0.744625))
|
677 |
+
((0.664438 -0.302803))))
|
678 |
+
((p.ph_vlng is 0)
|
679 |
+
((0.630028 0.113815))
|
680 |
+
((0.632794 -0.128733)))))
|
681 |
+
((ph_ctype is r)
|
682 |
+
((0.367169 -0.854509))
|
683 |
+
((0.94334 -0.216179))))))
|
684 |
+
((n.ph_ctype is f)
|
685 |
+
((ph_vlng is 0)
|
686 |
+
((1.3089 0.46195))
|
687 |
+
((R:SylStructure.parent.syl_codasize < 1.3)
|
688 |
+
((1.07673 0.657169))
|
689 |
+
((pp.ph_vlng is 0)
|
690 |
+
((0.972319 1.08222))
|
691 |
+
((1.00038 1.46257)))))
|
692 |
+
((p.ph_vlng is l)
|
693 |
+
((1.03617 0.785204))
|
694 |
+
((p.ph_vlng is a)
|
695 |
+
((R:SylStructure.parent.position_type is final)
|
696 |
+
((1.00681 0.321168))
|
697 |
+
((0.928115 0.950834)))
|
698 |
+
((ph_vlng is 0)
|
699 |
+
((pos_in_syl < 0.1)
|
700 |
+
((R:SylStructure.parent.position_type is final)
|
701 |
+
((0.863682 -0.167374))
|
702 |
+
((nn.ph_vheight is 0)
|
703 |
+
((p.ph_ctype is f)
|
704 |
+
((0.773591 -0.00374425))
|
705 |
+
((R:SylStructure.parent.syl_out < 1.1)
|
706 |
+
((0.951802 0.228448))
|
707 |
+
((1.02282 0.504252))))
|
708 |
+
((1.09721 0.736476))))
|
709 |
+
((R:SylStructure.parent.position_type is final)
|
710 |
+
((1.04302 0.0590974))
|
711 |
+
((0.589208 -0.431535))))
|
712 |
+
((n.ph_ctype is 0)
|
713 |
+
((1.27879 1.00642))
|
714 |
+
((ph_vlng is s)
|
715 |
+
((R:SylStructure.parent.asyl_in < 1.4)
|
716 |
+
((0.935787 0.481652))
|
717 |
+
((0.9887 0.749861)))
|
718 |
+
((R:SylStructure.parent.syl_out < 1.1)
|
719 |
+
((R:SylStructure.parent.position_type is final)
|
720 |
+
((0.921307 0.0696307))
|
721 |
+
((0.83675 0.552212)))
|
722 |
+
((0.810076 -0.0479225))))))))))
|
723 |
+
((ph_ctype is s)
|
724 |
+
((n.ph_ctype is s)
|
725 |
+
((0.706959 -1.0609))
|
726 |
+
((p.ph_ctype is n)
|
727 |
+
((0.850614 -0.59933))
|
728 |
+
((n.ph_ctype is r)
|
729 |
+
((0.665947 0.00698725))
|
730 |
+
((n.ph_ctype is 0)
|
731 |
+
((R:SylStructure.parent.position_type is initial)
|
732 |
+
((0.762889 -0.0649044))
|
733 |
+
((0.723956 -0.248899)))
|
734 |
+
((R:SylStructure.parent.sub_phrases < 1.4)
|
735 |
+
((0.632957 -0.601987))
|
736 |
+
((0.889114 -0.302401)))))))
|
737 |
+
((ph_ctype is f)
|
738 |
+
((R:SylStructure.parent.syl_codasize < 2.2)
|
739 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
740 |
+
((R:SylStructure.parent.syl_out < 1.1)
|
741 |
+
((0.865267 0.164636))
|
742 |
+
((0.581827 -0.0989051)))
|
743 |
+
((nn.ph_vfront is 2)
|
744 |
+
((0.684459 -0.316836))
|
745 |
+
((0.778854 -0.0961191))))
|
746 |
+
((R:SylStructure.parent.syl_out < 1.1)
|
747 |
+
((p.ph_ctype is s)
|
748 |
+
((0.837964 -0.429437))
|
749 |
+
((0.875304 -0.0652743)))
|
750 |
+
((0.611071 -0.635089))))
|
751 |
+
((p.ph_ctype is r)
|
752 |
+
((R:SylStructure.parent.syl_out < 1.1)
|
753 |
+
((0.762012 0.0139361))
|
754 |
+
((0.567983 -0.454845)))
|
755 |
+
((R:SylStructure.parent.syl_codasize < 2.2)
|
756 |
+
((ph_ctype is l)
|
757 |
+
((1.18845 0.809091))
|
758 |
+
((R:SylStructure.parent.position_type is initial)
|
759 |
+
((ph_ctype is n)
|
760 |
+
((0.773548 -0.277092))
|
761 |
+
((1.01586 0.281001)))
|
762 |
+
((p.ph_ctype is 0)
|
763 |
+
((1.06831 0.699145))
|
764 |
+
((0.924189 0.241873)))))
|
765 |
+
((R:SylStructure.parent.syl_break is 0)
|
766 |
+
((ph_ctype is n)
|
767 |
+
((0.592321 -0.470784))
|
768 |
+
((0.778688 -0.072112)))
|
769 |
+
((n.ph_ctype is s)
|
770 |
+
((1.08848 0.0733489))
|
771 |
+
((1.25674 0.608371))))))))))
|
772 |
+
((pos_in_syl < 0.7)
|
773 |
+
((p.ph_vlng is 0)
|
774 |
+
((R:SylStructure.parent.position_type is mid)
|
775 |
+
((ph_ctype is 0)
|
776 |
+
((ph_vheight is 2)
|
777 |
+
((0.456225 -0.293282))
|
778 |
+
((0.561529 -0.0816115)))
|
779 |
+
((0.6537 -0.504024)))
|
780 |
+
((ph_ctype is s)
|
781 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 2)
|
782 |
+
((1.31586 0.98395))
|
783 |
+
((R:SylStructure.parent.position_type is single)
|
784 |
+
((0.816869 0.634789))
|
785 |
+
((R:SylStructure.parent.syl_out < 4.4)
|
786 |
+
((1.05578 0.479029))
|
787 |
+
((R:SylStructure.parent.asyl_in < 0.4)
|
788 |
+
((1.11813 0.143214))
|
789 |
+
((0.87178 0.406834))))))
|
790 |
+
((n.ph_ctype is n)
|
791 |
+
((R:SylStructure.parent.last_accent < 0.6)
|
792 |
+
((0.838154 -0.415599))
|
793 |
+
((0.924024 0.110288)))
|
794 |
+
((seg_onsetcoda is coda)
|
795 |
+
((nn.ph_vfront is 2)
|
796 |
+
((0.670096 0.0314187))
|
797 |
+
((n.ph_ctype is f)
|
798 |
+
((1.00363 0.693893))
|
799 |
+
((R:SylStructure.parent.syl_out < 6)
|
800 |
+
((0.772363 0.215675))
|
801 |
+
((0.920313 0.574068)))))
|
802 |
+
((R:SylStructure.parent.position_type is final)
|
803 |
+
((0.673837 -0.458142))
|
804 |
+
((R:SylStructure.parent.sub_phrases < 2.8)
|
805 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 2)
|
806 |
+
((0.894817 0.304628))
|
807 |
+
((ph_ctype is n)
|
808 |
+
((0.787302 -0.23094))
|
809 |
+
((R:SylStructure.parent.asyl_in < 1.2)
|
810 |
+
((ph_ctype is f)
|
811 |
+
((R:SylStructure.parent.last_accent < 0.5)
|
812 |
+
((1.12278 0.326954))
|
813 |
+
((0.802236 -0.100616)))
|
814 |
+
((0.791255 -0.0919132)))
|
815 |
+
((0.95233 0.219053)))))
|
816 |
+
((R:SylStructure.parent.position_type is initial)
|
817 |
+
((ph_ctype is f)
|
818 |
+
((1.0616 0.216118))
|
819 |
+
((0.703216 -0.00834086)))
|
820 |
+
((ph_ctype is f)
|
821 |
+
((1.22277 0.761763))
|
822 |
+
((0.904811 0.332721))))))))))
|
823 |
+
((ph_vheight is 0)
|
824 |
+
((p.ph_vlng is s)
|
825 |
+
((0.873379 0.217178))
|
826 |
+
((n.ph_ctype is r)
|
827 |
+
((0.723915 1.29451))
|
828 |
+
((n.ph_ctype is 0)
|
829 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 1)
|
830 |
+
((R:SylStructure.parent.sub_phrases < 4)
|
831 |
+
((seg_coda_fric is 0)
|
832 |
+
((p.ph_vlng is l)
|
833 |
+
((0.849154 0.945261))
|
834 |
+
((0.633261 0.687498)))
|
835 |
+
((0.728546 0.403076)))
|
836 |
+
((0.850962 1.00255)))
|
837 |
+
((0.957999 1.09113)))
|
838 |
+
((0.85771 0.209045)))))
|
839 |
+
((ph_vheight is 2)
|
840 |
+
((0.803401 -0.0544067))
|
841 |
+
((0.681353 0.256045)))))
|
842 |
+
((n.ph_ctype is f)
|
843 |
+
((ph_ctype is s)
|
844 |
+
((p.ph_vlng is 0)
|
845 |
+
((0.479307 -0.9673))
|
846 |
+
((0.700477 -0.351397)))
|
847 |
+
((ph_ctype is f)
|
848 |
+
((0.73467 -0.6233))
|
849 |
+
((R:SylStructure.parent.syl_break is 0)
|
850 |
+
((p.ph_ctype is s)
|
851 |
+
((0.56282 0.266234))
|
852 |
+
((p.ph_ctype is r)
|
853 |
+
((0.446203 -0.302281))
|
854 |
+
((R:SylStructure.parent.sub_phrases < 2.7)
|
855 |
+
((ph_ctype is 0)
|
856 |
+
((0.572016 -0.0102436))
|
857 |
+
((0.497358 -0.274514)))
|
858 |
+
((0.545477 0.0482177)))))
|
859 |
+
((ph_vlng is s)
|
860 |
+
((0.805269 0.888495))
|
861 |
+
((ph_ctype is n)
|
862 |
+
((0.869854 0.653018))
|
863 |
+
((R:SylStructure.parent.sub_phrases < 2.2)
|
864 |
+
((0.735031 0.0612886))
|
865 |
+
((0.771859 0.346637))))))))
|
866 |
+
((R:SylStructure.parent.syl_codasize < 1.4)
|
867 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.3)
|
868 |
+
((R:SylStructure.parent.position_type is initial)
|
869 |
+
((0.743458 0.0411808))
|
870 |
+
((1.13068 0.613305)))
|
871 |
+
((pos_in_syl < 1.2)
|
872 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 1)
|
873 |
+
((1.11481 0.175467))
|
874 |
+
((0.937893 -0.276407)))
|
875 |
+
((0.74264 -0.550878))))
|
876 |
+
((pos_in_syl < 3.4)
|
877 |
+
((seg_onsetcoda is coda)
|
878 |
+
((ph_ctype is r)
|
879 |
+
((n.ph_ctype is s)
|
880 |
+
((0.714319 -0.240328))
|
881 |
+
((p.ph_ctype is 0)
|
882 |
+
((0.976987 0.330352))
|
883 |
+
((1.1781 -0.0816682))))
|
884 |
+
((ph_ctype is l)
|
885 |
+
((n.ph_ctype is 0)
|
886 |
+
((1.39137 0.383533))
|
887 |
+
((0.725585 -0.324515)))
|
888 |
+
((ph_vheight is 3)
|
889 |
+
((ph_vlng is d)
|
890 |
+
((0.802626 -0.62487))
|
891 |
+
((n.ph_ctype is r)
|
892 |
+
((0.661091 -0.513869))
|
893 |
+
((R:SylStructure.parent.position_type is initial)
|
894 |
+
((R:SylStructure.parent.parent.word_numsyls < 2.4)
|
895 |
+
((0.482285 0.207874))
|
896 |
+
((0.401601 -0.0204711)))
|
897 |
+
((0.733755 0.397372)))))
|
898 |
+
((n.ph_ctype is r)
|
899 |
+
((p.ph_ctype is 0)
|
900 |
+
((pos_in_syl < 1.2)
|
901 |
+
((0.666325 0.271734))
|
902 |
+
((nn.ph_vheight is 0)
|
903 |
+
((0.642401 -0.261466))
|
904 |
+
((0.783684 -0.00956571))))
|
905 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
906 |
+
((0.692225 -0.381895))
|
907 |
+
((0.741921 -0.0898767))))
|
908 |
+
((nn.ph_vfront is 2)
|
909 |
+
((ph_ctype is s)
|
910 |
+
((0.697527 -1.12626))
|
911 |
+
((n.ph_ctype is s)
|
912 |
+
((ph_vlng is 0)
|
913 |
+
((R:SylStructure.parent.sub_phrases < 2.4)
|
914 |
+
((0.498719 -0.906926))
|
915 |
+
((0.635342 -0.625651)))
|
916 |
+
((0.45886 -0.385089)))
|
917 |
+
((0.848596 -0.359702))))
|
918 |
+
((p.ph_vlng is a)
|
919 |
+
((p.ph_ctype is 0)
|
920 |
+
((0.947278 0.216904))
|
921 |
+
((0.637933 -0.394349)))
|
922 |
+
((p.ph_ctype is r)
|
923 |
+
((R:SylStructure.parent.syl_break is 0)
|
924 |
+
((0.529903 -0.860573))
|
925 |
+
((0.581378 -0.510488)))
|
926 |
+
((ph_vlng is 0)
|
927 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
928 |
+
((seg_onset_stop is 0)
|
929 |
+
((R:SylStructure.parent.syl_break is 0)
|
930 |
+
((p.ph_vlng is d)
|
931 |
+
((0.768363 0.0108428))
|
932 |
+
((ph_ctype is s)
|
933 |
+
((0.835756 -0.035054))
|
934 |
+
((ph_ctype is f)
|
935 |
+
((p.ph_vlng is s)
|
936 |
+
((0.602016 -0.179727))
|
937 |
+
((0.640126 -0.297341)))
|
938 |
+
((0.674628 -0.542602)))))
|
939 |
+
((ph_ctype is s)
|
940 |
+
((0.662261 -0.60496))
|
941 |
+
((0.662088 -0.432058))))
|
942 |
+
((R:SylStructure.parent.syl_out < 4.4)
|
943 |
+
((0.582448 -0.389079))
|
944 |
+
((ph_ctype is s)
|
945 |
+
((0.60413 -0.73564))
|
946 |
+
((0.567153 -0.605444)))))
|
947 |
+
((R:SylStructure.parent.R:Syllable.p.syl_break is 2)
|
948 |
+
((0.761115 -0.827377))
|
949 |
+
((ph_ctype is n)
|
950 |
+
((0.855183 -0.275338))
|
951 |
+
((R:SylStructure.parent.syl_break is 0)
|
952 |
+
((0.788288 -0.802801))
|
953 |
+
((R:SylStructure.parent.syl_codasize < 2.2)
|
954 |
+
((0.686134 -0.371234))
|
955 |
+
((0.840184 -0.772883)))))))
|
956 |
+
((pos_in_syl < 1.2)
|
957 |
+
((R:SylStructure.parent.syl_break is 0)
|
958 |
+
((n.ph_ctype is n)
|
959 |
+
((0.423592 -0.655006))
|
960 |
+
((R:SylStructure.parent.syl_out < 4.4)
|
961 |
+
((0.595269 -0.303751))
|
962 |
+
((0.478433 -0.456882))))
|
963 |
+
((0.688133 -0.133182)))
|
964 |
+
((seg_onset_stop is 0)
|
965 |
+
((1.27464 0.114442))
|
966 |
+
((0.406837 -0.167545))))))))))))
|
967 |
+
((ph_ctype is r)
|
968 |
+
((0.462874 -0.87695))
|
969 |
+
((R:SylStructure.parent.R:Syllable.n.syl_onsetsize < 0.2)
|
970 |
+
((0.645442 -0.640572))
|
971 |
+
((0.673717 -0.321322)))))
|
972 |
+
((0.61008 -0.925472))))))))
|
973 |
+
;; RMSE 0.8085 Correlation is 0.5899 Mean (abs) Error 0.6024 (0.5393)
|
974 |
+
|
975 |
+
|
976 |
+
))
|
977 |
+
|
978 |
+
(provide 'kaldurtreeZ)
|
CosyVoice-ttsfrd/resource/festival/voices/english/kal_diphone/group/kallpc16k.group
ADDED
The diff for this file is too large to render.
See raw diff
|
|
CosyVoice-ttsfrd/resource/festival/voices/english/rab_diphone/COPYING
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
This directory contains a diphone synthesizer voice for British English.
|
3 |
+
This distribution falls under the following copyright. See further
|
4 |
+
notes below copyright.
|
5 |
+
|
6 |
+
Centre for Speech Technology Research
|
7 |
+
University of Edinburgh, UK
|
8 |
+
Copyright (c) 1996,1997
|
9 |
+
All Rights Reserved.
|
10 |
+
|
11 |
+
Permission is hereby granted, free of charge, to use and distribute
|
12 |
+
this software and its documentation without restriction, including
|
13 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
14 |
+
distribute, sublicense, and/or sell copies of this work, and to
|
15 |
+
permit persons to whom this work is furnished to do so, subject to
|
16 |
+
the following conditions:
|
17 |
+
1. The code must retain the above copyright notice, this list of
|
18 |
+
conditions and the following disclaimer.
|
19 |
+
2. Any modifications must be clearly marked as such.
|
20 |
+
3. Original authors' names are not deleted.
|
21 |
+
4. The authors' names are not used to endorse or promote products
|
22 |
+
derived from this software without specific prior written
|
23 |
+
permission.
|
24 |
+
|
25 |
+
THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK
|
26 |
+
DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
27 |
+
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
|
28 |
+
SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE
|
29 |
+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
30 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
31 |
+
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
32 |
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
33 |
+
THIS SOFTWARE.
|
34 |
+
|
35 |
+
Note this voice (as it currently is set up) also requires the separate
|
36 |
+
distributions festlex_POSLEX.tar.gz and festlex_OALD.tar.gz.
|
37 |
+
festlex_POSLEX.tar.gz fall under the same copyright as the above
|
38 |
+
but festlex_OALD.tar.gz is free for non-commercial use only.
|
CosyVoice-ttsfrd/resource/festival/voices/english/rab_diphone/festvox/rab_diphone.scm
ADDED
@@ -0,0 +1,263 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2 |
+
;;; ;;
|
3 |
+
;;; Centre for Speech Technology Research ;;
|
4 |
+
;;; University of Edinburgh, UK ;;
|
5 |
+
;;; Copyright (c) 1996,1997 ;;
|
6 |
+
;;; All Rights Reserved. ;;
|
7 |
+
;;; ;;
|
8 |
+
;;; Permission is hereby granted, free of charge, to use and distribute ;;
|
9 |
+
;;; this software and its documentation without restriction, including ;;
|
10 |
+
;;; without limitation the rights to use, copy, modify, merge, publish, ;;
|
11 |
+
;;; distribute, sublicense, and/or sell copies of this work, and to ;;
|
12 |
+
;;; permit persons to whom this work is furnished to do so, subject to ;;
|
13 |
+
;;; the following conditions: ;;
|
14 |
+
;;; 1. The code must retain the above copyright notice, this list of ;;
|
15 |
+
;;; conditions and the following disclaimer. ;;
|
16 |
+
;;; 2. Any modifications must be clearly marked as such. ;;
|
17 |
+
;;; 3. Original authors' names are not deleted. ;;
|
18 |
+
;;; 4. The authors' names are not used to endorse or promote products ;;
|
19 |
+
;;; derived from this software without specific prior written ;;
|
20 |
+
;;; permission. ;;
|
21 |
+
;;; ;;
|
22 |
+
;;; THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ;;
|
23 |
+
;;; DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ;;
|
24 |
+
;;; ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ;;
|
25 |
+
;;; SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ;;
|
26 |
+
;;; FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;;
|
27 |
+
;;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ;;
|
28 |
+
;;; AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ;;
|
29 |
+
;;; ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ;;
|
30 |
+
;;; THIS SOFTWARE. ;;
|
31 |
+
;;; ;;
|
32 |
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
33 |
+
;;; Set up rab_diphones using the standard UniSyn diphone synthesizer
|
34 |
+
;;;
|
35 |
+
;;; Roger diphones: male RP English collected October 1996
|
36 |
+
;;;
|
37 |
+
|
38 |
+
(defvar rab_diphone_dir (cdr (assoc 'rab_diphone voice-locations))
|
39 |
+
"rab_diphone_dir
|
40 |
+
The default directory for the rab diphone database.")
|
41 |
+
|
42 |
+
(require 'mrpa_phones)
|
43 |
+
(require 'pos)
|
44 |
+
(require 'phrase)
|
45 |
+
(require 'tobi)
|
46 |
+
(require 'f2bf0lr)
|
47 |
+
(require 'mrpa_durs)
|
48 |
+
(require 'gswdurtreeZ)
|
49 |
+
(require_module 'UniSyn)
|
50 |
+
|
51 |
+
(setup_oald_lex)
|
52 |
+
;; set this to lpc or psola
|
53 |
+
(defvar rab_sigpr 'lpc)
|
54 |
+
;; Rset this to ungroup for ungrouped version
|
55 |
+
(defvar rab_groupungroup 'group)
|
56 |
+
|
57 |
+
(if (probe_file (path-append rab_diphone_dir "group/rablpc16k.group"))
|
58 |
+
(defvar rab_index_file
|
59 |
+
(path-append rab_diphone_dir "group/rablpc16k.group"))
|
60 |
+
(defvar rab_index_file
|
61 |
+
(path-append rab_diphone_dir "group/rablpc8k.group")))
|
62 |
+
|
63 |
+
(set! rab_psola_sep
|
64 |
+
(list
|
65 |
+
'(name "rab_psola_sep")
|
66 |
+
(list 'index_file (path-append rab_diphone_dir "dic/diphdic_full.est"))
|
67 |
+
'(grouped "false")
|
68 |
+
(list 'coef_dir (path-append rab_diphone_dir "pm"))
|
69 |
+
(list 'sig_dir (path-append rab_diphone_dir "wav"))
|
70 |
+
'(coef_ext ".pm")
|
71 |
+
'(sig_ext ".wav")))
|
72 |
+
|
73 |
+
(set! rab_lpc_sep
|
74 |
+
(list
|
75 |
+
'(name "rab_lpc_sep")
|
76 |
+
(list 'index_file (path-append rab_diphone_dir "dic/diphdic_full.est"))
|
77 |
+
'(grouped "false")
|
78 |
+
(list 'coef_dir (path-append rab_diphone_dir "lpc"))
|
79 |
+
(list 'sig_dir (path-append rab_diphone_dir "lpc"))
|
80 |
+
'(coef_ext ".lpc")
|
81 |
+
'(sig_ext ".res")))
|
82 |
+
|
83 |
+
(set! rab_psola_group
|
84 |
+
(list
|
85 |
+
'(name "rab_psola_group")
|
86 |
+
(list 'index_file
|
87 |
+
(path-append rab_diphone_dir "group/rab.group"))
|
88 |
+
'(grouped "true")))
|
89 |
+
|
90 |
+
(set! rab_lpc_group
|
91 |
+
(list
|
92 |
+
'(name "rab_lpc_group")
|
93 |
+
(list 'index_file rab_index_file)
|
94 |
+
'(alternates_left ((i ii) (ll l) (u uu) (i@ ii) (uh @) (a aa)
|
95 |
+
(u@ uu) (w @) (o oo) (e@ ei) (e ei)
|
96 |
+
(r @)))
|
97 |
+
'(alternates_right ((i ii) (ll l) (u uu) (i@ ii)
|
98 |
+
(y i) (uh @) (r @) (w @)))
|
99 |
+
'(default_diphone @-@@)
|
100 |
+
'(grouped "true")))
|
101 |
+
|
102 |
+
;;; Setup the desried DB
|
103 |
+
(cond
|
104 |
+
((and (eq rab_sigpr 'psola)
|
105 |
+
(eq rab_groupungroup 'group))
|
106 |
+
(set! rab_db_name (us_diphone_init rab_psola_group)))
|
107 |
+
((and (eq rab_sigpr 'psola)
|
108 |
+
(eq rab_groupungroup 'ungroup))
|
109 |
+
(set! rab_db_name (us_diphone_init rab_psola_sep)))
|
110 |
+
((and (eq rab_sigpr 'lpc)
|
111 |
+
(eq rab_groupungroup 'group))
|
112 |
+
(set! rab_db_name (us_diphone_init rab_lpc_group)))
|
113 |
+
((and (eq rab_sigpr 'lpc)
|
114 |
+
(eq rab_groupungroup 'ungroup))
|
115 |
+
(set! rab_db_name (us_diphone_init rab_lpc_sep))))
|
116 |
+
|
117 |
+
(define (rab_postlex_syllabics utt)
|
118 |
+
"(rab_postlex_syllabics utt)
|
119 |
+
Because the lexicon is somewhat random in its used of syllable l n and
|
120 |
+
m this is designed to post process the output inserting schwa before
|
121 |
+
them. Ideally the lexicon should be fixed."
|
122 |
+
(mapcar
|
123 |
+
(lambda (s)
|
124 |
+
(if (and (member_string (item.name s) '("l" "n" "m"))
|
125 |
+
(string-equal "coda" (item.feat s "seg_onsetcoda"))
|
126 |
+
(not (member_string (item.feat s "p.name") '(l r)))
|
127 |
+
(string-equal "-" (item.feat s "p.ph_vc")))
|
128 |
+
(item.relation.insert
|
129 |
+
s 'SylStructure
|
130 |
+
(item.insert s (list "@") 'before)
|
131 |
+
'before)))
|
132 |
+
(utt.relation.items utt 'Segment)))
|
133 |
+
|
134 |
+
(define (rab_diphone_const_clusters utt)
|
135 |
+
"(rab_diphone_const_clusters UTT)
|
136 |
+
Identify consonant clusters, dark ls etc in the segment item
|
137 |
+
ready for diphone resynthesis. This may be called as a post lexical
|
138 |
+
rule through poslex_rule_hooks."
|
139 |
+
(mapcar
|
140 |
+
(lambda (s) (rab_diphone_fix_phone_name utt s))
|
141 |
+
(utt.relation.items utt 'Segment))
|
142 |
+
utt)
|
143 |
+
|
144 |
+
(define (rab_diphone_fix_phone_name utt seg)
|
145 |
+
"(rab_diphone_fix_phone_name UTT SEG)
|
146 |
+
Add the feature diphone_phone_name to given segment with the appropriate
|
147 |
+
name for constructing a diphone. Basically adds _ if either side is part
|
148 |
+
of the same consonant cluster, adds $ either side if in different
|
149 |
+
syllable for preceding/succeeding vowel syllable, and converts l to ll
|
150 |
+
in coda part of syllables."
|
151 |
+
(let ((name (item.name seg)))
|
152 |
+
(cond
|
153 |
+
((string-equal name "#") t)
|
154 |
+
((string-equal "-" (item.feat seg 'ph_vc))
|
155 |
+
(if (and (member_string name '(r w y l))
|
156 |
+
(member_string (item.feat seg "p.name") '(p t k b d g))
|
157 |
+
(item.relation.prev seg "SylStructure"))
|
158 |
+
(item.set_feat seg "us_diphone_right" (format nil "_%s" name)))
|
159 |
+
(if (and (member_string name '(w y l m n p t k))
|
160 |
+
(string-equal (item.feat seg "p.name") 's)
|
161 |
+
(item.relation.prev seg "SylStructure"))
|
162 |
+
(item.set_feat seg "us_diphone_right" (format nil "_%s" name)))
|
163 |
+
(if (and (string-equal name 's)
|
164 |
+
(member_string (item.feat seg "n.name") '(w y l m n p t k))
|
165 |
+
(item.relation.next seg "SylStructure"))
|
166 |
+
(item.set_feat seg "us_diphone_left" (format nil "%s_" name)))
|
167 |
+
(if (and (member_string name '(p t k b d g))
|
168 |
+
(member_string (item.feat seg "n.name") '(r w y l))
|
169 |
+
(item.relation.next seg "SylStructure"))
|
170 |
+
(item.set_feat seg "us_diphone_left" (format nil "%s_" name)))
|
171 |
+
(if (and (member_string name '(p k b d g))
|
172 |
+
(string-equal "+" (item.feat seg 'p.ph_vc))
|
173 |
+
(not (member_string (item.feat seg "p.name") '(@ aa o)))
|
174 |
+
(not (item.relation.prev seg "SylStructure")))
|
175 |
+
(item.set_feat seg "us_diphone_right" (format nil "$%s" name)))
|
176 |
+
(if (and (member_string name '(p t k b d g))
|
177 |
+
(string-equal "+" (item.feat seg 'n.ph_vc))
|
178 |
+
(not (member_string (item.feat seg "n.name") '(@ aa)))
|
179 |
+
(not (item.relation.next seg "SylStructure")))
|
180 |
+
(item.set_feat seg "us_diphone_left" (format nil "%s$" name)))
|
181 |
+
(if (and (string-equal "l" name)
|
182 |
+
(string-equal "+" (item.feat seg "p.ph_vc"))
|
183 |
+
(not (string-equal "a" (item.feat seg "p.ph_vlng")))
|
184 |
+
(item.relation.prev seg 'SylStructure))
|
185 |
+
(item.set_feat seg "us_diphone_right" "ll"))
|
186 |
+
(if (and (member_string name '(ch jh))
|
187 |
+
(string-equal "+" (item.feat seg 'p.ph_vc)))
|
188 |
+
(item.set_feat seg "us_diphone_right" "t"))
|
189 |
+
)
|
190 |
+
)))
|
191 |
+
|
192 |
+
(define (voice_rab_diphone)
|
193 |
+
"(voice_rab_diphone)
|
194 |
+
Set up the current voice to be a British male RP (Roger) speaker using
|
195 |
+
the rab diphone set."
|
196 |
+
(voice_reset)
|
197 |
+
(Parameter.set 'Language 'britishenglish)
|
198 |
+
;; Phone set
|
199 |
+
(Parameter.set 'PhoneSet 'mrpa)
|
200 |
+
(PhoneSet.select 'mrpa)
|
201 |
+
;; Tokenization rules
|
202 |
+
(set! token_to_words english_token_to_words)
|
203 |
+
;; POS tagger
|
204 |
+
(set! pos_lex_name "english_poslex")
|
205 |
+
(set! pos_ngram_name 'english_pos_ngram)
|
206 |
+
(set! pos_supported t)
|
207 |
+
(set! guess_pos english_guess_pos) ;; need this for accents
|
208 |
+
;; Lexicon selection
|
209 |
+
(lex.select "oald")
|
210 |
+
(set! postlex_rules_hooks (list postlex_apos_s_check
|
211 |
+
rab_postlex_syllabics))
|
212 |
+
(set! postlex_s_check postlex_apos_s_check)
|
213 |
+
;; Phrase prediction
|
214 |
+
(Parameter.set 'Phrase_Method 'prob_models)
|
215 |
+
(set! phr_break_params english_phr_break_params)
|
216 |
+
;; Accent and tone prediction
|
217 |
+
(set! int_tone_cart_tree f2b_int_tone_cart_tree)
|
218 |
+
(set! int_accent_cart_tree f2b_int_accent_cart_tree)
|
219 |
+
;; F0 prediction
|
220 |
+
(set! f0_lr_start f2b_f0_lr_start)
|
221 |
+
(set! f0_lr_mid f2b_f0_lr_mid)
|
222 |
+
(set! f0_lr_end f2b_f0_lr_end)
|
223 |
+
(Parameter.set 'Int_Method Intonation_Tree)
|
224 |
+
(set! int_lr_params
|
225 |
+
'((target_f0_mean 105) (target_f0_std 14)
|
226 |
+
(model_f0_mean 170) (model_f0_std 34)))
|
227 |
+
(Parameter.set 'Int_Target_Method Int_Targets_LR)
|
228 |
+
;; Duration prediction -- use gsw durations
|
229 |
+
(set! duration_cart_tree gsw_duration_cart_tree)
|
230 |
+
(set! duration_ph_info gsw_durs)
|
231 |
+
(Parameter.set 'Duration_Method Duration_Tree_ZScores)
|
232 |
+
(Parameter.set 'Duration_Stretch 1.05)
|
233 |
+
;; Waveform synthesizer: Roger diphones
|
234 |
+
;; This assigned the diphone names from their context (_ $ etc)
|
235 |
+
(set! UniSyn_module_hooks (list rab_diphone_const_clusters ))
|
236 |
+
(set! us_abs_offset 0.0)
|
237 |
+
(set! window_factor 1.0)
|
238 |
+
(set! us_rel_offset 0.0)
|
239 |
+
(set! us_gain 0.9)
|
240 |
+
|
241 |
+
(Parameter.set 'Synth_Method 'UniSyn)
|
242 |
+
(Parameter.set 'us_sigpr rab_sigpr)
|
243 |
+
(us_db_select rab_db_name)
|
244 |
+
|
245 |
+
(set! current-voice 'rab_diphone)
|
246 |
+
)
|
247 |
+
|
248 |
+
(proclaim_voice
|
249 |
+
'rab_diphone
|
250 |
+
'((language english)
|
251 |
+
(gender male)
|
252 |
+
(dialect british)
|
253 |
+
(description
|
254 |
+
"This voice provides a British RP English male voice using a
|
255 |
+
residual excited LPC diphone synthesis method. It uses a
|
256 |
+
modified Oxford Advanced Learners' Dictionary for pronunciations.
|
257 |
+
Prosodic phrasing is provided by a statistically trained model
|
258 |
+
using part of speech and local distribution of breaks. Intonation
|
259 |
+
is provided by a CART tree predicting ToBI accents and an F0
|
260 |
+
contour generated from a model trained from natural speech. The
|
261 |
+
duration model is also trained from data using a CART tree.")))
|
262 |
+
|
263 |
+
(provide 'rab_diphone)
|
CosyVoice-ttsfrd/resource/jprsc/COPYING
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2009, Nara Institute of Science and Technology, Japan.
|
2 |
+
|
3 |
+
All rights reserved.
|
4 |
+
|
5 |
+
Redistribution and use in source and binary forms, with or without
|
6 |
+
modification, are permitted provided that the following conditions are
|
7 |
+
met:
|
8 |
+
|
9 |
+
Redistributions of source code must retain the above copyright notice,
|
10 |
+
this list of conditions and the following disclaimer.
|
11 |
+
Redistributions in binary form must reproduce the above copyright
|
12 |
+
notice, this list of conditions and the following disclaimer in the
|
13 |
+
documentation and/or other materials provided with the distribution.
|
14 |
+
Neither the name of the Nara Institute of Science and Technology
|
15 |
+
(NAIST) nor the names of its contributors may be used to endorse or
|
16 |
+
promote products derived from this software without specific prior
|
17 |
+
written permission.
|
18 |
+
|
19 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
20 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
21 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
22 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
23 |
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
24 |
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
25 |
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
26 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
27 |
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
28 |
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
29 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30 |
+
|
31 |
+
Copyright (c) 2011-2017, The UniDic Consortium
|
32 |
+
All rights reserved.
|
33 |
+
|
34 |
+
Redistribution and use in source and binary forms, with or without
|
35 |
+
modification, are permitted provided that the following conditions are
|
36 |
+
met:
|
37 |
+
|
38 |
+
* Redistributions of source code must retain the above copyright
|
39 |
+
notice, this list of conditions and the following disclaimer.
|
40 |
+
|
41 |
+
* Redistributions in binary form must reproduce the above copyright
|
42 |
+
notice, this list of conditions and the following disclaimer in the
|
43 |
+
documentation and/or other materials provided with the
|
44 |
+
distribution.
|
45 |
+
|
46 |
+
* Neither the name of the UniDic Consortium nor the names of its
|
47 |
+
contributors may be used to endorse or promote products derived
|
48 |
+
from this software without specific prior written permission.
|
49 |
+
|
50 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
51 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
52 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
53 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
54 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
55 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
56 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
57 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
58 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
59 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
60 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
61 |
+
|
62 |
+
/* ----------------------------------------------------------------- */
|
63 |
+
/* The Japanese TTS System "Open JTalk" */
|
64 |
+
/* developed by HTS Working Group */
|
65 |
+
/* http://open-jtalk.sourceforge.net/ */
|
66 |
+
/* ----------------------------------------------------------------- */
|
67 |
+
/* */
|
68 |
+
/* Copyright (c) 2008-2016 Nagoya Institute of Technology */
|
69 |
+
/* Department of Computer Science */
|
70 |
+
/* */
|
71 |
+
/* All rights reserved. */
|
72 |
+
/* */
|
73 |
+
/* Redistribution and use in source and binary forms, with or */
|
74 |
+
/* without modification, are permitted provided that the following */
|
75 |
+
/* conditions are met: */
|
76 |
+
/* */
|
77 |
+
/* - Redistributions of source code must retain the above copyright */
|
78 |
+
/* notice, this list of conditions and the following disclaimer. */
|
79 |
+
/* - Redistributions in binary form must reproduce the above */
|
80 |
+
/* copyright notice, this list of conditions and the following */
|
81 |
+
/* disclaimer in the documentation and/or other materials provided */
|
82 |
+
/* with the distribution. */
|
83 |
+
/* - Neither the name of the HTS working group nor the names of its */
|
84 |
+
/* contributors may be used to endorse or promote products derived */
|
85 |
+
/* from this software without specific prior written permission. */
|
86 |
+
/* */
|
87 |
+
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */
|
88 |
+
/* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */
|
89 |
+
/* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
|
90 |
+
/* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
|
91 |
+
/* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */
|
92 |
+
/* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
|
93 |
+
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
|
94 |
+
/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
|
95 |
+
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */
|
96 |
+
/* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */
|
97 |
+
/* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */
|
98 |
+
/* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
|
99 |
+
/* POSSIBILITY OF SUCH DAMAGE. */
|
100 |
+
/* ----------------------------------------------------------------- */
|
CosyVoice-ttsfrd/resource/jprsc/char.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:888ee94c5a8a7a26d24ab3f1b7155441351954fd51ea06b4a2f78bd742492b2f
|
3 |
+
size 262496
|