FakeSpeechTranscription
: A fake implementation of a speech transcriber plugin.
More...
#include <fake/fakeSpeechTranscription/FakeSpeechTranscription.h>
FakeSpeechTranscription
: A fake implementation of a speech transcriber plugin.
Parameters required by this device are shown in class: FakeSpeechTranscription_ParamsParser
Definition at line 25 of file FakeSpeechTranscription.h.
◆ FakeSpeechTranscription() [1/3]
FakeSpeechTranscription::FakeSpeechTranscription |
( |
| ) |
|
◆ ~FakeSpeechTranscription()
FakeSpeechTranscription::~FakeSpeechTranscription |
( |
| ) |
|
|
virtual |
◆ FakeSpeechTranscription() [2/3]
◆ FakeSpeechTranscription() [3/3]
◆ close()
bool FakeSpeechTranscription::close |
( |
| ) |
|
|
overridevirtual |
◆ getLanguage()
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 50 of file FakeSpeechTranscription.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 31 of file FakeSpeechTranscription.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setLanguage()
Sets the language for speech transcription.
- Parameters
-
language | a 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 43 of file FakeSpeechTranscription.cpp.
◆ 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 56 of file FakeSpeechTranscription.cpp.
The documentation for this class was generated from the following files: