revSetSpeechPitch | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | speech library | ||||||
Summary | Sets the pitch (whether the voice is high or low) to be used with text to speech. | ||||||
Introduced | 2.0 | ||||||
OS | mac, windows | ||||||
Platforms | desktop, server | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Glossary: LiveCode custom library, command, Standalone Application Settings, custom function, text to speech, standalone application, execute Command: revSetSpeechSpeed, revSpeak Function: result Library: Speech library Control Structure: function | ||||||
Description | Use the revSetSpeechPitch command to change the way text to speech|speech sounds. The greater the pitchLevel, the higher-pitched the computer is when speaking text with the revSpeak command. Use a greater pitchLevel for a treble voice and a lower pitchLevel for a bass voice. The pitchLevel is logarithmically related to the voice frequency: the range 30 to 127 corresponds approximately to the range from 50Hz to 12,000Hz. If you need to convert from Hertz (cycles per second) to the pitchLevel numbers used with this command, use the following custom function:
The pitch specified by the revSetSpeechPitch command is used for all speeches following the command during the current session. If the computer is already speaking when you execute the command, the new pitch affects the current speech.
| ||||||
Tags | multimedia |