Shut Down your computer using python...

Publicado em: 23 Janeiro 2021
no canal de: 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.


Nesta página do site você pode assistir ao vídeo on-line Shut Down your computer using python... duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Pro Code . Coder 23 Janeiro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 40 vezes e gostou 0 espectadores. Boa visualização!