mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 16:33:20 +01:00
19 lines
482 B
PowerShell
Executable File
19 lines
482 B
PowerShell
Executable File
<#
|
|
.SYNOPSIS
|
|
Say an answer to 'good morning'
|
|
.DESCRIPTION
|
|
This script answers "good morning" by text-to-speech (TTS).
|
|
.EXAMPLE
|
|
PS> ./good-morning
|
|
.NOTES
|
|
Author: Markus Fleschutz · License: CC0
|
|
.LINK
|
|
https://github.com/fleschutz/PowerShell
|
|
#>
|
|
|
|
$Answer = "Good morning.", "Good morning to you too.", "Well, good morning to you too.", "Good morning! How are you?", "Morning." | Get-Random
|
|
|
|
& "$PSScriptRoot/speak-english.ps1" "$Answer"
|
|
write-output "$Answer"
|
|
exit 0 # success
|