danneauxs
Deploy complete ChatterboxTTS system with utils, tools, and wrapper modules
346d87a
raw
history blame
355 Bytes
import subprocess
import os
def play_chunk_audio(path):
if not os.path.exists(path):
print(f"❌ Audio file not found: {path}")
return
try:
subprocess.run(["ffplay", "-nodisp", "-autoexit", path], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except Exception as e:
print(f"Error playing audio: {e}")