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?
This is how I am doing the TTS:
os.system('say -v Oliver "' + text + '"')
Sincerely
say "Hello World"
@AlexeyGuseynov