2021-11-19 08:32:30 +01:00
Executing PowerShell Scripts by Voice
=====================================
2021-11-21 11:51:43 +01:00
2021-11-29 08:59:03 +01:00
🔧 Installation
--------------
2021-11-29 08:46:15 +01:00
1. Download and install *Serenade* from https://serenade.ai/ (Serenade is freely available for Linux, MacOS, and Windows).
2021-11-19 08:32:30 +01:00
2. Download and install the *PowerShell Scripts* , then set the search path to it.
2021-11-29 08:49:53 +01:00
3. 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", "Computer", "KITT", or "Windows". In the following the wake word "Computer" is used.
2021-11-21 11:51:43 +01:00
2021-11-19 08:35:43 +01:00
2021-11-29 09:15:44 +01:00
🗣 Usage
2021-11-29 08:59:03 +01:00
-------
2021-11-19 08:35:43 +01:00
1. Launch *Serenade* and click the Pause button to enable Listening mode.
2. Launch *Windows Terminal* and click into the window.
2021-11-29 10:37:16 +01:00
3. Speak into the microphone: `Computer, open calculator` - this executes the PowerShell script `open-calculator.ps1` which launches the calculator application.
2021-11-19 08:32:30 +01:00
2021-11-19 08:43:37 +01:00
More supported voice commands are:
2021-11-18 11:45:32 +01:00
2021-11-21 11:51:43 +01:00
2021-11-29 10:37:16 +01:00
Computer, open `application`
----------------------------
* launches the given application.
2021-11-29 11:14:46 +01:00
* replace `application` by: "Calculator", "Git Extensions", "Microsoft Paint", "Netflix", "Notepad", "Paint 3D", "Spotify", "Thunderbird", "Visual Studio", or "Windows Terminal".
2021-11-29 10:37:16 +01:00
* when finished use: *Computer, close `application`* to close the application.
2021-11-21 12:47:48 +01:00
Computer, open `name` browser
2021-11-21 12:40:46 +01:00
--------------------------------
2021-11-24 12:54:25 +01:00
* launches the given Web browser or opens a new tab.
2021-11-23 07:45:50 +01:00
* replace `name` by: "Chrome", "default", "Edge", or "Firefox".
2021-11-29 08:55:44 +01:00
* when finished use: *Computer, close `name` browser* to close the Web browser.
2021-11-21 11:51:43 +01:00
2021-11-21 22:30:19 +01:00
Computer, open `name` drive
2021-11-18 15:10:00 +01:00
----------------------------
2021-11-24 12:54:25 +01:00
* launches the File Explorer with the given drive.
2021-11-21 22:30:19 +01:00
* replace `name` by: "C:", "D:", "E:", "F:", or "M:".
2021-11-29 08:55:44 +01:00
* when finished use: *Computer, close file explorer* to close the File Explorer.
2021-11-18 15:10:00 +01:00
2021-11-21 22:30:19 +01:00
Computer, open `name` folder
2021-11-21 12:47:48 +01:00
--------------------------
2021-11-24 12:54:25 +01:00
* launches the File Explorer with the given folder.
2021-11-29 14:26:20 +01:00
* replace `name` by: "autostart", "desktop", "documents", "downloads", "dropbox", "home", "music", "pictures", "recycle bin", "repos", or "videos".
2021-11-29 08:55:44 +01:00
* when finished use: *Computer, close file explorer* to close the File Explorer.
2021-11-18 11:55:41 +01:00
2021-11-21 22:30:19 +01:00
Computer, open `name` website
-----------------------------
2021-11-24 12:54:25 +01:00
* launches the default Web browser with the given website.
2021-11-29 11:20:16 +01:00
* replace `name` by: "Amazon", "Baidu", "BBC", "BitBucket", "CDC", "CIA", "CNN", "eBay", "Facebook", "FBI", "Flipboard", "FourSquare", "GitHub", "HRworks", "Instagram", "Microsoft", "NASA", "NBC", "Notepad", "PayPal", "Pinterest", "Pixabay", "Slashdot", "Starbucks", "Tesla", "TikTok", "Topo Map", "Twitter", "UFA", "Unsplash", "Walmart", "WhatsApp", "White House", "Windy", "Wikipedia", "Wired", "Wolfram Alpha", "Yahoo", or "YouTube".
2021-11-29 08:55:44 +01:00
* when finished see "Computer, close `name` browser" to close the Web browser.
2021-11-18 11:55:41 +01:00
2021-11-18 11:45:32 +01:00
2021-11-21 22:30:19 +01:00
Computer, show `name` city
--------------------------
2021-11-24 12:54:25 +01:00
* launches the default Web browser with Google Maps at the given city.
2021-11-21 22:30:19 +01:00
* replace `name` by: "Atlanta", "Barcelona", "Berlin", "Boston", "Cairo", "Cape Town", "Chicago", "Dallas", "Dubai", "Dublin", "Frankfurt", "Hamburg", "Hong Kong", "Jerusalem", "Las Vegas", "Lissabon", "London", "Los Angeles", "Madrid", "Miami", "Moscow", "Munich", "New York", "Paris", Rome", "San Francisco", "Seattle", "Singapore", "Sydney", "Tokyo", "Toronto", or "Washington".
2021-11-29 08:55:44 +01:00
* when finished see "Computer, close `name` browser" to close the Web browser.
2021-11-18 11:55:41 +01:00
2021-11-21 22:30:19 +01:00
Computer, play radio `name`
---------------------------
2021-11-24 12:54:25 +01:00
* launches the default Web browser and tunes into an internet radio station.
2021-11-29 11:07:37 +01:00
* replace `name` : by "7", "Arabella", "Bob", "Club Mix", "Dance FM", "FFN", "Galaxy", "Gong", "Ibiza", "Jam FM", "Kiss Kiss", "Malibu", "N-JOY", "Paloma", "You FM".
2021-11-29 08:55:44 +01:00
* when finished see "Computer, close `name` browser" to close the Web browser.
2021-11-18 11:45:32 +01:00
2021-11-21 22:30:19 +01:00
Computer, play `name` sound
---------------------------
2021-11-24 12:54:25 +01:00
* starts playback of the given audio sound.
2021-11-21 22:30:19 +01:00
* replace `name` : by "bee", "beep", "cat", "cow", "dog", "donkey", "elephant", "elk", "frog", "goat", "gorilla", "horse", "lion", "parrot", "pig", "rattlesnake", "vulture", or "wolf".
2021-11-19 08:51:06 +01:00
2021-11-25 14:07:34 +01:00
Computer, play `name` game
--------------------------
* launches the default Web browser and plays the given game.
2021-11-25 17:11:17 +01:00
* replace `name` : by "2048", "Chess", "Cube", "Pacman", "Tetris", "TicTacToe", or "Tower".
2021-11-29 08:55:44 +01:00
* when finished see "Computer, close `name` browser" to close the Web browser.
2021-11-25 14:07:34 +01:00
2021-11-25 10:09:03 +01:00
Computer, open `name` settings
-------------------------------
* launches Windows settings.
2021-11-29 11:01:49 +01:00
* replace `name` by: "activation", "apps", "background", "backup", "bluetooth", "color", "date", "default apps", "developer", "display", "ethernet", "lockscreen", "maps", "printer", "proxy", "recovery", "speech", "start", "system", "taskbar", "themes", "time", "update", "USB", "VPN", or "Wifi". Use "system" as top level settings.
2021-11-25 10:09:03 +01:00
* when finished use: *Computer, close system settings* to stop the Windows settings.
2021-11-25 11:10:58 +01:00
2021-11-29 09:15:44 +01:00
🔊 Audio
-------
2021-11-21 12:47:48 +01:00
* *Computer, mute audio.*
* *Computer, unmute audio.*
* *Computer, turn volume up.*
* *Computer, turn volume down.*
2021-11-19 08:51:06 +01:00
2021-11-29 09:15:44 +01:00
💭 Misc
-------
2021-11-25 11:10:58 +01:00
* *Computer, locate my phone.*
* *Computer, tell joke.*
* *Computer, tell quote.*
* *Computer, tell operating system.*
* *Computer, tell up-time.*
2021-11-29 09:15:44 +01:00
💬 Nice Conversation
-------------------
2021-11-21 12:47:48 +01:00
* *Computer, good morning.*
* *Computer, good evening.*
* *Computer, good night.*
* *Computer, how are you?*
* *Computer, thank you.*
2021-11-26 14:46:14 +01:00
* *Computer, good bye.*
2021-11-29 08:55:44 +01:00
* *Computer, bye-bye.*