A generic interface for speech synthesis. More...
#include <yarp/dev/ISpeechSynthesizer.h>
Public Member Functions | |
virtual | ~ISpeechSynthesizer () |
virtual yarp::dev::ReturnValue | setLanguage (const std::string &language="auto")=0 |
Sets the language for speech synthesis. | |
virtual yarp::dev::ReturnValue | getLanguage (std::string &language)=0 |
Gets the current language set for speech synthesis. | |
virtual yarp::dev::ReturnValue | setVoice (const std::string &voice_name="auto")=0 |
Sets the voice set for speech synthesis. | |
virtual yarp::dev::ReturnValue | getVoice (std::string &voice_name)=0 |
Gets the current voice set for speech synthesis. | |
virtual yarp::dev::ReturnValue | setSpeed (const double speed=0)=0 |
Sets the voice speed for speech synthesis. | |
virtual yarp::dev::ReturnValue | getSpeed (double &speed)=0 |
Gets the current voice speed. | |
virtual yarp::dev::ReturnValue | setPitch (const double pitch)=0 |
Sets the pitch for speech synthesis. | |
virtual yarp::dev::ReturnValue | getPitch (double &voice)=0 |
Gets the current pitch set for speech synthesis. | |
virtual yarp::dev::ReturnValue | synthesize (const std::string &text, yarp::sig::Sound &sound)=0 |
Performs the speech synthesis. | |
A generic interface for speech synthesis.
Definition at line 20 of file ISpeechSynthesizer.h.
|
virtualdefault |
|
pure virtual |
Gets the current language set for speech synthesis.
language | the returned string (code) representing the speech language (e.g. ita, eng...). Default value is "auto". |
Implemented in TtsDevice, GoogleSpeechSynthesizer, FakeSpeechSynthesizer, and SpeechSynthesizer_nwc_yarp.
|
pure virtual |
Gets the current pitch set for speech synthesis.
pitch | the current voice pitch. |
Implemented in TtsDevice, GoogleSpeechSynthesizer, SpeechSynthesizer_nwc_yarp, and FakeSpeechSynthesizer.
|
pure virtual |
Gets the current voice speed.
speed | the current voice speed. |
Implemented in TtsDevice, GoogleSpeechSynthesizer, SpeechSynthesizer_nwc_yarp, and FakeSpeechSynthesizer.
|
pure virtual |
Gets the current voice set for speech synthesis.
voice_name | the currently used voice (device dependent). |
Implemented in FakeSpeechSynthesizer, TtsDevice, GoogleSpeechSynthesizer, and SpeechSynthesizer_nwc_yarp.
|
pure virtual |
Sets the language for speech synthesis.
language | a string (code) representing the speech language (e.g. ita, eng...). Default value is "auto". |
Implemented in FakeSpeechSynthesizer, TtsDevice, GoogleSpeechSynthesizer, and SpeechSynthesizer_nwc_yarp.
|
pure virtual |
Sets the pitch for speech synthesis.
pitch | the voice pitch. |
Implemented in TtsDevice, GoogleSpeechSynthesizer, FakeSpeechSynthesizer, and SpeechSynthesizer_nwc_yarp.
|
pure virtual |
Sets the voice speed for speech synthesis.
speed | the voice speed. |
Implemented in FakeSpeechSynthesizer, TtsDevice, GoogleSpeechSynthesizer, and SpeechSynthesizer_nwc_yarp.
|
pure virtual |
Sets the voice set for speech synthesis.
voice_name | the name of of the voice (device dependent). |
Implemented in FakeSpeechSynthesizer, TtsDevice, GoogleSpeechSynthesizer, and SpeechSynthesizer_nwc_yarp.
|
pure virtual |
Performs the speech synthesis.
text | the text to synthesize |
sound | the synthesized audio stream |
Implemented in TtsDevice, GoogleSpeechSynthesizer, FakeSpeechSynthesizer, and SpeechSynthesizer_nwc_yarp.