mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Small improvement to the way the powershell code lines render in win_say module (html rendering only, still does not break lines properly in ansible-doc) (#25624)
This commit is contained in:
@@ -72,11 +72,17 @@ options:
|
|||||||
author: "Jon Hawkesworth (@jhawkesworth)"
|
author: "Jon Hawkesworth (@jhawkesworth)"
|
||||||
notes:
|
notes:
|
||||||
- Needs speakers or headphones to do anything useful.
|
- Needs speakers or headphones to do anything useful.
|
||||||
- To find which voices are installed, run the following powershell
|
- |
|
||||||
Add-Type -AssemblyName System.Speech
|
To find which voices are installed, run the following powershell commands.
|
||||||
$speech = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer
|
|
||||||
$speech.GetInstalledVoices() | ForEach-Object { $_.VoiceInfo }
|
Add-Type -AssemblyName System.Speech
|
||||||
$speech.Dispose()
|
|
||||||
|
$speech = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer
|
||||||
|
|
||||||
|
$speech.GetInstalledVoices() | ForEach-Object { $_.VoiceInfo }
|
||||||
|
|
||||||
|
$speech.Dispose()
|
||||||
|
|
||||||
- Speech can be surprisingly slow, so its best to keep message text short.
|
- Speech can be surprisingly slow, so its best to keep message text short.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user