Skip to content

Instantly share code, notes, and snippets.

@taroushirani
Created June 7, 2020 23:39
Show Gist options
  • Save taroushirani/dbcd4a69bc6372e173854846918c9906 to your computer and use it in GitHub Desktop.
Save taroushirani/dbcd4a69bc6372e173854846918c9906 to your computer and use it in GitHub Desktop.
diff --git a/nnsvs/bin/conf/prepare_features/config.yaml b/nnsvs/bin/conf/prepare_features/config.yaml
index 375a931..313e906 100644
--- a/nnsvs/bin/conf/prepare_features/config.yaml
+++ b/nnsvs/bin/conf/prepare_features/config.yaml
@@ -42,7 +42,7 @@ acoustic:
f0_floor: 150
f0_ceil: 700
- use_harvest: true
+ use_harvest: false
frame_period: 5 # ms
mgc_order: 59
diff --git a/nnsvs/data/data_source.py b/nnsvs/data/data_source.py
index 81f0bfc..188490d 100644
--- a/nnsvs/data/data_source.py
+++ b/nnsvs/data/data_source.py
@@ -144,7 +144,7 @@ class WORLDAcousticSource(FileDataSource):
f0, timeaxis = pyworld.harvest(x, fs, frame_period=self.frame_period,
f0_floor=min_f0, f0_ceil=max_f0)
else:
- f0, timeaxis = pyworld.dio(x, fs, frame_period=frame_period,
+ f0, timeaxis = pyworld.dio(x, fs, frame_period=self.frame_period,
f0_floor=min_f0, f0_ceil=max_f0)
f0 = pyworld.stonemask(x, f0, timeaxis, fs)
spectrogram = pyworld.cheaptrick(x, f0, timeaxis, fs, f0_floor=self.f0_floor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment