This is w.r.t. the python client's voice_generation.generate method which, at this point in time, returns a generator representing a stream of chunks that, when concatenated, result in a 'preview' mp3 of the generated voice.
The problem is that the return does not include the generated_voice_id which is necessary for re-using the voice. Please review the APIs return type to include the necessary parameters. According to the documentation, the generated_voice_id is returned as a response header which the client abstracts out.
xi = ElevenLabs(api_key='...')
xi_generated_voice = xi.voice_generation.generate(
gender = 'female',
age = 'young',
accent = 'american',
accent_strength=1.0,
text = 'The quick brown fox jumps over the lazy dog. Fifty-six crazy penguins jumped quickly over the awesome iceberg'
)
type(xi_generated_voice) # generator - where is the generated_voice_id?
Hi team,
elevenlabs==1.7.0
This is w.r.t. the python client's voice_generation.generate method which, at this point in time, returns a generator representing a stream of chunks that, when concatenated, result in a 'preview' mp3 of the generated voice.
The problem is that the return does not include the generated_voice_id which is necessary for re-using the voice. Please review the APIs return type to include the necessary parameters. According to the documentation, the generated_voice_id is returned as a response header which the client abstracts out.
Sincerest Regards,