Revision 888a909b server/src/Middleware.cpp
server/src/Middleware.cpp | ||
---|---|---|
44 | 44 |
printf("> %s(%s) called\n", __FUNCTION__,text.c_str()); |
45 | 45 |
|
46 | 46 |
//call a tts system to convert the text to an utterance: |
47 |
boost::shared_ptr<Utterance> utterance = tts_call(text);
|
|
47 |
std::shared_ptr<Utterance> utterance = tts_call(text);
|
|
48 | 48 |
|
49 | 49 |
//and then process it |
50 | 50 |
utterance_callback(utterance); |
51 | 51 |
} |
52 | 52 |
|
53 |
void Middleware::utterance_callback(boost::shared_ptr<Utterance> utterance){
|
|
53 |
void Middleware::utterance_callback(std::shared_ptr<Utterance> utterance){
|
|
54 | 54 |
printf("> %s(text=%s) called\n", __FUNCTION__,utterance->get_text().c_str()); |
55 | 55 |
|
56 | 56 |
//can we speak this now? |
... | ... | |
82 | 82 |
arbiter->set_current_emotion(emotion_state); |
83 | 83 |
} |
84 | 84 |
|
85 |
void Middleware::animation_callback(boost::shared_ptr<Animation> ani){
|
|
85 |
void Middleware::animation_callback(std::shared_ptr<Animation> ani){
|
|
86 | 86 |
arbiter->play_animation(ani); |
87 | 87 |
} |
Also available in: Unified diff