FakePythonSpeechTranscription
: A fake implementation of a speech transcriber plugin using python embedding.
More...
#include <fake/fakePythonSpeechTranscription/FakePythonSpeechTranscription.h>
FakePythonSpeechTranscription
: A fake implementation of a speech transcriber plugin using python embedding.
Definition at line 24 of file FakePythonSpeechTranscription.h.
◆ FakePythonSpeechTranscription() [1/3]
FakePythonSpeechTranscription::FakePythonSpeechTranscription |
( |
| ) |
|
◆ ~FakePythonSpeechTranscription()
FakePythonSpeechTranscription::~FakePythonSpeechTranscription |
( |
| ) |
|
|
virtual |
◆ FakePythonSpeechTranscription() [2/3]
◆ FakePythonSpeechTranscription() [3/3]
◆ close()
bool FakePythonSpeechTranscription::close |
( |
| ) |
|
|
overridevirtual |
◆ getLanguage()
bool FakePythonSpeechTranscription::getLanguage |
( |
std::string & |
language | ) |
|
|
overridevirtual |
Gets the current language set for speech transcription.
- Parameters
-
language | the returned string (code) representing the speech language (e.g. ita, eng...). Default value is "auto". |
- Returns
- a ReturnValue, convertible to true/false
Implements yarp::dev::ISpeechTranscription.
Definition at line 179 of file FakePythonSpeechTranscription.cpp.
◆ open()
Open the DeviceDriver.
- Parameters
-
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
- Returns
- true/false upon success/failure
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 41 of file FakePythonSpeechTranscription.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setLanguage()
bool FakePythonSpeechTranscription::setLanguage |
( |
const std::string & |
language | ) |
|
|
overridevirtual |
◆ transcribe()
Performs the speech transcription.
- Parameters
-
sound | the audio data to transcribe |
transcription | the returned transcription (it may be empty) |
score | the returned score/confidence value in the range (0-1.0). It may be not implemented. |
- Returns
- a ReturnValue, convertible to true/false
Implements yarp::dev::ISpeechTranscription.
Definition at line 211 of file FakePythonSpeechTranscription.cpp.
The documentation for this class was generated from the following files: