16#include <catch2/catch_amalgamated.hpp>
22TEST_CASE(
"dev::kokoroSpeechSynthesizer_test",
"[yarp::dev]")
26 Network::setLocalMode(
true);
28 SECTION(
"Checking kokoroSpeechSynthesizer device")
36 pcfg.put(
"device",
"kokoroSpeechSynthesizer");
37 pcfg.put(
"language",
"en");
38 pcfg.put(
"voice",
"auto");
39 pcfg.put(
"speed", 1.0);
80 const char*
synthFlag = std::getenv(
"KOKORO_TEST_SYNTHESIZE");
84 YARP_SKIP_TEST(
"Kokoro synthesis test skipped (set KOKORO_TEST_SYNTHESIZE=1 to enable)");
88 const std::string
toSynthesize{
"This is a Kokoro synthesis test from YARP"};
102 Network::setLocalMode(
false);
bool view(T *&x)
Get an interface to the device driver.
A generic interface for speech synthesis.
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.
A mini-server for performing network communication in the background.
A class for storing options and configuration information.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
TEST_CASE("dev::kokoroSpeechSynthesizer_test", "[yarp::dev]")
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.