10#include <catch2/catch_amalgamated.hpp>
18TEST_CASE(
"dev::speechTranscription_nws_yarp",
"[yarp::dev]")
23 Network::setLocalMode(
true);
25 SECTION(
"Checking speechTranscription_nws_yarp device alone")
32 pnws_cfg.put(
"device",
"speechTranscription_nws_yarp");
33 pnws_cfg.put(
"name",
"/speechTranscription_nws");
45 SECTION(
"Checking speechTranscription_nws_yarp device attached to fake device")
53 pnws_cfg.put(
"device",
"speechTranscription_nws_yarp");
54 pnws_cfg.put(
"name",
"/speechTranscription_nws");
58 pdev_cfg.put(
"device",
"fakeSpeechTranscription");
72 CHECK(Network::connect(
"/test:o",
"/speechTranscription_nws/sound:i"));
74 CHECK(Network::connect(
"/speechTranscription_nws/text:o",
"/test:i"));
98 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.
Value & get(size_type index) const
Reads a Value v from a certain part 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.
virtual yarp::conf::float64_t asFloat64() const
Get 64-bit floating point value.
virtual std::string asString() const
Get string value.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
void resize(size_t samples, size_t channels=1)
Set the sound size.
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::speechTranscription_nws_yarp", "[yarp::dev]")