Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.86k stars 903 forks source link

Allow streaming audio responses #1340

Open BeeShall opened 2 weeks ago

BeeShall commented 2 weeks ago

Is your feature request related to a problem? Please describe. Whenever I want to use text to speech as a chatbot response, I have to wait for the response from the LLM and then use a TTS service to synthesize the results which results in a huge latency and poor UX experience.

Describe the solution you'd like It would be really cool is cl.Audio/cl.Message allowed streaming of audio tokens so that we can stream TTS response as we get it, instead of waiting to synthesize completely.

Describe alternatives you've considered None at the moment.