YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeSpeechTranscription.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef FAKESPEECHTRANSCRIPTION_H
7#define FAKESPEECHTRANSCRIPTION_H
8
11#include <yarp/os/Bottle.h>
12#include <stdio.h>
13
15
16using namespace yarp::os;
17
29{
30private:
31 bool m_verbose = true;
32
33public:
40
41 bool open(yarp::os::Searchable& config) override;
42 bool close() override;
43
44 virtual yarp::dev::ReturnValue setLanguage(const std::string& language) override;
45 virtual yarp::dev::ReturnValue getLanguage(std::string& language) override;
46 virtual yarp::dev::ReturnValue transcribe(const yarp::sig::Sound& sound, std::string& transcription, double& score) override;
47};
48
49#endif
This class is the parameters parser for class FakeSpeechTranscription.
FakeSpeechTranscription: A fake implementation of a speech transcriber plugin.
FakeSpeechTranscription(const FakeSpeechTranscription &)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool close() override
Close the DeviceDriver.
virtual yarp::dev::ReturnValue setLanguage(const std::string &language) override
Sets the language for speech transcription.
FakeSpeechTranscription(FakeSpeechTranscription &&)=delete
FakeSpeechTranscription & operator=(FakeSpeechTranscription &&)=delete
virtual yarp::dev::ReturnValue getLanguage(std::string &language) override
Gets the current language set for speech transcription.
virtual yarp::dev::ReturnValue transcribe(const yarp::sig::Sound &sound, std::string &transcription, double &score) override
Performs the speech transcription.
FakeSpeechTranscription & operator=(const FakeSpeechTranscription &)=delete
Interface implemented by all device drivers.
A generic interface for speech transcription.
A base class for nested structures that can be searched.
Definition Searchable.h:31
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
Definition Sound.h:25
An interface to the operating system, including Port based communication.