Velocity API: voice.speak

Version 3

    Return To Index

    Voice.speak()

    Overview

    Uses the engine to speak a sentence or group of words to a user.

    Added in version 1.2.104

    Use Cases

    • You want the device to speak to the user.

    Format

     

    Voice.speak(phrase);
    ParameterDescriptionTypeRequired
    phraseSentence or group of words that must be read to the task worker.StringRequired

     

    Example 1

    /* Speaking text from the screen back to the task worker. 
    */
      
    var text = Screen.getText(12, 5, 20);
    Voice.speak(text);

    Example 2

    /* Speaking text from the device back to the task worker. 
    */
      
    Voice.speak('Hello World');