diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-07-23 16:44:57 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-07-23 16:44:57 +0200 |
| commit | b7003a098fb577c804451c026a7c4dc18f2cbc4f (patch) | |
| tree | f99ea0b69bd6c7fc5be9bf85a59db704e7c9ff4d /scripts | |
| parent | efd82facda541f85ba7e9c5e9f4fd0e7338eccdd (diff) | |
process
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/process.py b/scripts/process.py index 8f3473c..7a5a362 100644 --- a/scripts/process.py +++ b/scripts/process.py @@ -69,9 +69,9 @@ def process(p: Path, acoustic_converter: AcousticConverter, super_resolution: Su input_wave = acoustic_converter._wave_process(str(p), test=True) input_feature = acoustic_converter._feature_process(input_wave, test=True) converted_feature = acoustic_converter.convert_to_feature(input=input_feature, out_sampling_rate=param.voice_param.sample_rate) - # # converted_feature.f0 = input_feature.f0 + converted_feature.f0 = input_feature.f0.astype(numpy.float64) - wave = super_resolution(converted_feature.spectrogram.astype(numpy.float64), acoustic_feature=converted_feature, sampling_rate=param.voice_param.sample_rate) + wave = super_resolution(converted_feature.spectrogram.astype(numpy.float64), acoustic_feature=converted_feature.astype(numpy.float64), sampling_rate=param.voice_param.sample_rate) librosa.output.write_wav(str(output / p.stem) + '.wav', wave.wave, wave.sampling_rate, norm=True) except: |
