elevenlabs-python icon indicating copy to clipboard operation
elevenlabs-python copied to clipboard

BUG - Generate function streams output

Open lordsoffallen opened this issue 1 year ago • 2 comments

According the code snippet here: https://github.com/elevenlabs/elevenlabs-python/blob/main/src/elevenlabs/client.py#L225,

that should run only when stream=False but following that line leads to here: https://github.com/elevenlabs/elevenlabs-python/blob/main/src/elevenlabs/text_to_speech/client.py#L122

which is where we client is being called via streaming endpoint and it actually yields, doesn't return.

Must be bug in the code, as I expect that function to not stream but return the full output. Am I missing something here?

lordsoffallen avatar Sep 30 '24 15:09 lordsoffallen

hi! thanks for the issue! our SDK has changed quite significantly since you raised this issue. can you confirm whether you are still having the issue, as the referenced code is out of date

AngeloGiacco avatar Feb 03 '25 19:02 AngeloGiacco

confirmed this is an issue and have added a pr of a fix

AngeloGiacco avatar Feb 04 '25 18:02 AngeloGiacco