title: Remove a file within a while loop
body: <p>I am trying to delete a file inside a while loop. This is the code I am running</p>
  
  <pre><code>while 1:
      tts = gTTS(text="Hello", lang='en', slow=False)
      tts.save("file.mp3")
      playsound.playsound("file.mp3", True)
      os.remove("file.mp3")
  </code></pre>
  
  <p>However the file is never removed until the while loop is stopped. Is there any way to remove the file while still running the while loop?</p>