voicevox_client_cpp  0.0.0
A client library for VOICEVOX implemented in C++.
Public Types | Public Member Functions | Static Public Member Functions | List of all members
voicevox_client_cpp::Client Class Reference

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...
 
Clientoperator= (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 >
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 ClientGetInstance (const std::string &uri)
 The only interface for obtaining the client. More...
 

Detailed Description

A client class for handlingk requests and responses to/from VOICEVOX.


The documentation for this class was generated from the following file: