volume

fun volume(state: SpeechVolume)

The method will set the volume to the specified level from SpeechVolume. Volume is specified as a float ranging from 0 to 1 where 0 is silence, and 1 is the maximum volume (the default behavior).

Throws an IllegalArgumentException if the SpeechVolume.level is not in 0..1 range.

Parameters

state

volume level.