Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AssertionError #31

Open
Shobeir-Am opened this issue Nov 22, 2023 · 3 comments
Open

AssertionError #31

Shobeir-Am opened this issue Nov 22, 2023 · 3 comments

Comments

@Shobeir-Am
Copy link

My apologies if this is a silly problem with an easy fix, but I promise I have googled it and could not fix it.
The capture.py runs smoothly for me, but the narrator.py throws the following error; and it does not depend on the Eleven Labs audio id that I use.

I'd really appreciate any help you'd be able to offer :)

File "\narrator-main\narrator.py", line 114, in
main()

File "\narrator-main\narrator.py", line 105, in main
play_audio(analysis)

File "\narrator-main\narrator.py", line 40, in play_audio
audio = generate(text, voice=os.environ.get("7Wqa3tuynJ4uUcRnTwAI"))

File "\anaconda3\lib\site-packages\elevenlabs\simple.py", line 61, in generate
assert isinstance(voice, Voice)

AssertionError

@bbress
Copy link

bbress commented Feb 27, 2024

I get the same assertion error. Were you able to resolve this?

@RoadWarrior1
Copy link

I'm getting this issue as well. Any updates?

@RoadWarrior1
Copy link

Nevermind - found it. You just need to plug in the voice ID from Eleven.

export ELEVENLABS_VOICE_ID='your_voice_id_here'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants