Revision 482adb6d server/src/MiddlewareROS.cpp
| server/src/MiddlewareROS.cpp | ||
|---|---|---|
| 118 | 118 |
} |
| 119 | 119 |
|
| 120 | 120 |
// call a tts system to convert a string to an utterance |
| 121 |
boost::shared_ptr<Utterance> MiddlewareROS::tts_call(string text) {
|
|
| 122 |
boost::shared_ptr<Utterance> utterance(new Utterance());
|
|
| 121 |
std::shared_ptr<Utterance> MiddlewareROS::tts_call(string text) {
|
|
| 122 |
std::shared_ptr<Utterance> utterance(new Utterance());
|
|
| 123 | 123 |
|
| 124 | 124 |
// double tts_timeout = 1.0; //seconds. DO NOT CHANGE THIS! |
| 125 | 125 |
if (tts_ac == NULL) {
|
| ... | ... | |
| 143 | 143 |
else {
|
| 144 | 144 |
// done, return utterance ptr |
| 145 | 145 |
ttsResultConstPtr tts_res = tts_ac->getResult(); |
| 146 |
boost::shared_ptr<Utterance> utterance(new UtteranceROS(tts_res));
|
|
| 146 |
std::shared_ptr<Utterance> utterance(new UtteranceROS(tts_res));
|
|
| 147 | 147 |
printf("> done. got utterance (text=%s)\n", utterance->get_text().c_str());
|
| 148 | 148 |
return utterance; |
| 149 | 149 |
} |
Also available in: Unified diff