import sounddevice
from scipy.io.wavfile import write
fs=44100#sample rate
seconds=10
print("recording")
record_voice=sounddevice.rec(int(second * fs),samplerate=fs,channels=2)
sounddevice.wait()
write("output.wav",fs,record_voice)
