This skill should be used when the user asks to "say" something out loud, e.g. "say hello", "say all done", "say the task is complete". Speaks the message through the system speakers using Windows TTS. Do NOT trigger for figurative uses like "say it differently" or "say what you mean".
When the user asks you to "say" something, speak it aloud using Windows built-in text-to-speech.
Before embedding the message into the command, replace any single quotes (') in the message with two single quotes ('') to prevent PowerShell string injection.
Run the following PowerShell command, replacing the message text:
powershell -c "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('your message here')"
User: "say all done"
Run:
powershell -c "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('all done')"
User: "say it's done"
Escape the apostrophe first (it's → it''s), then run:
powershell -c "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('it''s done')"