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 (#3)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6e8feb9028
commit
c94f3f6748
@@ -9,7 +9,9 @@ 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[typing.Any, np.dtype], p_len: int | None = None):
|
||||
def compute_f0(
|
||||
self, wav: np.ndarray[typing.Any, np.dtype], p_len: int | None = None
|
||||
):
|
||||
if p_len is None:
|
||||
p_len = wav.shape[0] // self.hop_length
|
||||
f0, t = pyworld.dio(
|
||||
@@ -24,7 +26,9 @@ class DioF0Predictor(F0Predictor):
|
||||
f0[index] = round(pitch, 1)
|
||||
return self.__interpolate_f0(self.__resize_f0(f0, p_len))[0]
|
||||
|
||||
def compute_f0_uv(self, wav: np.ndarray[typing.Any, np.dtype], p_len: int | None = None):
|
||||
def compute_f0_uv(
|
||||
self, wav: np.ndarray[typing.Any, np.dtype], p_len: int | None = None
|
||||
):
|
||||
if p_len is None:
|
||||
p_len = wav.shape[0] // self.hop_length
|
||||
f0, t = pyworld.dio(
|
||||
|
||||
Reference in New Issue
Block a user