Shut Down your computer using python...

Publicado el: 23 enero 2021
en el 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.


En esta página del sitio puede ver el video en línea Shut Down your computer using python... de Duración hora minuto segunda en buena calidad , que subió el usuario Pro Code . Coder 23 enero 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 40 veces y le gustó 0 a los espectadores. Disfruta viendo!