Error when generating #19

Closed
opened 2023-02-11 16:42:03 +00:00 by ijustwanttoclone · 3 comments
Traceback (most recent call last):
  File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/gradio/routes.py", line 374, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/gradio/blocks.py", line 1017, in process_api
    result = await self.call_function(
  File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/gradio/blocks.py", line 835, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/gradio/helpers.py", line 584, in tracked_fn
    response = fn(*args)
  File "/home/username/tortoise-tts/webui.py", line 68, in generate
    voice_samples, conditioning_latents = load_voice(voice)
  File "/home/username/tortoise-tts/tortoise/utils/audio.py", line 117, in load_voice
    paths = voices[voice]
KeyError: 'j2.wav'

voice has been converted with provided convert.sh, same thing happens with files from audacity.
Refresh voice list doesn't work either.

``` Traceback (most recent call last): File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/gradio/routes.py", line 374, in run_predict output = await app.get_blocks().process_api( File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/gradio/blocks.py", line 1017, in process_api result = await self.call_function( File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/gradio/blocks.py", line 835, in call_function prediction = await anyio.to_thread.run_sync( File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run result = context.run(func, *args) File "/home/username/tortoise-tts/tortoise-venv/lib/python3.10/site-packages/gradio/helpers.py", line 584, in tracked_fn response = fn(*args) File "/home/username/tortoise-tts/webui.py", line 68, in generate voice_samples, conditioning_latents = load_voice(voice) File "/home/username/tortoise-tts/tortoise/utils/audio.py", line 117, in load_voice paths = voices[voice] KeyError: 'j2.wav' ``` voice has been converted with provided convert.sh, same thing happens with files from audacity. Refresh voice list doesn't work either.
Owner

From the looks of it, you have the file itself in the voice folder, when it should be in a folder as the name you want to refer to the voice. For example:

  • ./voices/bateman/1.wav
  • ./voices/bateman/2.wav
From the looks of it, you have the file itself in the voice folder, when it should be in a folder as the name you want to refer to the voice. For example: * ./voices/bateman/1.wav * ./voices/bateman/2.wav
Contributor

Created #20 to make this requirement clearer.

Created #20 to make this requirement clearer.

Worked. Thanks alot.

Worked. Thanks alot.
mrq closed this issue 2023-02-11 20:36:18 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
3 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/tortoise-tts#19
No description provided.