Create Voice Recorder Using Phyton

pip install sounddevice
pip install scipy
import sounddevice
from scipy.io.wavfile import write
fs=44100
second=10
print("recording.....")
record_voice=sounddevice.rec(int(second*fs),samplerate=fs,channels=2)
sounddevice.wait()
write("output.wav",fs,record_voice)
C:\recordbypyhton>python 1.py

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store