Add give-reply.ps1

This commit is contained in:
Markus Fleschutz
2021-12-06 15:46:02 +01:00
parent 2d2803ce4e
commit 589ba8e93c
4 changed files with 76 additions and 3 deletions

20
Scripts/say-hello.ps1 Normal file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Replies to "Say hello"
.DESCRIPTION
This script replies to "Say hello" by text-to-speech (TTS).
.EXAMPLE
PS> ./say-hello
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
& "$PSScriptRoot/give-reply.ps1" "Hello, everyone."
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}