16#include <catch2/catch_amalgamated.hpp>
22TEST_CASE(
"dev::googleSpeechTranscription",
"[yarp::dev]")
26 Network::setLocalMode(
true);
28 SECTION(
"Checking googleSpeechTranscription device")
41 std::string
ss = rf.
findFile(
"test_audio.wav");
49 pdev_cfg.put(
"device",
"googleSpeechTranscription");
50 pdev_cfg.put(
"language_code",
"it-IT");
55 std::string
lang =
"en-US";
75 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.
TEST_CASE("dev::googleSpeechTranscription", "[yarp::dev]")
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)