16#include <catch2/catch_amalgamated.hpp>
22TEST_CASE(
"dev::whisperSpeechTranscription",
"[yarp::dev]")
26 Network::setLocalMode(
true);
28 SECTION(
"Checking whisperSpeechTranscription device")
53 pdev_cfg.put(
"device",
"whisperSpeechTranscription");
59 std::string
lang =
"auto";
72 CHECK(
transcript==
" And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country.");
82 Network::setLocalMode(
false);
A generic interface for speech transcription.
A container for a device driver.
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.
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.
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.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
TEST_CASE("dev::whisperSpeechTranscription", "[yarp::dev]")