refactor: enhance TTS playback management with abort signal support

- Update TTSManager to accept an optional abort signal, allowing for graceful cancellation of TTS playback.
- Implement abort handling in the generateAndWaitForPlayback method to clean up pending playbacks and reject promises when playback is aborted.
- Modify Session class to pass the abort signal during TTS generation, improving control over playback interruptions.

These changes improve the robustness of the voice assistant's TTS functionality and enhance user experience by allowing for better management of audio playback.
This commit is contained in:
Mohamed Boudra
2025-10-20 16:19:34 +02:00
parent c5b24d3dfc
commit 97f2ff2cac
3 changed files with 32 additions and 2 deletions

Binary file not shown.