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.
On this page of the site you can watch the video online Shut Down your computer using python... with a duration of hours minute second in good quality, which was uploaded by the user Pro Code . Coder 23 January 2021, share the link with friends and acquaintances, this video has already been watched 40 times on youtube and it was liked by 0 viewers. Enjoy your viewing!