Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How to get Elevenlabs to work? #199

Open
frankmeeuwsen opened this issue Nov 29, 2024 · 4 comments
Open

How to get Elevenlabs to work? #199

frankmeeuwsen opened this issue Nov 29, 2024 · 4 comments

Comments

@frankmeeuwsen
Copy link

Thanks for this excellent package. I use the downloaded package, not the pip install version. I want to try to use custom voices from Elevenlabs but somehow I can't get it to work.
I have a custom.yaml with tts_model: "elevenlabs" but when I run this I get an error

File "/Users/Documents/podcastfy/podcastfy/client.py", line 342, in generate_podcast
tts_model = conversation_config.get("default_tts_model", "openai")
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'

I am not sure how to proceed from here... an example with custom yaml to use Elevenlabs in another language would be appreciated.

@souzatharsis
Copy link
Owner

souzatharsis commented Nov 29, 2024 via email

@frankmeeuwsen
Copy link
Author

frankmeeuwsen commented Nov 30, 2024

Since I can't upload it, here it is copy-pasted. Since I commented, I got it to work somehow on the commandline, but it still falls back to the openAI voices from what I can hear.

Thanks for your help!

word_count: 400
conversation_style: 
  - "Technical expertise"
  - "Enthusiastic"
podcast_name: "Jobs overview"
roles_person1: "main explainer"
roles_person2: "domain expert"
output_language: "Dutch"
podcast_tagline: "Work on your own careerpath"
engagement_techniques: 
  - "technical know-how"
  - "vivid imagery"
  - "audience prompts"
ending_message: "See our website for more information!"
creativity: 0.7
model: "eleven_multilingual_v2"
default_voices:
  - question: "Frank"
  - answer: "Melanie"

@souzatharsis
Copy link
Owner

souzatharsis commented Nov 30, 2024 via email

@frankmeeuwsen
Copy link
Author

The voices in the yaml are Dutch voices (my own and one from the library) so that should work. I tried this on the commandline:
python -m podcastfy.client --tts-model elevenlabs --conversation-config ~/Downloads/podcastify/custom.yaml --transcript ~/Downloads/podcastify/data/transcripts/transcript_8e24eb33c7a0416d83759bc3b27d6636.txt

And when I changed the names of the voices in podcastfy/conversation_config.yaml to the Dutch ones it worked! But I'd rather override those values in my own config.yaml. Is this possible?

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

No branches or pull requests

2 participants