mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
Improved monophones wrt. ends
This commit is contained in:
1 parent
a5dcdca16e
commit
91d0ab9e67
1 file changed
+7
-6
+7
-6
@@ -431,15 +431,16 @@ impl Synthesizer {
|
||||
continue;
|
||||
}
|
||||
|
||||
// TODO -
|
||||
/*let sample_preference = match i {
|
||||
let sample_preference = match i {
|
||||
0 => { SamplePreference::Begin },
|
||||
_ if i == polyphone.len() - 1 => { SamplePreference::Middle },
|
||||
_ if i == polyphone.len() => { SamplePreference::Middle },
|
||||
_ => { SamplePreference::End },
|
||||
};*/
|
||||
};
|
||||
|
||||
let phone = self.audiobank.get_phoneme(speaker,
|
||||
&polyphone[i]);
|
||||
let phone = self.audiobank.get_n_phone(speaker,
|
||||
&polyphone[i..i+1],
|
||||
sample_preference,
|
||||
use_ends);
|
||||
|
||||
if phone.is_some() {
|
||||
chunks[i] = phone;
|
||||
|
||||
Reference in new issue
Block a user