learnpython3 | Unsorted

Telegram-канал learnpython3 - Learn Python

-

⭐️ Download and watch the best premium Python Courses ⭐️ Buy ads: https://telega.io/c/Python_Trainings 🔰 Linkedin Courses: @Linkedin_Learning 🧿 ZeroToMastery Courses:@Zero_To_Mastery 📦 Udemy Courses: @Udemy_Learning

Subscribe to a channel

Learn Python

🔅 Voice Recorder in Python

pip install sounddevice


import sounddevice
from scipy.io.wavfile import write
#sample_rate
fs=44100
#Ask to enter the recording time
second = int(input("Enter the Recording Time in second: "))
print("Recording…\n")
record_voice = sounddevice.rec(int(second * fs),samplerate=fs,channels=2)
sounddevice.wait()
write("MyRecording.wav",fs,record_voice)
print("Recording is done Please check you folder to listen recording")

Читать полностью…
Subscribe to a channel