Revision 482adb6d server/src/Middleware.cpp
server/src/Middleware.cpp | ||
---|---|---|
43 | 43 |
printf("> %s(%s) called\n", __FUNCTION__, text.c_str()); |
44 | 44 |
|
45 | 45 |
// call a tts system to convert the text to an utterance: |
46 |
boost::shared_ptr<Utterance> utterance = tts_call(text);
|
|
46 |
std::shared_ptr<Utterance> utterance = tts_call(text);
|
|
47 | 47 |
|
48 | 48 |
// and then process it |
49 | 49 |
utterance_callback(utterance); |
50 | 50 |
} |
51 | 51 |
|
52 |
void Middleware::utterance_callback(boost::shared_ptr<Utterance> utterance) {
|
|
52 |
void Middleware::utterance_callback(std::shared_ptr<Utterance> utterance) {
|
|
53 | 53 |
printf("> %s(text=%s) called\n", __FUNCTION__, utterance->get_text().c_str()); |
54 | 54 |
|
55 | 55 |
// 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