Sound Record using Python
import sounddevice
from scipy.io.wavfile import write
fs = 44100
second = 60
print("recording.....")
record_voice = sounddevice.rec(int(second * fs),samplerate=fs,channels=2)
sounddevice.wait()
write("output.wav",fs,record_voice)
Comments
Post a Comment