elevenlabs / elevenlabs-python

The official Python API for ElevenLabs Text to Speech.
https://elevenlabs.io/docs/api-reference/getting-started
MIT License
2.23k stars 258 forks source link

BUG - Generate function streams output #368

Open lordsoffallen opened 2 months ago

lordsoffallen commented 2 months ago

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?