Voice.setVolume()

Overview

Changes text-to-speech volume for Speakeasy.

Added in version 2.1.1

Remarks

This script must be run before Voice.speak().

This does not modify the system volume; it only changes the output volume from text-to-speech. Setting the value to anything less than 1 will default to 1; setting the value to anything higher than 100 will default to 100.

Format

Voice.setVolume(volume);

Parameter Description Type Required
volume A value from 1-100 to set the text-to-speech volume. Integer Required

Example

Copy
/* Sets the volume to 100%.
*/
 
Voice.setVolume(100);