2021-11-18 07:31:23 +01:00
|
|
|
|
<#
|
|
|
|
|
.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
|
|
|
|
|
#>
|
|
|
|
|
|
2021-11-26 15:10:15 +01:00
|
|
|
|
$Answer = "Good morning.", "Good morning to you too.", "Well, good morning to you too.", "Good morning! How are you?", "Morning." | Get-Random
|
2021-11-26 14:46:14 +01:00
|
|
|
|
|
|
|
|
|
& "$PSScriptRoot/speak-english.ps1" "$Answer"
|
2021-11-27 14:16:50 +01:00
|
|
|
|
write-output "$Answer"
|
2021-11-26 14:46:14 +01:00
|
|
|
|
exit 0 # success
|