Spaces:
Runtime error
Runtime error
prismleong
commited on
Commit
·
7afb56c
1
Parent(s):
a2fcd56
update
Browse files
app.py
CHANGED
|
@@ -95,7 +95,7 @@ def check_audio_length(audio_path, max_duration=MAX_AUDIO_DURATION):
|
|
| 95 |
# If we can't determine the length, we'll try to process it anyway
|
| 96 |
return True, 0
|
| 97 |
|
| 98 |
-
@spaces.GPU
|
| 99 |
def process_with_progress(
|
| 100 |
progress=gr.Progress(),
|
| 101 |
input_audio=None,
|
|
|
|
| 95 |
# If we can't determine the length, we'll try to process it anyway
|
| 96 |
return True, 0
|
| 97 |
|
| 98 |
+
@spaces.GPU(duration=120)
|
| 99 |
def process_with_progress(
|
| 100 |
progress=gr.Progress(),
|
| 101 |
input_audio=None,
|
infer.py
CHANGED
|
@@ -416,11 +416,11 @@ def process_segment(
|
|
| 416 |
@click.option('--fade-duration', type=float, default=20.0, help='Fade duration in milliseconds')
|
| 417 |
@click.option('--sliced-inference', is_flag=True, default=False, help='Use sliced inference for processing long segments')
|
| 418 |
@click.option('--robust-f0', type=int, default=0, help='Level of robust f0 filtering (0=none, 1=light, 2=aggressive)')
|
| 419 |
-
@click.option('--slicer-threshold', type=float, default=-
|
| 420 |
@click.option('--slicer-min-length', type=int, default=3000, help='Minimum length of audio segments in milliseconds')
|
| 421 |
@click.option('--slicer-min-interval', type=int, default=100, help='Minimum interval between audio segments in milliseconds')
|
| 422 |
@click.option('--slicer-hop-size', type=int, default=10, help='Hop size for audio slicing in milliseconds')
|
| 423 |
-
@click.option('--slicer-max-sil-kept', type=int, default=
|
| 424 |
@click.option('--use-fp16', is_flag=True, default=True, help='Use float16 precision for faster inference')
|
| 425 |
def main(
|
| 426 |
model,
|
|
|
|
| 416 |
@click.option('--fade-duration', type=float, default=20.0, help='Fade duration in milliseconds')
|
| 417 |
@click.option('--sliced-inference', is_flag=True, default=False, help='Use sliced inference for processing long segments')
|
| 418 |
@click.option('--robust-f0', type=int, default=0, help='Level of robust f0 filtering (0=none, 1=light, 2=aggressive)')
|
| 419 |
+
@click.option('--slicer-threshold', type=float, default=-30.0, help='Threshold for audio slicing in dB')
|
| 420 |
@click.option('--slicer-min-length', type=int, default=3000, help='Minimum length of audio segments in milliseconds')
|
| 421 |
@click.option('--slicer-min-interval', type=int, default=100, help='Minimum interval between audio segments in milliseconds')
|
| 422 |
@click.option('--slicer-hop-size', type=int, default=10, help='Hop size for audio slicing in milliseconds')
|
| 423 |
+
@click.option('--slicer-max-sil-kept', type=int, default=200, help='Maximum silence kept in milliseconds')
|
| 424 |
@click.option('--use-fp16', is_flag=True, default=True, help='Use float16 precision for faster inference')
|
| 425 |
def main(
|
| 426 |
model,
|