7.3 KiB
Executing PowerShell Scripts by Voice
Voice recognition and response (VRR) is so much fun and so comfortable! Just give it a try.
🔧 Installation
- Download and install Serenade from https://serenade.ai/ (Serenade is freely available for Linux, MacOS, and Windows).
- Download and install the PowerShell Scripts, allow the script execution and set the search path to it (see the FAQ page).
- Execute:
./export-to-serenade.ps1 Computer
in the PowerShell Scripts, this creates a custom JavaScript file at$HOME/.serenade/scripts/PowerShell.js
using the wake word 'Computer'. Recommended wake words with a high recognition rate are: "Alexa", "Bixby", "Computer", "James", or "Jarvis". In the following the wake word "Computer" is used.
🗣 Usage
- Launch Serenade and click into the circle to enable Listening mode.
- Launch Windows Terminal and click into the window.
- Speak into the microphone:
Computer, open calculator
- this executes the PowerShell scriptopen-calculator.ps1
which launches the calculator application.
More supported voice commands are:
Computer, open
[app]
Launches the given application, just replace [app] by: 3D-Viewer
, Calculator
, Git Extensions
, Magnifier
, Microsoft Paint
, Microsoft Store
, Netflix
, Notepad
, OBS Studio
, Outlook
, Paint 3D
, Spotify
, Thunderbird
, Visual Studio
, or Windows Terminal
.
When finished say: "Computer, close [app]" to close the application.
Computer, check
[name]
Lets the computer check something, replace [name] by: Bitcoin rate
, Christmas
, CPU
, date
, dawn
, DNS
, drives
, dusk
, Easter Sunday
, Earth
(fun), Ether rate
, headlines
, Independence Day
, ISS position
, midnight
, moon phase
, New Year
, noon
, operating system
, ping
, Santa
, sunrise
, sunset
, swap space
, tea time
, Tether rate
, time
, time zone
, up-time
, VPN
, weather
, or zenith
.
Computer, open
[name] browser
Launches the given Web browser or opens a new tab - replace [name] by: Chrome
, default
, Edge
, or Firefox
.
When finished say: "Close tab" or: "Computer, close [name] browser" to close the Web browser.
Computer, open
[name] drive
Launches the File Explorer with the given drive - replace [name] by: C:
, D:
, E:
, F:
, G:
, or M:
.
When finished say: "Computer, close file explorer" to close the File Explorer.
Computer, open
[name] folder
Launches the File Explorer with the given folder - replace [name] by: apps
, autostart
, desktop
, documents
, downloads
, Dropbox
, home
, music
, OneDrive
, pictures
, recycle bin
, repos
, temporary
, or videos
.
When finished say: "Computer, close file explorer" to close the File Explorer.
Computer, open
[name] website
Launches the default Web browser with the given website - replace [name] by: Amazon
, Apple
, Baidu
, BBC
, Bing
, BitBucket
, CDC
, CIA
, CNN
, DistroWatch
, Dropbox
, eBay
, Facebook
, FBI
, Flipboard
, FourSquare
, FRITZ!Box
, FRITZ!Repeater
, GitHub
, GliderTracker
, HolidayCheck
, HRworks
, Instagram
, IPFS
, Microsoft
, NASA
, NBC
, Netflix
, Notepad
, Outdoor Active
, PayPal
, Pinterest
, Pixabay
, Plex
, Serenade
, Slashdot
, Snap Store
, Starbucks
, Tesla
, TikTok
, Toggl
, Topo Map
, Twitter
, UFA
, Unsplash
, Walmart
, WhatsApp
, White House
, Windy
, Wikipedia
, Wired
, Wolfram Alpha
, World News
, Yahoo
, or YouTube
.
When finished say: "Close tab" or: "Computer, close [name] browser" to close the Web browser.
Computer, show
[name] city
Launches the default Web browser with Google Maps at the given city - replace [name] by: Atlanta
, Barcelona
, Berlin
, Boston
, Cairo
, Calgary
, Cape Town
, Chicago
, Dallas
, Denver
, Dubai
, Dublin
, Frankfurt
, Hamburg
, Hong Kong
, Honolulu
, Jerusalem
, Kansas
, Las Vegas
, Lisbon
, London
, Los Angeles
, Madrid
, Mexico
, Miami
, Montreal
, Moscow
, Munich
, New York
, Panama
, Paris
, Rome
, San Francisco
, Seattle
, Singapore
, Sydney
, Tokyo
, Toronto
, Tunis
, Vienna
, Washington
, or Zurich
.
When finished say: "Close tab" or: "Computer, close [name] browser" to close the Web browser.
Computer, play radio
[name]
Launches the default Web browser and tunes into an internet radio station - replace [name] by: 7
, AFN Stuttgart
, Arabella
, Bob
, Club Mix
, Dance FM
, FFN
, Galaxy
, Gong
, Ibiza
, Jam FM
, Kiss Kiss
, Malibu
, N-JOY
, Paloma
, or You FM
.
When finished say: "Close tab" or: "Computer, close [name] browser" to close the Web browser.
Computer, play
[name] sound
- starts to play the given audio sound - replace [name] by:
bee
,beep
,cat
,cow
,dog
,donkey
,elephant
,elk
,frog
,goat
,gorilla
,horse
,lion
,parrot
,pig
,rattlesnake
,vulture
, orwolf
.
Computer, play
[name] game
Launches the default Web browser and plays the given game - replace [name] by: 2048
, Chess
, Cube
, Pacman
, Tetris
, TicTacToe
, or Tower
.
When finished say: "Close tab" or: "Computer, close [name] browser" to close the Web browser.
Computer, open
[name] settings
Launches the Windows settings - replace [name] by: activation
, apps
, background
, backup
, bluetooth
, color
, date
, default apps
, developer
, display
, ethernet
, lockscreen
, maps
, printer
, proxy
, recovery
, speech
, start
, system
(the top level settings!), taskbar
, themes
, time
, update
, USB
, VPN
, or Wifi
.
When finished say: "Computer, close system settings" to close the Windows settings.
Computer, show
[name] manual
Launches the default Web browser with the given online manual - replace [name] by: Ant
, Apple
, Audacity
, Azure
, Bash
, Blender
, Chrome
, Edge
, Firefox
, GCC
, Git
, Jenkins
, MSBuild
, OBS Studio
, PowerShell
, Serenade
, SystemRescue
, Toyota
, Vim
, Voice
(yes, this page!), Volkswagen
, or Windows
.
When finished say: "Close tab" or: "Computer, close [name] browser" to close the Web browser.
Computer, show
[name] rate
Launches the default Web browser showing the given exchange rate - replace [name] by: Bitcoin
, Ether
, Euro
, Tether
, or US dollar
.
When finished say: "Close tab" or: "Computer, close [name] browser" to close the Web browser.
🔊 Audio Voice Commands
Computer, turn volume off
Computer, turn volume on
Computer, turn volume up
Computer, turn volume down
💭 Misc Voice Commands
Computer, locate my phone
Computer, tell joke
Computer, tell quote
Computer, repeat last reply
Computer, connect VPN
💬 Welcome & Farewell
Computer, Hi
Computer, say hello
Computer, good morning
Computer, good evening
Computer, good night
Computer, how are you?
Computer, come on
Computer, thank you
Computer, I'll be back
Computer, good bye
Computer, bye-bye
Computer, see you