SP03 Text to Speech Synthesizer
SP03 Class Reference
Example: More...
#include <SP03.h>
Public Member Functions | |
SP03 (PinName sda, PinName scl) | |
Construct. | |
void | speak (const char *message) |
Set the speed of the speech. | |
void | setSpeed (char speed) |
Set the speed of the speech. | |
void | setVolume (char volume) |
Set the volume of the speech. | |
bool | isSpeaking () |
Check if the SP03 is currently talking. |
Detailed Description
Example:
#include "mbed.h" #include "SP03.h" DigitalOut myled(LED1); SP03 sp03(p28, p27); int main() { sp03.setSpeed(SP03::SPEED_NORMAL); sp03.setVolume(SP03::VOLUME_MAX); while(1) { if (!sp03.isSpeaking()) { myled = 1; sp03.speak("Hello CQ 1 2 2 3 4 6 76 7 9 9 08 8"); } else myled = 0; } }
Definition at line 30 of file SP03.h.
Constructor & Destructor Documentation
SP03 | ( | PinName | sda, |
PinName | scl | ||
) |
Member Function Documentation
bool isSpeaking | ( | ) |
void setSpeed | ( | char | speed ) |
void setVolume | ( | char | volume ) |
Generated on Fri Jul 15 2022 05:14:17 by 1.7.2