I implemented some functionality on my addon and I need to generate temporary files to write an TTS audio and then use play() method from aqt.sound to play it. But when I try to use os.remove() it raises an exception saying that the file is being used by another proccess. How to deal with that?
Perhaps try using a non-deprecated function? It’s unclear what happens to the file handle when you call play(). It uses some global state in the av_player object in sound.py. Perhaps they aren’t being closed.
Why don’t you write a quick CI workflow so those of us not on Windows might be able to reproduce your issue?