mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-19 00:46:30 +02:00
Update the manual pages
This commit is contained in:
@@ -25,7 +25,7 @@ PS> ./speak-text.ps1 [[-text] <String>] [<CommonParameters>]
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./speak-text "Hello World"
|
||||
PS> ./speak-text.ps1 Hi
|
||||
|
||||
```
|
||||
|
||||
@@ -48,7 +48,7 @@ Script Content
|
||||
.PARAMETER text
|
||||
Specifies the text to read
|
||||
.EXAMPLE
|
||||
PS> ./speak-text "Hello World"
|
||||
PS> ./speak-text.ps1 Hi
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -58,7 +58,7 @@ Script Content
|
||||
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
|
||||
[void]$Voice.Speak($text)
|
||||
@@ -69,4 +69,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of speak-text.ps1 as of 07/29/2023 10:33:49)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of speak-text.ps1 as of 08/06/2023 11:42:32)*
|
||||
|
Reference in New Issue
Block a user