@@ -13,15 +13,15 @@ protected override Phonemizer CreatePhonemizer() {
13
13
14
14
[ Theory ]
15
15
[ InlineData ( "en_arpa-plus" ,
16
- new string [ ] { "good" , "morning" } ,
17
- new string [ ] { "C4 " , "C4 " } ,
16
+ new string [ ] { "good" , "morning" , } ,
17
+ new string [ ] { "A#3 " , "A#3 " } ,
18
18
new string [ ] { "" , "" } ,
19
- new string [ ] { "- g_3 " , "g uh_3 " , "uh d_3 " , "d m_3 " , "m ao_3 " , "ao r_3 " , "r n_3 " , "n ih_3 " , "ih ng_3 " , "ng -_3 " } ) ]
19
+ new string [ ] { "- g_C3 " , "g uh_C3 " , "uh d_C3 " , "d m_C3 " , "m ao_C3 " , "ao r_C3 " , "r n_C3 " , "n ih_C3 " , "ih ng_C3 " , "ng -_C3 " } ) ]
20
20
[ InlineData ( "en_arpa-plus" ,
21
21
new string [ ] { "good" , "morning" } ,
22
- new string [ ] { "A3 " , "F4 " } ,
22
+ new string [ ] { "C3 " , "C3 " } ,
23
23
new string [ ] { "" , "" } ,
24
- new string [ ] { "- g_3 " , "g uh_3 " , "uh d_3 " , "d m_3 " , "m ao " , "ao r " , "r n " , "n ih " , "ih ng " , "ng -" } ) ]
24
+ new string [ ] { "- g_C3 " , "g uh_C3 " , "uh d_C3 " , "d m_C3 " , "m ao_C3 " , "ao r_C3 " , "r n_C3 " , "n ih_C3 " , "ih ng_C3 " , "ng -_C3 " } ) ]
25
25
public void PhonemizeTest ( string singerName , string [ ] lyrics , string [ ] tones , string [ ] colors , string [ ] aliases ) {
26
26
RunPhonemizeTest ( singerName , lyrics , RepeatString ( lyrics . Length , "" ) , tones , colors , aliases ) ;
27
27
}
@@ -32,7 +32,7 @@ public void ColorTest() {
32
32
new NoteParams {
33
33
lyric = "hi" ,
34
34
hint = "" ,
35
- tone = "C4 " ,
35
+ tone = "A#3 " ,
36
36
phonemes = new PhonemeParams [ ] {
37
37
new PhonemeParams {
38
38
alt = 0 ,
@@ -51,17 +51,41 @@ public void ColorTest() {
51
51
}
52
52
}
53
53
}
54
- } , new string [ ] { "- hh_3" , "hh ay_W" , "ay -_3" } ) ;
54
+ } , new string [ ] { "- hh_C3" , "hh ay_W" , "ay -_C3" } ) ;
55
+ }
56
+ public void SyllableTest ( string lyric , string hint , string [ ] aliases ) {
57
+ RunPhonemizeTest ( "en_arpa-plus" , new NoteParams [ ] { new NoteParams { lyric = lyric , hint = hint , tone = "C3" , phonemes = SamePhonemeParams ( 4 , 0 , 0 , "" ) } } , aliases ) ;
55
58
}
59
+ [ Theory ]
60
+ [ InlineData ( "read" , "" , new string [ ] { "- r_C3" , "r eh_C3" , "eh d_C3" , "d -_C3" } ) ]
61
+ [ InlineData ( "read" , "r iy d" , new string [ ] { "- r_C3" , "r iy_C3" , "iy d_C3" , "d -_C3" } ) ]
56
62
63
+ [ InlineData ( "asdfjkl" , "r iy d" , new string [ ] { "- r_C3" , "r iy_C3" , "iy d_C3" , "d -_C3" } ) ]
64
+ [ InlineData ( "" , "r iy d" , new string [ ] { "- r_C3" , "r iy_C3" , "iy d_C3" , "d -_C3" } ) ]
65
+
66
+ public void SyllableExternalEndingTest ( string lyric , string hint , string [ ] aliases ) {
67
+ RunPhonemizeTest ( "en_arpa-plus" , new NoteParams [ ] { new NoteParams { lyric = lyric , hint = hint , tone = "C3" , phonemes = SamePhonemeParams ( 4 , 0 , 0 , "" ) } } , aliases ) ;
68
+ }
69
+ [ Theory ]
70
+ [ InlineData ( "more" , "m aor" , new string [ ] { "- m_C3" , "m ao_C3" , "ao r_C3" , "r -_C3" } ) ]
71
+ [ InlineData ( "'a" , "q ax hh" , new string [ ] { "- q_C3" , "q ax_C3" , "ax hh_C3" , "hh -_C3" } ) ]
72
+
73
+ public void SyllableCCVTest ( string lyric , string hint , string [ ] aliases ) {
74
+ RunPhonemizeTest ( "en_arpa-plus" , new NoteParams [ ] { new NoteParams { lyric = lyric , hint = hint , tone = "C3" , phonemes = SamePhonemeParams ( 4 , 0 , 0 , "" ) } } , aliases ) ;
75
+ }
76
+ [ Theory ]
77
+ [ InlineData ( "trusting" , "" , new string [ ] { "- tr_C3" , "tr ah_C3" , "ah st_C3" , "st ih_C3" , "ih ng_C3" , "ng -_C3" } ) ]
78
+ [ InlineData ( "drive" , "" , new string [ ] { "- dr_C3" , "dr ay_C3" , "ay v_C3" , "v -_C3" } ) ]
79
+
80
+ public void SyllableFallbackTest ( string lyric , string hint , string [ ] aliases ) {
81
+ RunPhonemizeTest ( "en_arpa-plus" , new NoteParams [ ] { new NoteParams { lyric = lyric , hint = hint , tone = "C3" , phonemes = SamePhonemeParams ( 4 , 0 , 0 , "" ) } } , aliases ) ;
82
+ }
57
83
[ Theory ]
58
- [ InlineData ( "read " , "" , new string [ ] { "- r_3 " , "r eh_3 " , "eh d_3 " , "d -_3 " } ) ]
59
- [ InlineData ( "read " , "r iy d " , new string [ ] { "- r_3 " , "r iy_3 " , "iy d_3 " , "d -_3 " } ) ]
84
+ [ InlineData ( "kroidroi " , "" , new string [ ] { "- kr_C3 " , "kr oy_C3 " , "iy dr_C3 " , "dr oy_C3" , "oy -_C3 " } ) ]
85
+ [ InlineData ( "whhat " , "" , new string [ ] { "- hh_C3 " , "hh uw_C3 " , "w ah_C3 " , "ah t_C3" , "t -_C3 " } ) ]
60
86
61
- [ InlineData ( "asdfjkl" , "r iy d" , new string [ ] { "- r_3" , "r iy_3" , "iy d_3" , "d -_3" } ) ]
62
- [ InlineData ( "" , "r iy d" , new string [ ] { "- r_3" , "r iy_3" , "iy d_3" , "d -_3" } ) ]
63
87
public void HintTest ( string lyric , string hint , string [ ] aliases ) {
64
- RunPhonemizeTest ( "en_arpa-plus" , new NoteParams [ ] { new NoteParams { lyric = lyric , hint = hint , tone = "C4 " , phonemes = SamePhonemeParams ( 4 , 0 , 0 , "" ) } } , aliases ) ;
88
+ RunPhonemizeTest ( "en_arpa-plus" , new NoteParams [ ] { new NoteParams { lyric = lyric , hint = hint , tone = "C3 " , phonemes = SamePhonemeParams ( 4 , 0 , 0 , "" ) } } , aliases ) ;
65
89
}
66
90
}
67
91
}
0 commit comments