| SP03 | Index |
value
setting
filename
This console command has three forms. By itself, this command displays the current volume, pitch, and speed settings. When followed by a keyword (volume, pitch, speed) and value, this command will change one of the settings. Volume can range from 0 to 7 with 0 being loudest. Pitch can range from 0 to 7 with 0 being highest. Speed can range from 0 to 3 with 0 being slowest. The current volume, pitch, speed settings will be applied to arbitrary text spoken with the say command. Stored phrases will use their own settings.
When followed by the keyword load and a filename in quotes, this command will store phrases into the module. Phrases are stored in a .chat file. These files must be located in the aUser subdirectory in the brainstem folder. A .chat file is a text file with up to 30 lines of text, one line per stored phrase. Each line must have 3 numbers followed by a text string in quotes. (Creative spellings may be needed to get a desired pronunciation.) The numbers are the volume, pitch, and speed settings for the phrase. Each phrase can have different values for these settings. The numbers and text string are separated by spaces. A sample .chat file is shown below:
Phrases can only be loaded when the Console runs in direct SP03 mode. SP03 mode is selected by adding two lines of text to the console.config file:
These two lines may be commented out by preceding each with a #. This will return the Console to BrainStem mode. Changes to the console.config file are applied when the Console program is restarted.
Example:
SP03
This would display the current volume, pitch, and speed settings along with version info for the SP03 module and speech processor chip.
SP03 volume 4
This would set the volume to 4
SP03 load "vocab"
This would load the phrases stored in "vocab.chat" into the SP03 module.
Related: