Velocity API: voice.getdefaultproperties

Version 1

    Return To Index




    Allows for runtime configuration of Text-to-Speech. Properties can be changed, added or removed before calling Voice.speak().

    Added in version 1.2.104

    Use Cases

    • You want the device to speak text back to the task worker.


    This API is not fully implemented so adding properties to the dictionary have no real affect to the outcome of calling Voice.speak().



    var props = Voice.getDefaultProperties();
    PropertyDefault ValuePossible valuesDescription
    speechRate100A value between 0 and 400 where 100 represents normal talking speed.Controls how fast text should be read back to the task worker.


    Example 1

    /* changing a default value. 
    var props = Voice.getDefaultProperties();
    props['speechRate'] = 150;