pause and resume a!!!!

I was wondering if there’s way to pause and then resume a sound, as you can do with actions using the play end logic actuator.I saw somewhere that there’s a way to do this with python.Does anyone know if there’s an available script somewhere or a tutorial??