2021-11-18 07:31:23 +01:00
|
|
|
|
<#
|
|
|
|
|
.SYNOPSIS
|
2021-12-01 09:57:36 +01:00
|
|
|
|
Answers to 'good morning'
|
2021-11-18 07:31:23 +01:00
|
|
|
|
.DESCRIPTION
|
2021-12-01 09:57:36 +01:00
|
|
|
|
This script says a reply to "good morning" by text-to-speech (TTS).
|
2021-11-18 07:31:23 +01:00
|
|
|
|
.EXAMPLE
|
|
|
|
|
PS> ./good-morning
|
|
|
|
|
.NOTES
|
|
|
|
|
Author: Markus Fleschutz · License: CC0
|
|
|
|
|
.LINK
|
|
|
|
|
https://github.com/fleschutz/PowerShell
|
|
|
|
|
#>
|
|
|
|
|
|
2021-12-01 09:57:36 +01:00
|
|
|
|
$Reply = "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
|
|
|
|
|
2021-12-01 09:57:36 +01:00
|
|
|
|
"$Reply"
|
|
|
|
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
2021-11-26 14:46:14 +01:00
|
|
|
|
exit 0 # success
|