Action
Read Selection - Select Voice
Use text-to-speech to read the current selection (or full text of draft if no selection is present) - prompt first to select voice to use from available US English voices.
Steps
-
script
let voices = speech.allVoices.filter(v => v.language == 'en-US') let p = new Prompt() p.title = "Select Voice" for (let ix = 0; ix < voices.length; ix++) { p.addButton(voices[ix].name, ix) } if (p.show()) { let v = voices[p.buttonPressed] speech.speak(draft.processTemplate("[[selection]]"), { "voice": v, "rate": "normal", "autoStart": true, "autoClose": true }) }
Options
-
After Success Nothing Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.