Skip to content

Commit d21106f

Browse files
chore(format): run black on dev (#827)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 00c56ee commit d21106f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: tools/audio/av.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ def wav2(i: BytesIO, o: BufferedWriter, format: str):
4141

4242

4343
def load_audio(
44-
file: Union[str, BytesIO, Path],
45-
sr: Optional[int] = None,
46-
format: Optional[str] = None,
47-
mono=True,
48-
) -> Union[np.ndarray, Tuple[np.ndarray, int]]:
44+
file: Union[str, BytesIO, Path],
45+
sr: Optional[int] = None,
46+
format: Optional[str] = None,
47+
mono=True,
48+
) -> Union[np.ndarray, Tuple[np.ndarray, int]]:
4949
"""
5050
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/blob/412a9950a1e371a018c381d1bfb8579c4b0de329/infer/lib/audio.py#L39
5151
"""
@@ -113,7 +113,7 @@ def frame_iter(container):
113113

114114
np.copyto(decoded_audio[..., offset:end_index], frame_data)
115115
offset += len(frame_data[0])
116-
116+
117117
container.close()
118118

119119
# Truncate the array to the actual size
@@ -124,4 +124,4 @@ def frame_iter(container):
124124

125125
if sr is not None:
126126
return decoded_audio
127-
return decoded_audio, rate
127+
return decoded_audio, rate

0 commit comments

Comments
 (0)