Answers for "how to play and stop music python"

0

how to play and stop music 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()
Posted by: Guest on August-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language