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