2021-11-19 08:32:30 +01:00
Executing PowerShell Scripts by Voice
=====================================
2021-12-08 17:01:19 +01:00
Voice recognition and response (VRR) is so much fun and so comfortable! Just give it a try.
2021-11-19 08:32:30 +01:00
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-12-10 16:56:07 +01:00
2. Download and install the *PowerShell Scripts* , allow the script execution and set the search path to it (see the [FAQ page ](FAQ.md ) for details).
2021-12-10 16:54:15 +01:00
3. Select your personal wake word. Recommended wake words with a high recognition rate are: *"Alexa"* , *"Bixby"* , *"Computer"* , *"James"* , or *"Jarvis"* . In the following the wake word *"Computer"* is used.
2021-12-10 16:52:47 +01:00
4. 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'.
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-29 14:35:22 +01:00
1. Launch *Serenade* and click into the circle to enable Listening mode.
2021-11-19 08:35:43 +01:00
2. Launch *Windows Terminal* and click into the window.
2021-12-10 16:44:34 +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-12-10 16:36:34 +01:00
*"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` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:36:34 +01:00
When finished say: *"Computer, close [APP]"* to close the application.
2021-11-29 10:37:16 +01:00
2021-12-05 11:53:00 +01:00
2021-12-10 16:36:34 +01:00
*"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` .
2021-12-04 13:44:06 +01:00
2021-11-29 10:37:16 +01:00
2021-12-10 16:44:34 +01:00
*"Computer, open [NAME] browser"*
2021-12-03 11:09:16 +01:00
---------------------------------
2021-12-10 16:44:34 +01:00
Launches the given Web browser or opens a new tab - replace [NAME] by: `Chrome` , `default` , `Edge` , or `Firefox` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Close tab"* or: *"Computer, close [NAME] browser"* to close the Web browser.
2021-11-21 11:51:43 +01:00
2021-12-10 16:44:34 +01:00
*"Computer, open [NAME] drive"*
2021-12-03 11:17:17 +01:00
-------------------------------
2021-12-10 16:44:34 +01:00
Launches the File Explorer with the given drive - replace [NAME] by: `C:` , `D:` , `E:` , `F:` , `G:` , or `M:` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Computer, close file explorer"* to close the File Explorer.
2021-11-18 15:10:00 +01:00
2021-12-10 16:44:34 +01:00
*"Computer, open [NAME] folder"*
2021-12-03 11:17:17 +01:00
--------------------------------
2021-12-10 16:44:34 +01:00
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` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Computer, close file explorer"* to close the File Explorer.
2021-11-18 11:55:41 +01:00
2021-12-10 16:44:34 +01:00
*"Computer, open [NAME] website"*
2021-12-03 11:24:54 +01:00
---------------------------------
2021-12-10 16:44:34 +01:00
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` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Close tab"* or: *"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-12-10 16:44:34 +01:00
*"Computer, show [NAME] city"*
2021-12-03 11:33:32 +01:00
------------------------------
2021-12-10 16:44:34 +01:00
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` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Close tab"* or: *"Computer, close [NAME] browser"* to close the Web browser.
2021-11-18 11:55:41 +01:00
2021-12-10 16:44:34 +01:00
*"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` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Close tab"* or: *"Computer, close [NAME] browser"* to close the Web browser.
2021-11-18 11:45:32 +01:00
2021-12-10 16:44:34 +01:00
*"Computer, play [NAME] sound"*
2021-12-03 11:44:42 +01:00
-------------------------------
2021-12-10 16:44:34 +01:00
* starts the playback of the given sound - 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-12-10 16:44:34 +01:00
*"Computer, play [NAME] game"*
2021-12-03 11:44:42 +01:00
------------------------------
2021-12-10 16:44:34 +01:00
Launches the default Web browser and plays the given game - replace [NAME] by: `2048` , `Chess` , `Cube` , `Pacman` , `Tetris` , `TicTacToe` , or `Tower` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Close tab"* or: *"Computer, close [NAME] browser"* to close the Web browser.
2021-11-29 15:11:39 +01:00
2021-12-10 16:44:34 +01:00
*"Computer, open [NAME] settings"*
2021-12-03 11:49:56 +01:00
----------------------------------
2021-12-10 16:44:34 +01:00
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` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Computer, close system settings"* to close the Windows settings.
2021-11-25 10:09:03 +01:00
2021-11-25 11:10:58 +01:00
2021-12-10 16:44:34 +01:00
*"Computer, show [NAME] manual"*
2021-12-03 12:08:13 +01:00
--------------------------------
2021-12-10 16:44:34 +01:00
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` .
2021-12-07 22:32:08 +01:00
2021-12-10 16:44:34 +01:00
When finished say: *"Close tab"* or: *"Computer, close [NAME] browser"* to close the Web browser.
2021-12-01 10:23:15 +01:00
2021-12-10 16:34:26 +01:00
*"Computer, show [NAME] rate"*
2021-12-10 16:33:25 +01:00
--------------------------------
2021-12-10 16:34:26 +01:00
Launches the default Web browser with the given exchange rate. Just replace [NAME] by: `Bitcoin` , `Ether` , `Euro` , `Tether` , or `US dollar` .
2021-12-08 08:05:11 +01:00
2021-12-10 16:33:25 +01:00
When finished say: *"Close tab"* or: *"Computer, close [name] browser"* to close the Web browser.
2021-12-08 08:05:11 +01:00
2021-12-07 22:36:58 +01:00
2021-12-03 11:56:02 +01:00
🔊 Audio Voice Commands
------------------------
2021-12-10 16:29:31 +01:00
* *"Computer, turn volume off"* - mutes audio
* *"Computer, turn volume on"* - unmutes audio
* *"Computer, turn volume up"* - increases the audio volume by 10%
* *"Computer, turn volume down"* - decreases the audio volume by 10%
2021-11-19 08:51:06 +01:00
2021-12-10 15:43:47 +01:00
💬 Welcome Commands
-------------------
2021-12-10 16:29:31 +01:00
* *"Computer, Hi!"*
* *"Computer, say hello!"*
* *"Computer, good morning."*
* *"Computer, good evening."*
* *"Computer, good night."*
* *"Computer, how are you?"*
2021-12-10 15:43:47 +01:00
💬 Farewell Commands
--------------------
2021-12-10 16:29:31 +01:00
* *"Computer, I'll be back."*
* *"Computer, good bye."*
* *"Computer, bye-bye."*
* *"Computer, see you."*
2021-12-10 15:43:47 +01:00
2021-12-10 16:06:28 +01:00
2021-12-10 15:43:47 +01:00
💭 Various Voice Commands
-------------------------
2021-12-10 16:29:31 +01:00
* *"Computer, connect VPN"* - connects to VPN
* *"Computer, come on"*
* *"Computer, give me five"*
* *"Computer, locate my phone"*
* *"Computer, repeat last reply"*
* *"Computer, roll a dice"* - returns a dice number
* *"Computer, tell joke."*
* *"Computer, tell quote."*
* *"Computer, thank you."*