title: Python - interrupting function while executing
body: <p>I am having some difficulty finding a solution to my problem in python. I have a function that uses text to speech, to say the given phrase. I want to be able to interrupt the function in mid process. For example, my computer is saying a very long paragraph and I want it to stop talking. How would I do this. Is it possible?</p>
  
  <p>This is how I am doing the TTS:</p>
  
  <pre><code>os.system('say -v Oliver "' + text + '"')
  </code></pre>
  
  <p>Sincerely</p>