|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ridgesoft.robotics.effectors.DevantechSP03
public class DevantechSP03
Class to interface with the Devantech SP03 speech synthesizer.
Constructor Summary | |
---|---|
DevantechSP03(I2CMaster i2cMaster)
Constructs a DevantechSP03 object. |
Method Summary | |
---|---|
int |
getSoftwareRevision()
Gets the software revsion of the device's software. |
boolean |
isBusy()
Returns true if the SP03 is busy with the previous command. |
void |
speak(int phraseNumber)
Speaks a predefined phrase. |
void |
speak(int volume,
int speed,
int pitch,
String text)
Speaks a text message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
---|
public DevantechSP03(I2CMaster i2cMaster)
i2cMaster
- I2C object for the bus the range finder connects toMethod Detail |
---|
public int getSoftwareRevision() throws IOException
IOException
public boolean isBusy() throws IOException
IOException
public void speak(int phraseNumber) throws IOException
phraseNumber
- number of a phrase previously stored in the SP03 (1 to 30)
IOException
public void speak(int volume, int speed, int pitch, String text) throws IOException
volume
- 0 = loudest, 7 = quietestspeed
- see SP03 documentation, 5 is a good starting pointpitch
- see SP03 documentation, 3 is a good starting pointtext
- Message to speak, maximum 81 ASCII characters
IOException
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |