Skip to content
This repository was archived by the owner on Jul 12, 2025. It is now read-only.

Commit 7ad2fa8

Browse files
committed
sync with applio
1 parent 11f7125 commit 7ad2fa8

File tree

13 files changed

+255
-351
lines changed

13 files changed

+255
-351
lines changed

requirements.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,14 @@ numpy==1.23.5
66
requests>=2.31.0,<2.32.0
77
tqdm
88
wget
9-
pydantic==2.8.2
10-
fastapi==0.112.0
11-
starlette==0.37.2
129

1310
# Audio processing
1411
ffmpeg-python>=0.2.0
1512
faiss-cpu==1.7.3
1613
librosa==0.9.2
17-
pyworld==0.3.4
1814
scipy==1.11.1
1915
soundfile==0.12.1
20-
praat-parselmouth
2116
noisereduce
22-
versatile-audio-upscaler
2317
pedalboard
2418
stftpitchshift
2519

@@ -44,13 +38,11 @@ gradio==4.43.0
4438
# Miscellaneous utilities
4539
certifi>=2023.07.22; sys_platform == 'darwin'
4640
antlr4-python3-runtime==4.8; sys_platform == 'darwin'
47-
ffmpy==0.3.1
4841
tensorboardX
4942
edge-tts==6.1.9
5043
pypresence
5144
beautifulsoup4
5245
flask
53-
local-attention
5446

5547
# UVR
5648
samplerate==0.1.0

rvc/infer/infer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def convert_audio_format(input_path, output_path, output_format):
108108
"""
109109
try:
110110
if output_format != "WAV":
111-
print(f"Converting audio to {output_format} format...")
111+
print(f"Saving audio as {output_format}...")
112112
audio, sample_rate = librosa.load(input_path, sr=None)
113113
common_sample_rates = [
114114
8000,
@@ -255,10 +255,6 @@ def convert_audio(
255255
start_time = time.time()
256256
print(f"Converting audio '{audio_input_path}'...")
257257

258-
if upscale_audio == True:
259-
from audio_upscaler import upscale
260-
261-
upscale(audio_input_path, audio_input_path)
262258
audio = load_audio_infer(
263259
audio_input_path,
264260
16000,

rvc/infer/pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def get_f0_hybrid(
286286
if methods_str:
287287
methods = [method.strip() for method in methods_str.group(1).split("+")]
288288
f0_computation_stack = []
289-
print(f"Calculating f0 pitch estimations for methods {str(methods)}")
289+
print(f"Calculating f0 pitch estimations for methods: {', '.join(methods)}")
290290
x = x.astype(np.float32)
291291
x /= np.quantile(np.abs(x), 0.999)
292292
for method in methods:
@@ -404,7 +404,7 @@ def get_f0(
404404
) + 1
405405
f0_mel[f0_mel <= 1] = 1
406406
f0_mel[f0_mel > 255] = 255
407-
f0_coarse = np.rint(f0_mel).astype(np.int)
407+
f0_coarse = np.rint(f0_mel).astype(int)
408408

409409
return f0_coarse, f0bak
410410

0 commit comments

Comments
 (0)