UNPKG

@joshfarrant/shortcuts-js

Version:
31 lines 844 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @action Speak Text * @section Content Types > Documents > Speak Text * @icon Documents * * Speaks the inputted text aloud. * * ```js * speakText({ * language: 'Default', * pitch: 1.0, * rate: 0, * voice: 'Default', * waitUntilFinished: true, * }); * ``` */ const speakText = ({ language = 'Default', pitch = 1.0, rate = 0.5, voice = 'Default', waitUntilFinished = true, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.speaktext', WFWorkflowActionParameters: { WFSpeakTextLanguage: language, WFSpeakTextPitch: pitch, WFSpeakTextRate: rate, WFSpeakTextVoice: voice, WFSpeakTextWait: waitUntilFinished, }, }); exports.default = speakText; //# sourceMappingURL=speakText.js.map