Revision 888a909b server/include/RSB/SpeechCallbackWrapper.h
server/include/RSB/SpeechCallbackWrapper.h | ||
---|---|---|
34 | 34 |
public: |
35 | 35 |
SpeechCallbackWrapper(Middleware *mw) : CallbackWrapper(mw){} |
36 | 36 |
|
37 |
void call(const std::string&, boost::shared_ptr<std::string> _text){
|
|
37 |
void call(const std::string&, std::shared_ptr<std::string> _text){
|
|
38 | 38 |
//send to application |
39 | 39 |
std::string text = *_text.get(); |
40 | 40 |
//<voice effect=\"Rate(durScale:1.5) + TractScaler(durScale:1.1)\">" + |
41 | 41 |
|
42 | 42 |
text = "<maryxml version=\"0.4\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://mary.dfki.de/2002/MaryXML\" xml:lang=\"en_US\">" + |
43 |
text +
|
|
43 |
text + |
|
44 | 44 |
"</maryxml>"; |
45 | 45 |
mw->speak_callback(text); |
46 | 46 |
} |
Also available in: Unified diff