Simple rename

This commit is contained in:
Markus Fleschutz 2021-12-06 19:33:42 +01:00
parent 7aa7af1028
commit 1289232de8
3 changed files with 8 additions and 8 deletions

View File

@ -90,8 +90,8 @@ Lets the computer check something, replace [name] by: `Bitcoin`, `Christmas`, `C
🔊 Audio Voice Commands 🔊 Audio Voice Commands
------------------------ ------------------------
* `Computer, mute audio` * `Computer, turn volume off`
* `Computer, unmute audio` * `Computer, turn volume on`
* `Computer, turn volume up` * `Computer, turn volume up`
* `Computer, turn volume down` * `Computer, turn volume down`

View File

@ -1,10 +1,10 @@
<# <#
.SYNOPSIS .SYNOPSIS
Mutes the audio output Turns the volume off
.DESCRIPTION .DESCRIPTION
This script mutes the default audio device immediately. This script mutes the default audio device immediately.
.EXAMPLE .EXAMPLE
PS> ./mute-audio PS> ./turn-volume-off
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz · License: CC0
.LINK .LINK
@ -14,7 +14,7 @@
try { try {
$obj = new-object -com wscript.shell $obj = new-object -com wscript.shell
$obj.SendKeys([char]173) $obj.SendKeys([char]173)
"🔇 audio is muted" & "$PSScriptRoot/give-reply.ps1" "Audio is off."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"

View File

@ -1,10 +1,10 @@
<# <#
.SYNOPSIS .SYNOPSIS
Unmutes the audio output Turns the volume on
.DESCRIPTION .DESCRIPTION
This script unmutes the audio output. This script unmutes the audio output.
.EXAMPLE .EXAMPLE
PS> .\unmute-audio.ps1 PS> .\turn-volume-on.ps1
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz · License: CC0
.LINK .LINK
@ -14,7 +14,7 @@
try { try {
$obj = new-object -com wscript.shell $obj = new-object -com wscript.shell
$obj.SendKeys([char]173) $obj.SendKeys([char]173)
"🔈 audio is unmuted" & "$PSScriptRoot/give-reply.ps1" "Audio is on."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"