100 return ReturnValue::return_code::return_value_error_method_failed;
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
virtual yarp::dev::ReturnValue getVoice(std::string &voice) override
Gets the current voice set for speech synthesis.
virtual yarp::dev::ReturnValue setPitch(const double pitch) override
Sets the pitch for speech synthesis.
virtual yarp::dev::ReturnValue getPitch(double &voice) override
Gets the current pitch set for speech synthesis.
bool close() override
Close the DeviceDriver.
virtual ~FakeSpeechSynthesizer()
virtual yarp::dev::ReturnValue getLanguage(std::string &language) override
Gets the current language set for speech synthesis.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
virtual yarp::dev::ReturnValue synthesize(const std::string &text, yarp::sig::Sound &sound) override
Performs the speech synthesis.
virtual yarp::dev::ReturnValue setLanguage(const std::string &language) override
Sets the language for speech synthesis.
virtual yarp::dev::ReturnValue getSpeed(double &voice) override
Gets the current voice speed.
virtual yarp::dev::ReturnValue setSpeed(const double speed) override
Sets the voice speed for speech synthesis.
virtual yarp::dev::ReturnValue setVoice(const std::string &voice) override
Sets the voice set for speech synthesis.
A mini-server for performing network communication in the background.
A base class for nested structures that can be searched.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
void setFrequency(int freq)
Set the frequency of the sound (i.e.
void resize(size_t samples, size_t channels=1)
Set the sound size.
#define yCInfo(component,...)
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.