mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-30 11:54:32 +01:00
3.2 KiB
3.2 KiB
Executing PowerShell Scripts by Voice
Installation
- Download and install Serenade from https://serenade.ai/.
- Download and install the PowerShell Scripts, then set the search path to it.
- Execute the PowerShell script:
./export-to-serenade.ps1 computer
- this creates a custom JavaScript file at$HOME/.serenade/scripts/PowerShell.js
using the wake word 'computer'.
Usage
- Launch Serenade and click the Pause button to enable Listening mode.
- Launch Windows Terminal and click into the window.
- Say:
Computer, open calculator
- this executes the PowerShell scriptopen-calculator.ps1
to launch the calculator application.
More supported voice commands are:
[wake word], open NAME
- this launches the given application.
- replace NAME by: "calculator", "Google Chrome", "Microsoft Edge", "Mozilla Firefox", "Netflix".
- to close the application, use: [wake word], close NAME
[wake word], open NAME drive
- this launches the File Explorer with the given drive.
- replace NAME by: "C:", "D:", "E:", "F:", or "M:".
- to close the File Explorer, use: [wake word], close file explorer
[wake word], open NAME folder
- this launches the File Explorer with the given folder.
- replace NAME by: "downloads", "dropbox", "home", "music", "pictures", "repos", or "videos".
- to close the File Explorer, use: [wake word], close file explorer
[wake word], open NAME website
- this launches the default browser with the given website.
- replace NAME by: "Amazon", "Baidu", "BBC", "CDC", "CIA", "CNN", "eBay", "Facebook", "FBI", "GitHub", "Instagram", "Microsoft", "NASA", "NBC", "Pinterest", "Pixabay", "Slashdot", "Tesla", "Twitter", "UFA", "Unsplash", "Walmart", "WhatsApp", "White House", "Wikipedia", "Wired", or "Yahoo".
[wake word], show NAME city
- this launches the default browser with Google Maps showing the given city.
- 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".
[wake word], play radio NAME
- this launches the default browser and tunes into an internet radio station stream.
- replace NAME: by "Arabella", "Bob", "Galaxy", "7", "Gong", "Kiss Kiss", "N-JOY", ...
[wake word], play NAME sound
- this starts a playback of the given audio sound.
- replace NAME: by "bee", "beep", "cat", "cow", "dog", "donkey", "elephant", "elk", "frog", "goat", "gorilla", "horse", "lion", "parrot", "pig", "rattlesnake", "vulture", or "wolf".
Audio
- [wake word], mute audio.
- [wake word], unmute audio.
- [wake word], turn volume up.
- [wake word], turn volume down.
Conversation
- [wake word], good morning.
- [wake word], good evening.
- [wake word], good night.
- [wake word], how are you?
- [wake word], thank you.