#include "VoiceBoxSynthesizer.h"
#include <curl/curl.h>
#include <nlohmann/json.hpp>
#include "dr_wav.h"
#include <yarp/os/LogComponent.h>
#include <yarp/os/LogStream.h>
Go to the source code of this file.
|
| const yarp::os::LogComponent & | VOICEBOXSYNTHESIZER () |
| |
| static yarp::sig::Sound | decodedAudioToYarpSound (const DecodedAudio &audio) |
| |
| static profilesList | getProfiles (const std::string &baseUrl) |
| |
| static bool | findProfileByName (const profilesList &profiles, const std::string &name, profileMap &outProfile) |
| |
| static std::string | startGeneration (const std::string &baseUrl, const profileMap &profile, const std::string &text, const std::string &language, double speed) |
| |
| static void | waitUntilFinished (const std::string &baseUrl, const std::string &generationId, std::chrono::milliseconds pollInterval=std::chrono::milliseconds(1000), std::chrono::seconds timeout=std::chrono::seconds(120)) |
| |
| static yarp::sig::Sound | downloadAudioAsYarpSound (const std::string &baseUrl, const std::string &generationId) |
| |
| static yarp::sig::Sound | synthesizeVoiceboxToYarpSound (const std::string &baseUrl, const profileMap &profile, const std::string &text, const std::string &language, double speed) |
| |
◆ _USE_MATH_DEFINES
◆ DR_WAV_IMPLEMENTATION
◆ json
◆ decodedAudioToYarpSound()
◆ downloadAudioAsYarpSound()
◆ findProfileByName()
◆ getProfiles()
◆ startGeneration()
◆ synthesizeVoiceboxToYarpSound()
◆ VOICEBOXSYNTHESIZER()
◆ waitUntilFinished()
| static void waitUntilFinished |
( |
const std::string & |
baseUrl, |
|
|
const std::string & |
generationId, |
|
|
std::chrono::milliseconds |
pollInterval = std::chrono::milliseconds(1000), |
|
|
std::chrono::seconds |
timeout = std::chrono::seconds(120) |
|
) |
| |
|
static |