The easiest way is to use an early python version, 3.11 for example. If this solution does not fit, you can check the discussion about this issue https://github.com/hamiltron/py-simple-audio/issues/72.