Please Subscribe My YouTube Channel

Sunday, April 02, 2023

How to open your computer without password


How to open your computer without password



Saturday, April 01, 2023

How To Make Digital Clock with Python



How To Make Digital Clock with Python




#first download ds digital font and install it.
from tkinter import *
from tkinter.ttk import *
from time import strftime 

dk = Tk()
dk.title("Clock")
dk.minsize(width=610,height=110)
dk.maxsize(width=600,height=100)

label = Label(dk, font=("ds-digital",80),background="black",foreground='white')
label.pack(anchor='center')

def time():
    string = strftime("%H:%M:%S %p")
    label.config(text=string)
    label.after(1000,time)

time()

dk.mainloop()

How to create voice recorder app with Python

How to create voice recorder app with Python





#import required libraries
import sounddevice as sd
from scipy.io.wavfile import write
import wavio as wv

#sampling frequency
freq = 44100
#Recording Duration
duration = 15

#Start Recoder With The Given Values of duration and sample frequency
recording = sd.rec(int(duration * freq), samplerate = freq, channels = 2)

#Recode audio for the given number of seconds
sd.wait()

#this will convert the Numpy array to an Audio
#File with The Given Sampling Frequency
write("recording0.wav", freq, recording)

#Convert the Numpy Array To Audio File
wv.write("recording1.way", recording, freq, sampwidth = 2)