Skip to content

librosa.util.exceptions.ParameterError: Invalid hop_length: 0 #1279

@harry2141985

Description

@harry2141985

Is your feature request related to a problem? Please describe.

Exception ignored from cffi callback <function _StreamBase.init..callback_ptr at 0x0000020F4ACB7A30>:
Traceback (most recent call last):
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\sounddevice.py", line 897, in callback_ptr
return _wrap_callback(
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\sounddevice.py", line 2743, in _wrap_callback
callback(*args)
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\so_vits_svc_fork\inference\main.py", line 225, in callback
inference = model.process(
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\so_vits_svc_fork\inference\core.py", line 446, in process
return super().process(input_audio, *args, **kwargs)
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\so_vits_svc_fork\inference\core.py", line 385, in process
infer_audio_concat = self.infer(input_audio_concat, *args, **kwargs)
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\so_vits_svc_fork\inference\core.py", line 465, in infer
return self.svc_model.infer_silence(
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\so_vits_svc_fork\inference\core.py", line 249, in infer_silence
for chunk in split_silence(
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\so_vits_svc_fork\inference\core.py", line 65, in split_silence
non_silence_indices = librosa.effects.split(
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\librosa\effects.py", line 732, in split
non_silent = _signal_to_frame_nonsilent(
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\librosa\effects.py", line 597, in _signal_to_frame_nonsilent
mse = feature.rms(y=y, frame_length=frame_length, hop_length=hop_length)
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\librosa\feature\spectral.py", line 882, in rms
x = util.frame(y, frame_length=frame_length, hop_length=hop_length)
File "E:\Sovits\so-vits-svc-fork\venv\lib\site-packages\librosa\util\utils.py", line 210, in frame
raise ParameterError(f"Invalid hop_length: {hop_length:d}")
librosa.util.exceptions.ParameterError: Invalid hop_length: 0

Describe alternatives you've considered

librosa.util.exceptions.ParameterError: Invalid hop_length: 0

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Are you willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time, and I know how to start.
  • Yes, I have the time, but I don't know how to start. I would need guidance.
  • No, I don't have the time, although I believe I could do it if I had the time...
  • No, I don't have the time and I wouldn't even know how to start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions