Shut Down your computer using python...

Pubblicato il: 23 gennaio 2021
sul canale di: Pro Code . Coder
40
0

Today we are going to make a python program to Shutdown Computer with Voice commands.

This assistant can talk to you or communicate with you using your voice and listens to your voice.

There are three requirements–

1. PyAudio — to install pyaudio, go to terminal and type,

pip install pyaudio
2. SpeechRecognition — to install SpeechRecognition, go to terminal and type,

pip install speechrecognition
3. Pyttsx3 — to install Pyttsx3, go to terminal and type,

pip install pyttsx3


Code Shutdown Computer with Voice in Python: https://copyassignment.com/shutdown-c...

Explanation:
We have used three modules of Python here, pyaudio is working in the background and is necessary to be installed.

Here, we have made the take_command() function so that it can be used here as the ear of our voice assistant in Python which ultimately uses the speech_recognition module.

Similarly, we have made the Speak() function so that it can be used here as the mouth of our voice assistant in Python which ultimately uses the pyttsx3 module.


In questa pagina del sito puoi guardare il video online Shut Down your computer using python... della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Pro Code . Coder 23 gennaio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 40 volte e gli è piaciuto 0 spettatori. Buona visione!