diff --git a/agentic_security/probe_data/audio_generator.py b/agentic_security/probe_data/audio_generator.py index 50babe5..341fe0e 100644 --- a/agentic_security/probe_data/audio_generator.py +++ b/agentic_security/probe_data/audio_generator.py @@ -88,9 +88,8 @@ def generate_audio_cross_platform(prompt: str) -> bytes: tts = gTTS(text=prompt, lang="en") temp_mp3_path = f"temp_audio_{uuid.uuid4().hex}.mp3" - tts.save(temp_mp3_path) - try: + tts.save(temp_mp3_path) with open(temp_mp3_path, "rb") as f: audio_bytes = f.read() finally: