@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
31 lines • 844 B
JavaScript
;
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