comment jouer et arrêter la musique python

import soundfile as sf
import sounddevice as sd

data, fs = sf.read(path, dtype='float32')  
sd.play(data, fs)
input("Write anything to stop.")
sd.stop()
Bright Boar