feat: longer delay before playing the audio

This commit is contained in:
Ayo Ayco 2025-12-02 14:28:11 +01:00
parent 245bfd21b7
commit 8381aa1f8b

2
tts.py
View file

@ -119,7 +119,7 @@ def play_audio(output_files):
full_path = os.path.abspath(output)
media = vlc_module.MediaPlayer(f"file://{full_path}")
media.play()
sleep(0.2)
sleep(0.5)
duration=media.get_length() / 1000
chunk=f"{i+1}/{length} " if length > 1 else ""
description = f"\u25B6 {chunk}"