26#include <Ice/ObjectAdapter.h>
51 "Counter for text updates");
57 "Counter for state updates");
63 "Text recognized by the SpeechRecogntion");
76 case eStartedSpeaking:
77 return "StartedSpeaking";
78 case eFinishedSpeaking:
79 return "FinishedSpeaking";
82 throw LocalException(
"Unsupported TextToSpeechStateType: ") << state;
89 std::unique_lock lock(dataMutex);
99 std::unique_lock lock(dataMutex);
108 const Ice::StringSeq& params,
111 std::unique_lock lock(dataMutex);
130 const Ice::StringSeq&,
Property< PropertyType > getProperty(const std::string &name)
The JSONObject class is used to represent and (de)serialize JSON objects.
std::string getString(const ::std::string &key) const override
void fromString(const ::std::string &jsonString, const ::Ice::Current &=Ice::emptyCurrent) override
Ice::ObjectAdapterPtr getObjectAdapter() const
Returns object's Ice adapter.
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
IceManagerPtr getIceManager() const
Returns the IceManager.
void offerChannel(std::string channelName, std::string description)
Offer a channel.
void updateChannel(const std::string &channelName, const std::set< std::string > &updatedDatafields=std::set< std::string >())
Update all conditions for a channel.
void offerDataFieldWithDefault(std::string channelName, std::string datafieldName, const Variant &defaultValue, std::string description)
Offer a datafield with default value.
void setDataField(const std::string &channelName, const std::string &datafieldName, const Variant &value, bool triggerFilterUpdate=true)
set datafield with datafieldName and in channel channelName
void reportText(const std::string &, const Ice::Current &) override
SpeechListenerImpl(SpeechObserver *obs)
void reportTextWithParams(const std::string &, const Ice::StringSeq &, const Ice::Current &) override
void onConnectObserver() override
Framework hook.
virtual void reportTextWithParams(const std::string &text, const Ice::StringSeq ¶ms, const Ice::Current &=Ice::emptyCurrent) override
virtual void reportText(const std::string &text, const Ice::Current &=Ice::emptyCurrent) override
friend class SpeechListenerImpl
static std::string SpeechStateToString(TextToSpeechStateType state)
void onInitObserver() override
Framework hook.
virtual void reportState(armarx::TextToSpeechStateType state, const Ice::Current &=Ice::emptyCurrent) override
The Variant class is described here: Variants.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
This file offers overloads of toIce() and fromIce() functions for STL container types.