Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input audio is too short #10

Open
xy3xy3 opened this issue Nov 14, 2024 · 2 comments
Open

input audio is too short #10

xy3xy3 opened this issue Nov 14, 2024 · 2 comments

Comments

@xy3xy3
Copy link

xy3xy3 commented Nov 14, 2024

Traceback (most recent call last):
  File "/root/miniconda3/envs/chattts/lib/python3.10/site-packages/gradio/queueing.py", line 624, in process_events
    response = await route_utils.call_process_api(
  File "/root/miniconda3/envs/chattts/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api
    output = await app.get_blocks().process_api(
  File "/root/miniconda3/envs/chattts/lib/python3.10/site-packages/gradio/blocks.py", line 2015, in process_api
    result = await self.call_function(
  File "/root/miniconda3/envs/chattts/lib/python3.10/site-packages/gradio/blocks.py", line 1562, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
  File "/root/miniconda3/envs/chattts/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/root/miniconda3/envs/chattts/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread
    return await future
  File "/root/miniconda3/envs/chattts/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run
    result = context.run(func, *args)
  File "/root/miniconda3/envs/chattts/lib/python3.10/site-packages/gradio/utils.py", line 865, in wrapper
    response = f(*args, **kwargs)
  File "/root/ChatTTS-OpenVoice/app.py", line 88, in generate_audio
    source_se, audio_name = se_extractor.get_se(src_path, tone_color_converter, target_dir='processed', vad=True)
  File "/root/ChatTTS-OpenVoice/OpenVoice/se_extractor.py", line 144, in get_se
    wavs_folder = split_audio_vad(audio_path, target_dir=target_dir, audio_name=audio_name)
  File "/root/ChatTTS-OpenVoice/OpenVoice/se_extractor.py", line 104, in split_audio_vad
    assert num_splits > 0, 'input audio is too short'
AssertionError: input audio is too short

I uploaded a file which is not empty.
However the assert fails.

@jiaohuix
Copy link

same problem too..

@HKoon
Copy link
Owner

HKoon commented Nov 25, 2024

That means too short.. Still need at least around 10 seconds audio to extract timbral features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants