Revision 482adb6d server/src/MiddlewareRSB.cpp

View differences:

server/src/MiddlewareRSB.cpp
160 160
}
161 161

  
162 162
// call a tts system to convert a string to an utterance
163
boost::shared_ptr<Utterance> MiddlewareRSB::tts_call(string text) {
163
std::shared_ptr<Utterance> MiddlewareRSB::tts_call(string text) {
164 164
	double tts_timeout = 1.0; // seconds. DO NOT CHANGE THIS!
165 165

  
166 166
	// build request
167
	boost::shared_ptr<std::string> request(new string(text));
167
	std::shared_ptr<std::string> request(new string(text));
168 168

  
169 169
	// try to fetch it asynchronously:
170 170
	try {
......
172 172
		   tts_server->callAsync<rst::audition::Utterance>("create_utterance", request);
173 173

  
174 174
		// try to fetch the result
175
		boost::shared_ptr<rst::audition::Utterance> utterance_ptr = future_ptr.get(tts_timeout);
175
		std::shared_ptr<rst::audition::Utterance> utterance_ptr = future_ptr.get(tts_timeout);
176 176

  
177 177
		// done, return utterance ptr
178
		boost::shared_ptr<Utterance> utterance(new UtteranceRSB(*(utterance_ptr.get())));
178
		std::shared_ptr<Utterance> utterance(new UtteranceRSB(*(utterance_ptr.get())));
179 179
		printf("> done. got utterance (text=%s)\n", utterance->get_text().c_str());
180 180
		return utterance;
181 181
	}
......
187 187
	}
188 188

  
189 189
	printf("> failed... got no utterance\n");
190
	boost::shared_ptr<Utterance> utterance(new Utterance());
190
	std::shared_ptr<Utterance> utterance(new Utterance());
191 191
	return utterance;
192 192
}
193 193

  

Also available in: Unified diff