6#ifndef YARP_DEV_SPEECHSYNTH_NWS_YARP_H
7#define YARP_DEV_SPEECHSYNTH_NWS_YARP_H
102 std::unique_ptr<SpeechSynthesizer_CallbackHelper> callback_impl;
106 bool detach()
override;
120 bool close()
override;
virtual return_set_pitch set_pitch(double pitch) override
virtual return_get_pitch get_pitch() override
virtual return_set_language set_language(const std::string &language) override
virtual return_get_speed get_speed() override
virtual return_get_voice get_voice() override
virtual return_get_language get_language() override
virtual return_set_speed set_speed(double speed) override
virtual return_set_voice set_voice(const std::string &language) override
void setOutputPort(yarp::os::Port *port)
void setInterfaces(yarp::dev::ISpeechSynthesizer *iser)
virtual return_synthesize synthesize(const std::string &text) override
yarp::os::Port * m_output_port
SpeechSynthesizer_CallbackHelper()=delete
void onRead(yarp::os::Bottle &b) override
Callback method.
virtual ~SpeechSynthesizer_CallbackHelper() override
yarp::dev::ISpeechSynthesizer * m_isptr
This class is the parameters parser for class SpeechSynthesizer_nws_yarp.
SpeechSynthesizer_nws_yarp: A wrapper for a plugin able to perform speech synthesis.
SpeechSynthesizer_nws_yarp(const SpeechSynthesizer_nws_yarp &)=delete
void run() override
Main body of the new thread.
SpeechSynthesizer_nws_yarp & operator=(SpeechSynthesizer_nws_yarp &&)=delete
SpeechSynthesizer_nws_yarp()=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
SpeechSynthesizer_nws_yarp(SpeechSynthesizer_nws_yarp &&)=delete
SpeechSynthesizer_nws_yarp & operator=(const SpeechSynthesizer_nws_yarp &)=delete
virtual ~SpeechSynthesizer_nws_yarp() override
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
A generic interface for speech synthesis.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
A simple collection of objects that can be described and transmitted in a portable way.
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A mini-server for network communication.
A base class for nested structures that can be searched.
An abstraction for a thread of execution.
A callback for typed data from a port.
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.