6#ifndef YARP_VOICEBOXSYNTHESIZER_H
7#define YARP_VOICEBOXSYNTHESIZER_H
23using profilesList = std::vector<std::map<std::string, std::string>>;
41 bool open(
yarp::os::Searchable& config) override;
42 bool close() override;
47 yarp::dev::ReturnValue
setVoice(const
std::
string& voice_name) override;
50 yarp::dev::ReturnValue
setSpeed(const
double speed) override;
52 yarp::dev::ReturnValue
setPitch(const
double pitch) override;
57 std::
string m_baseUrl = "http:
58 std::
string m_language = "en";
59 std::
string m_region = "US";
std::map< std::string, std::string > profileMap
std::vector< std::map< std::string, std::string > > profilesList
This class is the parameters parser for class VoiceBoxSynthesizer.
yarp::dev::ReturnValue getPitch(double &pitch) override
Gets the current pitch set for speech synthesis.
yarp::dev::ReturnValue getLanguage(std::string &language) override
Gets the current language set for speech synthesis.
yarp::dev::ReturnValue setSpeed(const double speed) override
Sets the voice speed for speech synthesis.
yarp::dev::ReturnValue getSpeed(double &speed) override
Gets the current voice speed.
yarp::dev::ReturnValue getVoice(std::string &voice_name) override
Gets the current voice set for speech synthesis.
VoiceBoxSynthesizer(VoiceBoxSynthesizer &&) noexcept=delete
bool close() override
Close the DeviceDriver.
VoiceBoxSynthesizer(const VoiceBoxSynthesizer &)=delete
yarp::dev::ReturnValue setVoice(const std::string &voice_name) override
Sets the voice set for speech synthesis.
yarp::dev::ReturnValue setLanguage(const std::string &language) override
Sets the language for speech synthesis.
yarp::dev::ReturnValue getAvailableVoices(yarp::sig::VectorOfString &voices) override
Returns the list of available voices for the currently set language.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::ReturnValue synthesize(const std::string &text, yarp::sig::Sound &sound) override
Performs the speech synthesis.
yarp::dev::ReturnValue setPitch(const double pitch) override
Sets the pitch for speech synthesis.
Interface implemented by all device drivers.
A generic interface for speech synthesis.
The main, catch-all namespace for YARP.