| say | Index |
| Note: | The say primitive only works if you have the text-to-speech option installed in your Garcia robot. |
Overview
The say primitive allows you to specify text to be spoken by the robot from the Garcia API. Behaviors based on this primitve are immediate meaning once the speech is initiated, the next behavior in the behavior queue (if present) will be initiated.
Return Status
This is an immediate primitive. It does not execute any programs on the robot so there is no return status.
Property Inheritance
say inherits Behavior inherits Object properties.
| Properties |
| phrase speed pitch volume |
phrase (text) The phrase to be spoken. This should be no longer than 80 characters in length. If you need longer phrases, break them into smaller phrases. These phrases can be itentionally miss-spelled to gain different inflection, accents, or subtle changes in the way the words are pronounced. The text-to-speech conversion is quite good in that it automatically handles numbers and many symbols. |
speed (float) The speed for speaking the phrase. Values have a range of 0.0 to 1.0 and will be clamped to this range. 0.0 is the slowest and 1.0 is the fastest speed for saying the phrase. |
pitch (float) The pitch for speaking the phrase. Values have a range of 0.0 to 1.0 and will be clamped to this range. 0.0 is the lowest and 1.0 is the highest pitch for saying the phrase. |
volume (float) The volume for speaking the phrase. Values have a range of 0.0 to 1.0 and will be clamped to this range. 0.0 is the quietest and 1.0 is the loudest volume for saying the phrase. |