|
voicevox_client_cpp
0.0.0
A client library for VOICEVOX implemented in C++.
|
A client class for handlingk requests and responses to/from VOICEVOX. More...
#include <client.hpp>
Public Types | |
| using | OptionalJson = std::optional< web::json::value > |
| Responses from the client (in JSON format). More... | |
| using | OptionalBinary = std::optional< std::vector< unsigned char > > |
| Responses from the client (in String format) More... | |
| template<class T > | |
| using | CallbackType = std::function< void(const T &)> |
| User callback type. More... | |
Public Member Functions | |
| Client (const Client &)=delete | |
| Copy constructor (deleted) More... | |
| Client & | operator= (const Client &)=delete |
| Copy constructor (deleted) More... | |
| pplx::task< void > | Request (const web::http::http_request &req, const CallbackType< OptionalJson > callback_json) |
| An interface for sending supplies to the server and receiving responses asynchronously. More... | |
| pplx::task< void > | Request (const web::http::http_request &req, const CallbackType< OptionalBinary > callback_audio) |
| An interface for sending a request to the server and receiving responses asynchronously. More... | |
| template<class T > | |
| T | Request (const web::http::http_request &req) |
| An interface for sending requests to the server and receiving responses synchronously. More... | |
Static Public Member Functions | |
| static Client & | GetInstance (const std::string &uri) |
| The only interface for obtaining the client. More... | |
A client class for handlingk requests and responses to/from VOICEVOX.