Import wav file in utilities #19

Closed
opened 2023-02-21 16:52:49 +00:00 by gasthemall · 2 comments

python version 3.10.6, 3.9.13
GPU GTX 3090

Traceback (most recent call last):
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\gradio\routes.py", line 384, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\gradio\blocks.py", line 1024, in process_api
    result = await self.call_function(
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\gradio\blocks.py", line 836, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "C:\Users\PC\Desktop\ai-voice-cloing\src\webui.py", line 162, in read_generate_settings_proxy
    j, latents = read_generate_settings(file)
  File "C:\Users\PC\Desktop\ai-voice-cloing\src\utils.py", line 969, in read_generate_settings
    metadata = music_tag.load_file(file)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\music_tag\__init__.py", line 55, in load_file
    mfile = mutagen.File(filename, easy=False)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_util.py", line 163, in wrapper_func
    return func(h, *args, **kwargs)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_file.py", line 300, in File
    return Kind(fileobj, filename=filething.filename)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_file.py", line 47, in __init__
    self.load(*args, **kwargs)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_util.py", line 184, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_util.py", line 155, in wrapper
    return func(self, h, *args, **kwargs)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\wave.py", line 196, in load
    self.info = WaveStreamInfo(fileobj)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_util.py", line 184, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\wave.py", line 75, in __init__
    wave_file = _WaveFile(fileobj)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\wave.py", line 38, in __init__
    RiffFile.__init__(self, fileobj)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_riff.py", line 63, in __init__
    super().__init__(RiffChunk, fileobj)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_iff.py", line 317, in __init__
    self.root = chunk_cls.parse(fileobj)
  File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_iff.py", line 103, in parse
    raise EmptyChunk('Header size < %i' % cls.HEADER_SIZE)
mutagen._iff.EmptyChunk: Header size < 8
Loaded TorToiSe, ready for generation.

Fresh install, import a wav file to the utility, gives this error

python version 3.10.6, 3.9.13 GPU GTX 3090 ``` Traceback (most recent call last): File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\gradio\routes.py", line 384, in run_predict output = await app.get_blocks().process_api( File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\gradio\blocks.py", line 1024, in process_api result = await self.call_function( File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\gradio\blocks.py", line 836, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\Users\PC\Desktop\ai-voice-cloing\src\webui.py", line 162, in read_generate_settings_proxy j, latents = read_generate_settings(file) File "C:\Users\PC\Desktop\ai-voice-cloing\src\utils.py", line 969, in read_generate_settings metadata = music_tag.load_file(file) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\music_tag\__init__.py", line 55, in load_file mfile = mutagen.File(filename, easy=False) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_util.py", line 163, in wrapper_func return func(h, *args, **kwargs) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_file.py", line 300, in File return Kind(fileobj, filename=filething.filename) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_file.py", line 47, in __init__ self.load(*args, **kwargs) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_util.py", line 184, in wrapper return func(*args, **kwargs) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_util.py", line 155, in wrapper return func(self, h, *args, **kwargs) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\wave.py", line 196, in load self.info = WaveStreamInfo(fileobj) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_util.py", line 184, in wrapper return func(*args, **kwargs) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\wave.py", line 75, in __init__ wave_file = _WaveFile(fileobj) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\wave.py", line 38, in __init__ RiffFile.__init__(self, fileobj) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_riff.py", line 63, in __init__ super().__init__(RiffChunk, fileobj) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_iff.py", line 317, in __init__ self.root = chunk_cls.parse(fileobj) File "C:\Users\PC\Desktop\ai-voice-cloing\venv\lib\site-packages\mutagen\_iff.py", line 103, in parse raise EmptyChunk('Header size < %i' % cls.HEADER_SIZE) mutagen._iff.EmptyChunk: Header size < 8 Loaded TorToiSe, ready for generation. ``` Fresh install, import a wav file to the utility, gives this error
gasthemall changed title from Can't use files in \voices\ to Import wav file in utilities 2023-02-21 16:54:33 +00:00
Owner

Haven't tested (for reasons), but it should be remedied in commit ed2cf9f5ee.

Haven't tested (for reasons), but it should be remedied in commit ed2cf9f5ee558c5efb63b17025ae0b25a29bbaa0.
Author

it works

it works
mrq closed this issue 2023-02-21 19:13:56 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/ai-voice-cloning#19
No description provided.