diff options
| author | Hiroshiba Kazuyuki <kazuyuki_hiroshiba@dwango.co.jp> | 2018-01-15 04:17:10 +0900 |
|---|---|---|
| committer | Hiroshiba Kazuyuki <kazuyuki_hiroshiba@dwango.co.jp> | 2018-01-15 04:41:33 +0900 |
| commit | 7bfc3321e356f24f49c790b578917e8db22bd30d (patch) | |
| tree | 65e8070b34d22e8b6211bb41e7dd448eb39dccd1 /become_yukarin/voice_changer.py | |
| parent | 2be3f03adc5695f82c6ab86da780108f786ed014 (diff) | |
超解像学習を可能に
Diffstat (limited to 'become_yukarin/voice_changer.py')
| -rw-r--r-- | become_yukarin/voice_changer.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/become_yukarin/voice_changer.py b/become_yukarin/voice_changer.py index a8a207a..822d8c5 100644 --- a/become_yukarin/voice_changer.py +++ b/become_yukarin/voice_changer.py @@ -118,6 +118,9 @@ class VoiceChanger(object): return self.convert_from_feature(input, out_sampling_rate) def convert_from_feature(self, input: AcousticFeature, out_sampling_rate: Optional[int] = None): + if out_sampling_rate is None: + out_sampling_rate = self.config.dataset.param.voice_param.sample_rate + out = self.convert_to_feature(input=input, out_sampling_rate=out_sampling_rate) out = pyworld.synthesize( f0=out.f0.ravel(), |
