.. _community.windows.win_say_module:
*************************
community.windows.win_say
*************************
**Text to speech module for Windows to speak messages and optionally play sounds**
.. contents::
:local:
:depth: 1
Synopsis
--------
- Uses .NET libraries to convert text to speech and optionally play .wav sounds. Audio Service needs to be running and some kind of speakers or headphones need to be attached to the windows target(s) for the speech to be audible.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
end_sound_path
path
|
|
Full path to a .wav file containing a sound to play after the text has been spoken.
Useful on conference calls to alert other speakers that ansible has finished speaking.
|
msg
string
|
|
The text to be spoken.
Use either msg or msg_file .
Optional so that you can use this module just to play sounds.
|
msg_file
path
|
|
Full path to a windows format text file containing the text to be spoken.
Use either msg or msg_file .
Optional so that you can use this module just to play sounds.
|
speech_speed
integer
|
Default:
0
|
How fast or slow to speak the text.
Must be an integer value in the range -10 to 10.
-10 is slowest, 10 is fastest.
|
start_sound_path
path
|
|
Full path to a .wav file containing a sound to play before the text is spoken.
Useful on conference calls to alert other speakers that ansible has something to say.
|
voice
string
|
|
Which voice to use. See notes for how to discover installed voices.
If the requested voice is not available the default voice will be used. Example voice names from Windows 10 are Microsoft Zira Desktop and Microsoft Hazel Desktop .
|