title: Cant Acess The Voice Model File
body: <p>I am trying to write a code for voice assistant but having problem in accessing my <strong>voiceModel</strong> file after saving.</p>
  
  <p>Can anyone help me out please:)</p>
  
  <p>My Code:</p>
  
  <pre><code>def talk(voiceModel):
      print(voiceModel)
      for line in voiceModel.splitlines():
          text_to_speech=gTTS(text='Welcome To Inspiration',lang='en-uk')
          text_to_speech.save('voiceModel.mp3')
          mixer.init()
          mixer.music.load('voiceModel.mp3')
          mixer.music.play()
          os.remove("voiceModel.mp3")
  </code></pre>
  
  <p>And I Got this error:</p>
  
  <pre><code>File "C:/Users/Harsh/Desktop/Projects/Python/Inspiration/Inspire.py", line 23, in talk
      os.remove("voiceModel.mp3")
  
  PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'voiceModel.mp3'
  </code></pre>
  
  <p>So I just want help to be within limit of accessing my file always without changing my program code a lot:
  Plzz Help???</p>
  
  <p>Btw I went here but its not much of help to me <a href="https://stackoverflow.com/questions/39818922/errno-13-permission-denied-file-mp3-python">Stack Overflow</a></p>