summaryrefslogtreecommitdiff
path: root/become_yukarin/voice_changer.py
diff options
context:
space:
mode:
Diffstat (limited to 'become_yukarin/voice_changer.py')
-rw-r--r--become_yukarin/voice_changer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/become_yukarin/voice_changer.py b/become_yukarin/voice_changer.py
index 15c532c..e40069c 100644
--- a/become_yukarin/voice_changer.py
+++ b/become_yukarin/voice_changer.py
@@ -87,6 +87,7 @@ class VoiceChanger(object):
spectrogram=spectrogram,
aperiodicity=input_feature.aperiodicity,
mfcc=out.mfcc,
+ voiced=input_feature.f0 < pyworld.get_cheaptrick_f0_floor(input_wave.sampling_rate, fftlen),
).astype(numpy.float64)
out = pyworld.synthesize(
f0=out.f0,