whisperDevice
: A yarp device for speech synthesis using azure openai APIs
More...
#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/opt-modules/yarp-devices-azure-openai/src/devices/whisperDevice/WhisperDevice.h>
whisperDevice
: A yarp device for speech synthesis using azure openai APIs
whisperDevice
Parameters required by this device are described in class WhisperDevice_ParamsParser
Definition at line 38 of file WhisperDevice.h.
◆ WhisperDevice() [1/3]
WhisperDevice::WhisperDevice |
( |
| ) |
|
◆ WhisperDevice() [2/3]
◆ WhisperDevice() [3/3]
◆ ~WhisperDevice()
WhisperDevice::~WhisperDevice |
( |
| ) |
|
|
overridedefault |
◆ close()
bool WhisperDevice::close |
( |
| ) |
|
|
overridevirtual |
◆ getLanguage()
ReturnValue WhisperDevice::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 76 of file WhisperDevice.cpp.
◆ open()
Open the DeviceDriver.
- Parameters
-
config | is a list of parameters for the device. Which parameters are effective for your device can vary. 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 30 of file WhisperDevice.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 70 of file WhisperDevice.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 82 of file WhisperDevice.cpp.
The documentation for this class was generated from the following files:
- opt-modules/yarp-devices-azure-openai/src/devices/whisperDevice/WhisperDevice.h
- opt-modules/yarp-devices-azure-openai/src/devices/whisperDevice/WhisperDevice.cpp