From e245e8b658b010812470af87d4f2daa21133f42e Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 1 Nov 2021 18:05:05 +0100 Subject: [PATCH] Add several scripts --- Scripts/play-bee-sound.ps1 | 10 +++------- Scripts/play-cat-sound.ps1 | 15 +++++++++++++++ Scripts/play-cow-sound.ps1 | 15 +++++++++++++++ Scripts/play-dog-sound.ps1 | 15 +++++++++++++++ Scripts/play-donkey-sound.ps1 | 15 +++++++++++++++ Scripts/play-elephant-sound.ps1 | 15 +++++++++++++++ Scripts/play-elk-sound.ps1 | 15 +++++++++++++++ Scripts/play-frog-sound.ps1 | 15 +++++++++++++++ Scripts/play-goat-sound.ps1 | 15 +++++++++++++++ Scripts/play-gorilla-sound.ps1 | 15 +++++++++++++++ Scripts/play-horse-sound.ps1 | 15 +++++++++++++++ Scripts/play-lion-sound.ps1 | 15 +++++++++++++++ Scripts/play-parrot-sound.ps1 | 15 +++++++++++++++ Scripts/play-pig-sound.ps1 | 15 +++++++++++++++ Scripts/play-rattlesnake-sound.ps1 | 15 +++++++++++++++ Scripts/play-vulture-sound.ps1 | 15 +++++++++++++++ Scripts/play-wulf-sound.ps1 | 15 +++++++++++++++ 17 files changed, 243 insertions(+), 7 deletions(-) create mode 100644 Scripts/play-cat-sound.ps1 create mode 100644 Scripts/play-cow-sound.ps1 create mode 100644 Scripts/play-dog-sound.ps1 create mode 100644 Scripts/play-donkey-sound.ps1 create mode 100644 Scripts/play-elephant-sound.ps1 create mode 100644 Scripts/play-elk-sound.ps1 create mode 100644 Scripts/play-frog-sound.ps1 create mode 100644 Scripts/play-goat-sound.ps1 create mode 100644 Scripts/play-gorilla-sound.ps1 create mode 100644 Scripts/play-horse-sound.ps1 create mode 100644 Scripts/play-lion-sound.ps1 create mode 100644 Scripts/play-parrot-sound.ps1 create mode 100644 Scripts/play-pig-sound.ps1 create mode 100644 Scripts/play-rattlesnake-sound.ps1 create mode 100644 Scripts/play-vulture-sound.ps1 create mode 100644 Scripts/play-wulf-sound.ps1 diff --git a/Scripts/play-bee-sound.ps1 b/Scripts/play-bee-sound.ps1 index f8550a0c..030df401 100644 --- a/Scripts/play-bee-sound.ps1 +++ b/Scripts/play-bee-sound.ps1 @@ -4,16 +4,12 @@ .DESCRIPTION This script plays a bee sound. .EXAMPLE - PS> ./open-bee-sound + PS> ./play-bee-sound .NOTES Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell #> -try { - & "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/Data/Sounds/bee.mp3" - exit 0 # success -} catch { - "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))" -} +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/bee.mp3" +exit 0 # success diff --git a/Scripts/play-cat-sound.ps1 b/Scripts/play-cat-sound.ps1 new file mode 100644 index 00000000..aa512d88 --- /dev/null +++ b/Scripts/play-cat-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a cat sound +.DESCRIPTION + This script plays a cat sound. +.EXAMPLE + PS> ./play-cat-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/cat.mp3" +exit 0 # success diff --git a/Scripts/play-cow-sound.ps1 b/Scripts/play-cow-sound.ps1 new file mode 100644 index 00000000..85567ef5 --- /dev/null +++ b/Scripts/play-cow-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a cow sound +.DESCRIPTION + This script plays a cow sound. +.EXAMPLE + PS> ./play-cow-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/cow.mp3" +exit 0 # success diff --git a/Scripts/play-dog-sound.ps1 b/Scripts/play-dog-sound.ps1 new file mode 100644 index 00000000..44c697e7 --- /dev/null +++ b/Scripts/play-dog-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a dog sound +.DESCRIPTION + This script plays a dog sound. +.EXAMPLE + PS> ./play-dog-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/dog.mp3" +exit 0 # success diff --git a/Scripts/play-donkey-sound.ps1 b/Scripts/play-donkey-sound.ps1 new file mode 100644 index 00000000..aecf4e99 --- /dev/null +++ b/Scripts/play-donkey-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a donkey sound +.DESCRIPTION + This script plays a donkey sound. +.EXAMPLE + PS> ./play-donkey-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/donkey.mp3" +exit 0 # success diff --git a/Scripts/play-elephant-sound.ps1 b/Scripts/play-elephant-sound.ps1 new file mode 100644 index 00000000..1a06da07 --- /dev/null +++ b/Scripts/play-elephant-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a elephant sound +.DESCRIPTION + This script plays a elephant sound. +.EXAMPLE + PS> ./play-elephant-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/elephant.mp3" +exit 0 # success diff --git a/Scripts/play-elk-sound.ps1 b/Scripts/play-elk-sound.ps1 new file mode 100644 index 00000000..642a200a --- /dev/null +++ b/Scripts/play-elk-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays an elk sound +.DESCRIPTION + This script plays an elk sound. +.EXAMPLE + PS> ./play-elk-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/elk.mp3" +exit 0 # success diff --git a/Scripts/play-frog-sound.ps1 b/Scripts/play-frog-sound.ps1 new file mode 100644 index 00000000..d6edabe0 --- /dev/null +++ b/Scripts/play-frog-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a frog sound +.DESCRIPTION + This script plays a frog sound. +.EXAMPLE + PS> ./play-frog-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/frog.mp3" +exit 0 # success diff --git a/Scripts/play-goat-sound.ps1 b/Scripts/play-goat-sound.ps1 new file mode 100644 index 00000000..564f9614 --- /dev/null +++ b/Scripts/play-goat-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a goat sound +.DESCRIPTION + This script plays a goat sound. +.EXAMPLE + PS> ./play-goat-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/goat.mp3" +exit 0 # success diff --git a/Scripts/play-gorilla-sound.ps1 b/Scripts/play-gorilla-sound.ps1 new file mode 100644 index 00000000..d8342356 --- /dev/null +++ b/Scripts/play-gorilla-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a gorilla sound +.DESCRIPTION + This script plays a gorilla sound. +.EXAMPLE + PS> ./play-gorilla-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/gorilla.mp3" +exit 0 # success diff --git a/Scripts/play-horse-sound.ps1 b/Scripts/play-horse-sound.ps1 new file mode 100644 index 00000000..5cca930e --- /dev/null +++ b/Scripts/play-horse-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a horse sound +.DESCRIPTION + This script plays a horse sound. +.EXAMPLE + PS> ./play-horse-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/horse.mp3" +exit 0 # success diff --git a/Scripts/play-lion-sound.ps1 b/Scripts/play-lion-sound.ps1 new file mode 100644 index 00000000..7d1d536c --- /dev/null +++ b/Scripts/play-lion-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a lion sound +.DESCRIPTION + This script plays a lion sound. +.EXAMPLE + PS> ./play-lion-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/lion.mp3" +exit 0 # success diff --git a/Scripts/play-parrot-sound.ps1 b/Scripts/play-parrot-sound.ps1 new file mode 100644 index 00000000..7502de35 --- /dev/null +++ b/Scripts/play-parrot-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a parrot sound +.DESCRIPTION + This script plays a parrot sound. +.EXAMPLE + PS> ./play-parrot-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/parrot.mp3" +exit 0 # success diff --git a/Scripts/play-pig-sound.ps1 b/Scripts/play-pig-sound.ps1 new file mode 100644 index 00000000..066ac186 --- /dev/null +++ b/Scripts/play-pig-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a pig sound +.DESCRIPTION + This script plays a pig sound. +.EXAMPLE + PS> ./play-pig-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/pig.mp3" +exit 0 # success diff --git a/Scripts/play-rattlesnake-sound.ps1 b/Scripts/play-rattlesnake-sound.ps1 new file mode 100644 index 00000000..03a86ecb --- /dev/null +++ b/Scripts/play-rattlesnake-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a rattlesnake sound +.DESCRIPTION + This script plays a rattlesnake sound. +.EXAMPLE + PS> ./play-rattlesnake-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/rattlesnake.mp3" +exit 0 # success diff --git a/Scripts/play-vulture-sound.ps1 b/Scripts/play-vulture-sound.ps1 new file mode 100644 index 00000000..8b61d5e9 --- /dev/null +++ b/Scripts/play-vulture-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a vulture sound +.DESCRIPTION + This script plays a vulture sound. +.EXAMPLE + PS> ./play-vulture-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/vulture.mp3" +exit 0 # success diff --git a/Scripts/play-wulf-sound.ps1 b/Scripts/play-wulf-sound.ps1 new file mode 100644 index 00000000..181de9ef --- /dev/null +++ b/Scripts/play-wulf-sound.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Plays a wulf sound +.DESCRIPTION + This script plays a wulf sound. +.EXAMPLE + PS> ./play-wulf-sound +.NOTES + Author: Markus Fleschutz · License: CC0 +.LINK + https://github.com/fleschutz/PowerShell +#> + +& "$PSScriptRoot/play-mp3.ps1" "$PSScriptRoot/../Data/Sounds/wulf.mp3" +exit 0 # success