| aSP03_SpeakInt | Index |
Definition:
Parameters:
| nVolume | - | Desired volume for number to be spoken. |
| nPitch | - | Desired pitch for number to be spoken. |
| nSpeed | - | Desired speed for number to be spoken. |
| n | - | Number to be converted to speech. |
Return Value:
Description:
This routine makes a Devantech SP03 Speech Module say an arbitrary number passed as an integer. It works well with numbers from 0 to 9999. Negative numbers will be preceded by the word "minus".
The ranges for the speech parameters are given below.
| Volume | 0-7 | 7 is minimum volume |
| Pitch | 0-7 | 7 is lowest pitch |
| Speed | 0-3 | 3 is fastest speed |
Example:
#include <aSP03.tea>
aSP03_SpeakInt(0,7,3,-73);
This would make the speech module say "minus seventy-three" with maximum volume, lowest pitch, and maximum speed.
#include <aSP03.tea>
aSP03_SpeakInt(0,3,3,1776);
This would make the speech module say "seventy-hundred seventy-six" with maximum volume, medium pitch, and maximum speed.
Related: