Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # Filename: disable_speech_recog.py
- # Version: 1.00
- # Author: Jeoi Reqi
- """
- DISABLE SPEECH RECOGNITION:
- This script disables speech recognition in Windows.
- Requirements:
- - Windows operating system
- Usage:
- - Run the script to disable speech recognition.
- Notes:
- - This script uses PowerShell to disable speech recognition.
- """
- import subprocess
- def disable_speech_recognition():
- """
- Disable speech recognition in Windows.
- """
- try:
- # Run PowerShell command to disable speech recognition
- powershell_command = 'Set-WinUserLanguageList -LanguageList en-US -Force'
- subprocess.run(['powershell', '-Command', powershell_command], check=True)
- print("Speech recognition disabled successfully.")
- except subprocess.CalledProcessError as e:
- print("Error:", e)
- print("Output:", e.output)
- if __name__ == "__main__":
- disable_speech_recognition()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement