mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-26 01:43:37 +01:00
Update description
This commit is contained in:
parent
fabe750544
commit
9a1f0113e0
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-date.ps1
|
||||
.DESCRIPTION
|
||||
Speaks the current date by text-to-speech (TTS).
|
||||
Speaks the current date by text-to-speech (TTS)
|
||||
.EXAMPLE
|
||||
PS> .\speak-date.ps1
|
||||
PS> ./speak-date
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-english.ps1 [<text>]
|
||||
.DESCRIPTION
|
||||
Speaks the given text with an English text-to-speech (TTS) voice.
|
||||
Speaks the given text with an English text-to-speech (TTS) voice
|
||||
.EXAMPLE
|
||||
PS> .\speak-english.ps1 "Hello World"
|
||||
PS> ./speak-english "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -4,7 +4,7 @@
|
||||
.DESCRIPTION
|
||||
Speaks the content of the given Epub file by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> .\speak-epub.ps1 C:\MyBook.epub
|
||||
PS> ./speak-epub C:\MyBook.epub
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-file.ps1 [<file>]
|
||||
.DESCRIPTION
|
||||
Speaks the content of the given text file by text-to-speech (TTS).
|
||||
Speaks the content of the given text file by text-to-speech (TTS)
|
||||
.EXAMPLE
|
||||
PS> .\speak-file.ps1 C:\MyFile.txt
|
||||
PS> ./speak-file C:\MyFile.txt
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-french.ps1 [<text>]
|
||||
.DESCRIPTION
|
||||
Speaks the given text with a French text-to-speech (TTS) voice.
|
||||
Speaks the given text with a French text-to-speech (TTS) voice
|
||||
.EXAMPLE
|
||||
PS> .\speak-french.ps1 Salut
|
||||
PS> ./speak-french Salut
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -4,7 +4,7 @@
|
||||
.DESCRIPTION
|
||||
Speaks the given text with a German text-to-speech (TTS) voice.
|
||||
.EXAMPLE
|
||||
PS> .\speak-german.ps1 Hallo
|
||||
PS> ./speak-german Hallo
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-italian.ps1 [<text>]
|
||||
.DESCRIPTION
|
||||
Speaks the given text with an Italian text-to-speech (TTS) voice.
|
||||
Speaks the given text with an Italian text-to-speech (TTS) voice
|
||||
.EXAMPLE
|
||||
PS> .\speak-italian.ps1 Ciao
|
||||
PS> ./speak-italian Ciao
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-joke.ps1
|
||||
.DESCRIPTION
|
||||
Speaks a random Chuck Norris joke by text-to-speech (TTS).
|
||||
Speaks a random Chuck Norris joke by text-to-speech (TTS)
|
||||
.EXAMPLE
|
||||
PS> .\speak-joke.ps1
|
||||
PS> ./speak-joke
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-quote.ps1
|
||||
.DESCRIPTION
|
||||
Speaks a random quote by text-to-speech (TTS).
|
||||
Speaks a random quote by text-to-speech (TTS)
|
||||
.EXAMPLE
|
||||
PS> .\speak-quote.ps1
|
||||
PS> ./speak-quote
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-spanish.ps1 [<text>]
|
||||
.DESCRIPTION
|
||||
Speaks the given text with a Spanish text-to-speech (TTS) voice.
|
||||
Speaks the given text with a Spanish text-to-speech (TTS) voice
|
||||
.EXAMPLE
|
||||
PS> .\speak-spanish.ps1 Hola
|
||||
PS> ./speak-spanish Hola
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-test.ps1
|
||||
.DESCRIPTION
|
||||
Performs a text-to-speech (TTS) test.
|
||||
Performs a text-to-speech (TTS) test
|
||||
.EXAMPLE
|
||||
PS> .\speak-test.ps1
|
||||
PS> ./speak-test
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,22 +2,22 @@
|
||||
.SYNOPSIS
|
||||
speak-text.ps1 [<text>]
|
||||
.DESCRIPTION
|
||||
Speaks the given text by text-to-speech (TTS).
|
||||
Speaks the given text by the default text-to-speech (TTS) voice
|
||||
.EXAMPLE
|
||||
PS> .\speak-text.ps1 "Hello World"
|
||||
PS> ./speak-text "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
param([string]$Text = "")
|
||||
param([string]$text = "")
|
||||
|
||||
try {
|
||||
if ($Text -eq "") { $Text = read-host "Enter the text to speak" }
|
||||
if ($text -eq "") { $text = read-host "Enter the text to speak" }
|
||||
|
||||
$Voice = new-object -ComObject SAPI.SPVoice
|
||||
$Result = $Voice.Speak($Text)
|
||||
[void]$Voice.Speak($text)
|
||||
exit 0
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
speak-time.ps1
|
||||
.DESCRIPTION
|
||||
Speaks the current time by text-to-speech (TTS).
|
||||
Speaks the current time by text-to-speech (TTS)
|
||||
.EXAMPLE
|
||||
PS> .\speak-time.ps1
|
||||
PS> ./speak-time
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
start-calibre-server.ps1 [<port>]
|
||||
.DESCRIPTION
|
||||
Starts a local Calibre server as background process (Web port number is 8099 by default).
|
||||
Starts a local Calibre server as background process (Web port number is 8099 by default)
|
||||
.EXAMPLE
|
||||
PS> .\start-calibre-server.ps1
|
||||
PS> ./start-calibre-server
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
start-ipfs-server.ps1
|
||||
.DESCRIPTION
|
||||
Starts a local IPFS server as a daemon process.
|
||||
Starts a local IPFS server as a daemon process
|
||||
.EXAMPLE
|
||||
PS> .\start-ipfs-server.ps1
|
||||
PS> ./start-ipfs-server
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
switch-branch.ps1 [<BranchName>] [<RepoDir>]
|
||||
.DESCRIPTION
|
||||
Switches to another branch in a Git repository (including submodules).
|
||||
Switches to another branch in a Git repository (including submodules)
|
||||
.EXAMPLE
|
||||
PS> .\switch-branch.ps1 main C:\MyRepo
|
||||
PS> ./switch-branch main C:\MyRepo
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
@ -1,10 +1,11 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
switch-shelly1.ps1 [<host>] [<turn-mode>] [<timer>]
|
||||
switch-shelly1.ps1 [<Host>] [<TurnMode>] [<Timer>]
|
||||
.DESCRIPTION
|
||||
Switches a Shelly1 device in the local network.
|
||||
Switches a Shelly1 device in the local network
|
||||
(Host is either a hostname or IP address, TurnMode is either 'on', 'off', or 'toggle')
|
||||
.EXAMPLE
|
||||
PS> .\switch-shelly1.ps1 192.168.100.100 toggle 10
|
||||
PS> ./switch-shelly1 192.168.100.100 toggle 10
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
@ -20,7 +21,7 @@ try {
|
||||
|
||||
$Result = Invoke-RestMethod "http://$($Host)/relay/0?turn=$($TurnMode)&timer=$($Timer)"
|
||||
|
||||
"✔️ Shelly1 device at $Host switched to $TurnMode for $Timer second(s)"
|
||||
"✔️ switched Shelly1 device at $Host to $TurnMode for $Timer sec"
|
||||
exit 0
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
@ -2,9 +2,9 @@
|
||||
.SYNOPSIS
|
||||
sync-repo.ps1 [<repo-dir>]
|
||||
.DESCRIPTION
|
||||
Synchronizes a Git repository by push & pull (including submodules).
|
||||
Synchronizes a Git repository by push & pull (including submodules)
|
||||
.EXAMPLE
|
||||
PS> .\sync-repo.ps1 C:\MyRepo
|
||||
PS> ./sync-repo C:\MyRepo
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
|
Loading…
Reference in New Issue
Block a user