The speechvolume statement changes the default speech volume.
Parameters
This statement has one parameter:volume – loudness level for speech synthesis, from 0 (muted) to 1.0 (full volume).
Description
This statement changes the volume level used for speech synthesis (this volume can be overriden by the speak statement. This example sets the volume to half volume.
speechvolume 0.5
To find out the current volume, use the info(“speechvolume”) function. This example switches to a whisper, then switches back to whatever volume was being used before.
local wasVolume
wasVolume = info("speechvolume")
speechvolume 0.2
...
... speak really, really quietly
...
speechvolume wasVolume
...
... speak at original volume
...
See Also
History
Version | Status | Notes |
10.0 | New | New in this version. |