11#include <catch2/catch_amalgamated.hpp>
19TEST_CASE(
"dev::speechSynthesizer_nws_yarp",
"[yarp::dev]")
24 Network::setLocalMode(
true);
26 SECTION(
"Checking speechSynthesizer_nws_yarp device alone")
33 pnws_cfg.put(
"device",
"speechSynthesizer_nws_yarp");
34 pnws_cfg.put(
"name",
"/speechSynthesizer_nws");
47 SECTION(
"Checking speechSynthesizer_nws_yarp device attached to fake device")
55 pnws_cfg.put(
"device",
"speechSynthesizer_nws_yarp");
56 pnws_cfg.put(
"name",
"/speechSynthesizer_nws");
60 pdev_cfg.put(
"device",
"fakeSpeechSynthesizer");
74 CHECK(Network::connect(
"/test:o",
"/speechSynthesizer_nws/text:i"));
76 CHECK(Network::connect(
"/speechSynthesizer_nws/sound:o",
"/test:i"));
100 Network::setLocalMode(
false);
A container for a device driver.
bool close() override
Close the DeviceDriver.
bool open(const std::string &txt)
Construct and configure a device by its common name.
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.
void addString(const char *str)
Places a string in the bottle, at the end of the list.
A mini-server for performing network communication in the background.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
T * read(bool shouldWait=true) override
Read an available object from the port.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
A mini-server for network communication.
A class for storing options and configuration information.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
void exec_params_test(yarp::dev::PolyDriver *pdrv)
For streams capable of holding different kinds of content, check what they actually have.
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.
TEST_CASE("dev::speechSynthesizer_nws_yarp", "[yarp::dev]")