ImportError: cannot import name 'get_voice_dir' from 'tortoise.utils.audio' #241

Open
opened 2023-05-19 07:25:44 +00:00 by icklerly · 2 comments

Unfortunately I get the following error when starting train.py

ImportError: cannot import name 'get_voice_dir' from 'tortoise.utils.audio'

What tortoise version are you using? In the current repo it seems like they removed the function get_voice_dir() from their audio.py

Thanks in advance! I am excited to use your code :)

Unfortunately I get the following error when starting train.py ImportError: cannot import name 'get_voice_dir' from 'tortoise.utils.audio' What tortoise version are you using? In the current repo it seems like they removed the function get_voice_dir() from their audio.py Thanks in advance! I am excited to use your code :)
Owner

First, the train.py script doesn't use anything from TorToiSe directly, so I'm not sure what you're doing to get that from the given information.

Secondly, the intended fork to use it with (mrq/tortoise) does in fact have it still: https://git.ecker.tech/mrq/tortoise-tts/src/branch/main/tortoise/utils/audio.py#L13, so I'm also not sure what you're doing from the given information.

First, the `train.py` script doesn't use anything from TorToiSe directly, so I'm not sure what you're doing to get that from the given information. Secondly, the intended fork to use it with ([mrq/tortoise](https://git.ecker.tech/mrq/tortoise-tts/)) does in fact have it still: https://git.ecker.tech/mrq/tortoise-tts/src/branch/main/tortoise/utils/audio.py#L13, so I'm also not sure what you're doing from the given information.

uninstall tortoise-tts==3.x
install TorToiSe==2.4.5

uninstall `tortoise-tts==3.x` install `TorToiSe==2.4.5`
Sign in to join this conversation.
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/ai-voice-cloning#241
No description provided.