{"id":21619245,"url":"https://github.com/uzulla/voicetext-webapi-php","last_synced_at":"2025-10-07T17:32:45.932Z","repository":{"id":18614194,"uuid":"21819655","full_name":"uzulla/voicetext-webapi-php","owner":"uzulla","description":"VoiceText web api access wrapper.","archived":false,"fork":false,"pushed_at":"2014-09-04T12:59:34.000Z","size":192,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T03:00:07.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uzulla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-14T13:03:30.000Z","updated_at":"2021-04-07T06:50:48.000Z","dependencies_parsed_at":"2022-09-25T01:12:06.966Z","dependency_job_id":null,"html_url":"https://github.com/uzulla/voicetext-webapi-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzulla%2Fvoicetext-webapi-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzulla%2Fvoicetext-webapi-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzulla%2Fvoicetext-webapi-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzulla%2Fvoicetext-webapi-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uzulla","download_url":"https://codeload.github.com/uzulla/voicetext-webapi-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362804,"owners_count":21091203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-24T23:08:24.353Z","updated_at":"2025-10-07T17:32:40.898Z","avatar_url":"https://github.com/uzulla.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"VoiceText Web API library for PHP\n=================================\n\nVoiceText Web APIをPHPから利用するためのライブラリです。\n\nThis library for VoiceText Web API.\n\n\nVoiceText Web APIは、入力したテキストを音声ファイル（Wav形式）でダウンロードできるものです。\n\nVoiceText is Text-To-Speech software, that API generate wave audio file.\n\n\n\u003e VoiceText Web API は HOYAサービス株式会社様が提供するWEB APIです。詳細はこちら [VoiceText Web API](https://cloud.voicetext.jp/webapi)\n\n\u003e VoiceText Web API provided by HOYA Service Corporation. Detail here. [VoiceText Web API](https://cloud.voicetext.jp/webapi)\n\n\n### REQUIRE\n\n- PHP\u003e=5.4\n- Composer\n\n\n### SETUP\n\ncomposerでuzulla/voicetext-apiをrequireしてください。\n\n### SYNOPSIS(利用例)\n\n```php\n\u003c?php\nrequire_once('vendor/autoload.php');\n\nuse \\Uzulla\\WebApi\\VoiceText\\Request as VTR;\nuse \\Uzulla\\WebApi\\VoiceText\\Query as VTQ;\n\n// setup\n\\Uzulla\\WebApi\\VoiceText\\Query::$defaultApiKey = 'YOUR API KEY';\n\n// build query\n$query = new VTQ;\n$query-\u003etext = 'hello';\n\n// request\n$res = VTR::getResponse($query);\n\nif($res-\u003eisSuccess()){\n  $downloaded_wav_file_name = $res-\u003etempFileName;\n}else{\n  echo \"request fail.\";\n  var_dump($res);\n}\n\n```\n\nalso ...\n\n```php\n\u003c?php\n// ...\n\n// param details, see official api doc https://cloud.voicetext.jp/webapi/docs/api\n$query = new VTQ;\n$query-\u003etext = 'こんにちは';\n$query-\u003espeaker = 'haruka';\n$query-\u003eemotion = 'happiness';\n$query-\u003eemotion_level = 2;\n$query-\u003epitch = 100;\n$query-\u003espeed = 100;\n$query-\u003evolume = 100;\n\n$error_list = $query-\u003evalidate();\n\nif(!empty($error_list)){\n  // query is invalid (local validation). use correct data.\n  var_dump($error_list); // array(1) { 'emotion' =\u003e string(35) \"specify speaker not support emotion\" }\n\n}else{\n  // request\n  $res = VTR::getResponse($query);\n\n  if($res-\u003eisSuccess()){\n    $downloaded_wav_file_name = $res-\u003etempFileName;\n  }else{\n    echo \"request fail.\";\n    var_dump($res);\n  }\n}\n```\n\n### SAMPLE\n\nsee `sample/README.md`\n\n### LICENSE\n\nMIT\n\n### SEE ALSO\n\n- VoiceText Web API [https://cloud.voicetext.jp/webapi](https://cloud.voicetext.jp/webapi)\n- Official API Document [https://cloud.voicetext.jp/webapi/docs/api](https://cloud.voicetext.jp/webapi/docs/api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzulla%2Fvoicetext-webapi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuzulla%2Fvoicetext-webapi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzulla%2Fvoicetext-webapi-php/lists"}