#πŸ”’ Real undefinable Error

11 messages Β· Page 1 of 1 (latest)

bronze drift
#
 File "/home/megabot/Desktop/codafail.py", line 35, in generate_and_play
    audio = elevenlabs.generate(
AttributeError: module 'elevenlabs' has no attribute 'generate'```
unkempt marshBOT
#

@bronze drift

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

uncut tapir
#

You are using a tutorial for the old version of the elevenlabs api.

#

The api client on pypi is autogenerated using some magic directly based on this api anyway.

uncut tapir
#

This won't work anymore elevenlabs.generate. The code no longer exists in this form.

#

You want to take and edit the snippet where it says 'Audio Generation' on that page.

#

requests is the most common http client for python. You install it using pip.

unkempt marshBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.