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.
Auf dieser Seite können Sie das Online-Video Shut Down your computer using python... mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Pro Code . Coder 23 Januar 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 40 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!