16#include <catch2/catch_amalgamated.hpp>
22TEST_CASE(
"dev::googleSpeechSynthesizer_test",
"[yarp::dev]")
26 Network::setLocalMode(
true);
28 SECTION(
"Checking googleSpeechSynthesizer device")
41 std::string
ss = rf.
findFile(
"test_audio.wav");
50 const std::string
init_voice{
"it-IT-Wavenet-A"};
51 pcfg.put(
"device",
"googleSpeechSynthesizer");
54 pcfg.put(
"__offline", 1);
64 std::string
toSynthesize{
"This is a text to speech test"};
83 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.
Helper class for finding config files and other external resources.
bool setDefaultContext(const std::string &contextName)
Sets the context for the current ResourceFinder object.
std::string findFile(const std::string &name)
Find the full path to a file.
bool setQuiet(bool quiet=true)
Request that information be suppressed from the console.
bool setVerbose(bool verbose=true)
Request that information be printed to the console on how resources are being found.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
size_t getSamples() const
Get the number of samples contained in the sound.
TEST_CASE("dev::googleSpeechSynthesizer_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.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)