Add debug print statement for audio playback in play_audio function

This commit is contained in:
2026-02-18 16:30:46 +02:00
parent ae064f059d
commit 9fc0df6140

View File

@@ -26,6 +26,7 @@ def play_audio(file_path: str, loop: bool = False) -> Callable[[], None]:
Returns: Returns:
A callable that stops the audio playback when invoked. A callable that stops the audio playback when invoked.
""" """
print(f"Playing audio: {file_path} (loop={loop})")
if file_path.endswith(".wav"): if file_path.endswith(".wav"):
if loop: if loop:
# Use sox's play command with repeat for looping wav files # Use sox's play command with repeat for looping wav files