1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-09 04:29:50 +08:00

chore(format): run black on dev (#11)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-06-08 00:46:57 +09:00
committed by GitHub
parent b91dcf2261
commit 26dc9ba98d
7 changed files with 11 additions and 13 deletions

View File

@@ -10,9 +10,7 @@ class DioF0Predictor(F0Predictor):
def __init__(self, hop_length=512, f0_min=50, f0_max=1100, sampling_rate=44100):
super().__init__(hop_length, f0_min, f0_max, sampling_rate)
def compute_f0(
self, wav: np.ndarray[Any, np.dtype], p_len: Optional[int] = None
):
def compute_f0(self, wav: np.ndarray[Any, np.dtype], p_len: Optional[int] = None):
if p_len is None:
p_len = wav.shape[0] // self.hop_length
f0, t = pyworld.dio(