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

Save voice generated with voice.generation.generate() in Library #367

Open
victorrosi opened this issue Sep 30, 2024 · 0 comments
Open

Save voice generated with voice.generation.generate() in Library #367

victorrosi opened this issue Sep 30, 2024 · 0 comments

Comments

@victorrosi
Copy link

Hello,

I would like to use the Voice Design tool in python in order to create new voices, save them in my library and reuse them later.

To do this is used this:

audio = client.voice_generation.generate(
            gender="male", 
            accent="british", 
            age="middle_aged", 
            accent_strength=1.5,
            text="I will always love Maggie Smith. Please Maggie Smith, come back! My life will never be the same without Maggie Smith. ",
        )

save(audio,"test.wav")

It created an audiofile however I still haven't find a way to access the "generated_voice_id" in order to save the voice with voice_generation.generate_parameters() and use the voice to generate more content.

I tried to use the x-trace-id from the headers of the response using get on the provided URL thinking that it would keep the ID in some kind of cache related to my API-key. But was unsuccessful (finally understood that it was generating new ones everytime I would call it).

Can you help me please and explain what I don't understand and doing wrong?

Thank you in advance!

@victorrosi victorrosi changed the title use voice generated with voice.generation.generate() Save voice generated with voice.generation.generate() in Library Sep 30, 2024
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

1 participant