voicevox_client_cpp  0.0.0
A client library for VOICEVOX implemented in C++.
Public Member Functions | List of all members
voicevox_client_cpp::request::post::synthesis::Builder Class Referencefinal

A builder for creating requests to obtain audio_query. More...

#include <post.hpp>

Inheritance diagram for voicevox_client_cpp::request::post::synthesis::Builder:
Inheritance graph
[legend]
Collaboration diagram for voicevox_client_cpp::request::post::synthesis::Builder:
Collaboration graph
[legend]

Public Member Functions

 Builder ()
 Initialize base URI and headers. More...
 
Builderspeaker (const int speaker)
 Set the speaker ID to be used for the query to synthesize Japanese speech. More...
 
Builderenable_interrogative_upspeak (const bool enable_interrogative_upspeak)
 Set a flag to control whether to raise the intonation at the end when it's a question. More...
 
Builderaccent_phrases (const web::json::value &accent_phrases)
 Set the query for speech synthesis included in the response body of the audio_query request. More...
 
Builderaccent_phrases (const char *accent_phrases)
 Set the query for speech synthesis included in the response body of the audio_query request. More...
 
Buildercore_version (const std::optional< int > &core_version)
 Set core_version to the request. More...
 
- Public Member Functions inherited from voicevox_client_cpp::request::Builder
 Builder (const std::string &path) noexcept(false)
 Initialize URI. More...
 
web::http::http_request get () noexcept
 Create and provide a request based on the settings provided so far. More...
 
Buildermethod (const web::http::method &method)
 Set HTTP method to request. More...
 
Builderheader (const utility::string_t &key, const utility::string_t &value)
 Set a header consists of a key and a value. More...
 
Builderbody (const utility::string_t &body)
 Set the body of the request. (String type) More...
 
Builderbody (const web::json::value &body)
 Set the body of the request. (JSON type) More...
 

Additional Inherited Members

- Public Types inherited from voicevox_client_cpp::request::Builder
using SharedPtr = std::shared_ptr< Builder >
 An alias of a pointer of this class. More...
 
- Protected Attributes inherited from voicevox_client_cpp::request::Builder
web::http::uri_builder uri_builder_
 URI builder. More...
 
web::http::http_request req_
 The request object to be built. More...
 

Detailed Description

A builder for creating requests to obtain audio_query.


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