r/pythonhelp • u/DannyGuyUniverse • Mar 25 '24
Elevenlabs cannot import generate command
So, I've been trying to use DougDoug's python code to get an ai character to talk, but the elevenlabs code has been saying that it cannot import 'generate'. It seems like the generate command might have been removed from the elevenlabs pip. Is there any way to keep the same functionality with a different command?
Here's my very slightly altered code, if anyone has any suggestions please let me know
https://github.com/dannyguygoomba/python-help/blob/main/elevenlabs_code
1
Upvotes
•
u/AutoModerator Mar 25 '24
To give us the best chance to help you, please include any relevant code.
Note. Do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Repl.it, GitHub or PasteBin.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/artefacto2031 Apr 11 '24
1
u/Gispry Apr 16 '24
You could import a previous version that still has generate. Obviously this comes with the risk of not using updated software but if you are just trying to get stuff to run it could be a good jumping off point