summaryrefslogtreecommitdiff
path: root/scripts/process.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-07-23 16:49:00 +0200
committerJules Laplace <julescarbon@gmail.com>2018-07-23 16:49:00 +0200
commit464036654ebc03bf34741a19e8ca209559126f27 (patch)
treec8e95929ce4010c83e2eab3b16bc273233afca16 /scripts/process.py
parent8128237fd4c5e1fc6fc2e07b36639f79c6aa691e (diff)
process
Diffstat (limited to 'scripts/process.py')
-rw-r--r--scripts/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/process.py b/scripts/process.py
index 422c8c6..436c8f9 100644
--- a/scripts/process.py
+++ b/scripts/process.py
@@ -71,7 +71,7 @@ def process(p: Path, acoustic_converter: AcousticConverter, super_resolution: Su
converted_feature = acoustic_converter.convert_to_feature(input=input_feature, out_sampling_rate=param.voice_param.sample_rate)
# converted_feature.f0 = input_feature.f0.astype(numpy.float64)
- wave = super_resolution(converted_feature.spectrogram.astype(numpy.float64), acoustic_feature=converted_feature.astype(numpy.float64), sampling_rate=param.voice_param.sample_rate)
+ wave = super_resolution(converted_feature.spectrogram.astype(numpy.float32), acoustic_feature=converted_feature, sampling_rate=param.voice_param.sample_rate)
librosa.output.write_wav(str(output / p.stem) + '.wav', wave.wave, wave.sampling_rate, norm=True)
except: