Revision 2e526a15 server/src/Middleware.cpp

View differences:

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
    Utterance utterance = tts_call(text);
47
    boost::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(Utterance utterance){
54
    printf("> %s(text=%s) called\n", __FUNCTION__,utterance.get_text().c_str());
53
void Middleware::utterance_callback(boost::shared_ptr<Utterance> utterance){
54
    printf("> %s(text=%s) called\n", __FUNCTION__,utterance->get_text().c_str());
55 55

  
56 56
    //can we speak this now?
57 57
    if (arbiter->speak_active()){

Also available in: Unified diff