title: How to delete a playing .wav file?
body: <p>I want to build a audiobook using this code but after making the audio file 'my.wav' I want to delete it everytime after listening the audio automatically but it is returning error: <code>PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'my.wav'</code>.</p>
  <p>My code:</p>
  <pre><code>from pygame import mixer
  import os
  import pyttsx3
  
  
  engine=pyttsx3.init()
  engine.setProperty('rate',165)
  engine.save_to_file('my name is unkown','my.wav')
  engine.runAndWait()
  
  mixer.init()
  mixer.music.load('my.wav')
  mixer.music.play()
  
  os.remove('my.wav')
  </code></pre>