{"id":15068149,"url":"https://github.com/fugashy/voicevox_client_cpp","last_synced_at":"2026-02-20T17:01:17.167Z","repository":{"id":241446415,"uuid":"805199486","full_name":"fugashy/voicevox_client_cpp","owner":"fugashy","description":"A client library for VOICEVOX implemented with C++","archived":false,"fork":false,"pushed_at":"2024-07-07T13:11:17.000Z","size":375,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-14T18:17:51.152Z","etag":null,"topics":["cpp","cpp17","cpprestsdk","rest-api","voicevox"],"latest_commit_sha":null,"homepage":"https://fugashy.github.io/voicevox_client_cpp/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fugashy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-24T04:53:41.000Z","updated_at":"2024-07-07T13:11:20.000Z","dependencies_parsed_at":"2024-05-28T11:55:47.747Z","dependency_job_id":"8cb62919-c1ef-4bfc-aa30-f4631eb4358c","html_url":"https://github.com/fugashy/voicevox_client_cpp","commit_stats":null,"previous_names":["fugashy/voicevox_client_cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fugashy/voicevox_client_cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fugashy%2Fvoicevox_client_cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fugashy%2Fvoicevox_client_cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fugashy%2Fvoicevox_client_cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fugashy%2Fvoicevox_client_cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fugashy","download_url":"https://codeload.github.com/fugashy/voicevox_client_cpp/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fugashy%2Fvoicevox_client_cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29658167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp17","cpprestsdk","rest-api","voicevox"],"created_at":"2024-09-25T01:31:36.654Z","updated_at":"2026-02-20T17:01:17.115Z","avatar_url":"https://github.com/fugashy.png","language":"C++","readme":"# voicevox_client_cpp\n\n![build-document](https://github.com/fugashy/voicevox_client_cpp/actions/workflows/build_document.yml/badge.svg)\n![run-tests](https://github.com/fugashy/voicevox_client_cpp/actions/workflows/run_test.yml/badge.svg)\n\nAn *Unofficial* client library for VOICEVOX implemented in C++.\n\nIt also provides an interface for calling from other languages. *Still under testing*\n\n[Link to the Document](https://fugashy.github.io/voicevox_client_cpp/index.html)\n\n# Required\n\n- C++ 17\n- cpprestsdk\n\n# Supported OS\n\n- Ubuntu 24.04\n- masOS Sonoma 14.5\n\n# How to build and install\n\n```bash\n# for Ubuntu\nsudo apt install libcpprest-dev\n# for macOS\nbrew install cpprestsdk\n\nmkdir build\ncd build\ncmake ..\n\n# build\nmake\n\n# install\nsudo make install\n```\n\n# How to build the docker image\n\n```bash\ndocker build -t vvccpp:latest .\n```\n\n# A sample code for speech synthesis\n\n```cpp\n#include \"voicevox_client_cpp/client.hpp\"\n#include \"voicevox_client_cpp/post.hpp\"\n\n#include \u003ciostream\u003e\n\nusing ReqAudioQueryBuilder = voicevox_client_cpp::request::post::audio_query::Builder;\nusing ReqSynthesisBuilder = voicevox_client_cpp::request::post::synthesis::Builder;\n\nint main(int argc, char** argv)\n{\n  // default text to synthesis\n  std::string text = \"こんにちは\";\n  if (argc \u003e 1)\n  {\n    text = argv[1];\n  }\n  std::cout \u003c\u003c \"input: \" \u003c\u003c text \u003c\u003c std::endl;\n\n  // Here's an example using a synchronous interface to obtain responses.\n  // It sends requests in the following order: speech query creation request,\n  // followed by a speech synthesis request.\n\n  // Build a request to create a speech query then send it.\n  const web::http::http_request req_audio_query = ReqAudioQueryBuilder()\n       .text(text)\n       .speaker(3)\n       .get();\n  const auto json = voicevox_client_cpp::Client::GetInstance(\"http://localhost:50021\")\n    .Request\u003cvoicevox_client_cpp::Client::OptionalJson\u003e(req_audio_query);\n\n  // Build a request for speech synthesis then send it.\n  const web::http::http_request req_synthesis = ReqSynthesisBuilder()\n      .speaker(3)\n      .enable_interrogative_upspeak(false)\n      .accent_phrases(json.value())\n      .get();\n  const auto string = voicevox_client_cpp::Client::GetInstance(\"http://localhost:50021\")\n    .Request\u003cvoicevox_client_cpp::Client::OptionalString\u003e(req_synthesis);\n  std::cout \u003c\u003c \"saved audio file path: \" \u003c\u003c string.value() \u003c\u003c std::endl;\n\n  // Please refer to the file below for information on the interface for obtaining responses asynchronously.\n  // - src/voicevox_client_cpp/sample/post_audio_query_then_synthesis.cpp\n\n  return EXIT_SUCCESS;\n}\n```\n\n# How to use samples\n\n```bash\n# Please run the voicevox server before execution of following commands.\n\ndocker run \\\n  -it \\\n  --rm \\\n  --net host \\\n  --volume /tmp:/tmp:rw \\\n  vvccpp:24.04 voicevox_client_cpp_sample_post_audio_query_then_synthesis\n\n\u003e input: こんにちは\n\u003e received audio size: 50732\n\u003e audio file size: 50732\n\n# Please see /tmp then you can find wav files named like yyyymmddhhMMss-koNnichiwa.wav\n# 2 files are output because the sample requests 2 queries using sync method and async method.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffugashy%2Fvoicevox_client_cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffugashy%2Fvoicevox_client_cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffugashy%2Fvoicevox_client_cpp/lists"}