You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this reporting a bug or feature request?
This is a feature request to optimize the session startup process.
Issue description
The current session startup process initializes components (TTS, LLM, STT, and Daily Join) sequentially, which results in higher latency before the session becomes operational. By refactoring the process to initialize these components in parallel, the startup time can be significantly reduced.
Expected behavior
The initialization of TTS, LLM, STT, and Daily Join should occur in parallel, resulting in a noticeable reduction in session startup time.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this @golbin . The reason behind the current behavior is to make sure all the components are successfully initialzed in order so we don't push frames prematurely. But yes, maybe we could possibly initialize everything in parallel and just wait for the last service being initialized before starting pushing frames.
Yes, handling parallel processing might be a bit challenging, but it could significantly reduce the startup time.
If we can reuse a bot process, the startup could become extremely fast. Additionally, if we can maintain connections to TTS and STT even after the session ends, we could potentially onboard new users with almost no waiting time.
For a simpler approach, we could start by parallelizing only the Daily transport and joining. This alone could substantially reduce the waiting time.
Description
Is this reporting a bug or feature request?
This is a feature request to optimize the session startup process.
Issue description
The current session startup process initializes components (TTS, LLM, STT, and Daily Join) sequentially, which results in higher latency before the session becomes operational. By refactoring the process to initialize these components in parallel, the startup time can be significantly reduced.
Expected behavior
The initialization of TTS, LLM, STT, and Daily Join should occur in parallel, resulting in a noticeable reduction in session startup time.
The text was updated successfully, but these errors were encountered: