speechvolume
speechvolume
VOLUME

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

- info("defaultvoice") -- returns the current default system voice.
- info("speaking") -- returns true if talking is occuring right now.
- info("speechrate") -- returns the current Panorama speech rate (words per minute).
- info("speechvoice") -- returns the current default system voice.
- info("speechvolume") -- returns the current Panorama speech volume.
- info("voices") -- returns a list of available speech synthesis voices on this system.
- pausespeaking -- pauses any talking that is currently happening.
- resumespeaking -- resumes speaking after a pause.
- speak -- speaks a word or phrase.
- speakaddress -- buffers up a street address to be spoken later by the speaknow statement.
- speakcharacters -- buffers up one or more characters to be spoken later by the speaknow statement.
- speakcharactersslowly -- buffers up one or more characters to be spoken later by the speaknow statement. Instead of speaking words, each individual character is spoken separately and slowly.
- speakdate -- buffers up a date to be spoken later by the speaknow statement.
- speakdigitpairs -- buffers up one or more digit pairs to be spoken later by the speaknow statement.
- speakdigits -- buffers up one or more digits to be spoken later by the speaknow statement.
- speakdollars -- buffers up a dollar amount to be spoken later by the speaknow statement.
- speakdollarsandcents -- buffers up a dollar and cents amount to be spoken later by the speaknow statement.
- speakletters -- buffers up one or more characters to be spoken later by the speaknow statement. Letters will be spoken individually, as upper or lower case. Numbers will be spoken as individual digits.
- speaknow -- speaks any buffered speech.
- speakphonenumber -- buffers up a phone number to be spoken later by the speaknow statement.
- speakscript -- speaks a speech synthesis script created in the Database Options dialog.
- speakstate -- buffers up a US State to be spoken later by the speaknow statement.
- speakthisrecord -- speaks the current record in the database (using the default speech script).
- speakwords -- buffers up one or more words to be spoken later by the speaknow statement.
- speechrate -- changes the speech rate (words per minute).
- speechscripts -- returns a lists of speech scripts in a database.
- speechvoice -- changes the default speech voice.
- stopspeaking -- stops any talking that is currently happening.
- voiceinfo( -- returns information about a speech synthesis voice.

History

Version | Status | Notes
10.0 | New | New in this version.