2021-11-18 07:38:28 +01:00
|
|
|
|
<#
|
|
|
|
|
.SYNOPSIS
|
2021-11-26 14:46:14 +01:00
|
|
|
|
Say an answer to 'good night'
|
2021-11-18 07:38:28 +01:00
|
|
|
|
.DESCRIPTION
|
2021-11-24 13:36:36 +01:00
|
|
|
|
This script answers to "good night" by text-to-speech (TTS).
|
2021-11-18 07:38:28 +01:00
|
|
|
|
.EXAMPLE
|
|
|
|
|
PS> ./good-night
|
|
|
|
|
.NOTES
|
|
|
|
|
Author: Markus Fleschutz · License: CC0
|
|
|
|
|
.LINK
|
|
|
|
|
https://github.com/fleschutz/PowerShell
|
|
|
|
|
#>
|
|
|
|
|
|
2021-11-26 14:46:14 +01:00
|
|
|
|
$Answer = "Good night to you, too.", "Good night to you, my friend.", "Have a good night. Sleep well.", "Good night and sweet dreams." | Get-Random
|
|
|
|
|
|
|
|
|
|
& "$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
|