uzulla/voicetext-api
Composer 安装命令:
composer require uzulla/voicetext-api
包简介
VoiceText Web API(https://cloud.voicetext.jp/webapi) wrapper library.
README 文档
README
VoiceText Web APIをPHPから利用するためのライブラリです。
This library for VoiceText Web API.
VoiceText Web APIは、入力したテキストを音声ファイル(Wav形式)でダウンロードできるものです。
VoiceText is Text-To-Speech software, that API generate wave audio file.
VoiceText Web API は HOYAサービス株式会社様が提供するWEB APIです。詳細はこちら VoiceText Web API
VoiceText Web API provided by HOYA Service Corporation. Detail here. VoiceText Web API
REQUIRE
- PHP>=5.4
- Composer
SETUP
composerでuzulla/voicetext-apiをrequireしてください。
SYNOPSIS(利用例)
<?php require_once('vendor/autoload.php'); use \Uzulla\WebApi\VoiceText\Request as VTR; use \Uzulla\WebApi\VoiceText\Query as VTQ; // setup \Uzulla\WebApi\VoiceText\Query::$defaultApiKey = 'YOUR API KEY'; // build query $query = new VTQ; $query->text = 'hello'; // request $res = VTR::getResponse($query); if($res->isSuccess()){ $downloaded_wav_file_name = $res->tempFileName; }else{ echo "request fail."; var_dump($res); }
also ...
<?php // ... // param details, see official api doc https://cloud.voicetext.jp/webapi/docs/api $query = new VTQ; $query->text = 'こんにちは'; $query->speaker = 'haruka'; $query->emotion = 'happiness'; $query->emotion_level = 2; $query->pitch = 100; $query->speed = 100; $query->volume = 100; $error_list = $query->validate(); if(!empty($error_list)){ // query is invalid (local validation). use correct data. var_dump($error_list); // array(1) { 'emotion' => string(35) "specify speaker not support emotion" } }else{ // request $res = VTR::getResponse($query); if($res->isSuccess()){ $downloaded_wav_file_name = $res->tempFileName; }else{ echo "request fail."; var_dump($res); } }
SAMPLE
see sample/README.md
LICENSE
MIT
SEE ALSO
- VoiceText Web API https://cloud.voicetext.jp/webapi
- Official API Document https://cloud.voicetext.jp/webapi/docs/api
uzulla/voicetext-api 适用场景与选型建议
uzulla/voicetext-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 173 次下载、GitHub Stars 达 6, 最近一次更新时间为 2014 年 07 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「lib」 「tts」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 uzulla/voicetext-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 uzulla/voicetext-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 uzulla/voicetext-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Audio Manager for text-to-speech cloud services
A flexible FTP, SSL-FTP, and SSH-based SFTP client for PHP. This lib provides helpers that are easy to use to manage the remote files.
Based on Amazon AWS Polly. Text to Speech serializer
Client Legacy lib for Rest PKI
Biblioteca para geração de NFSE de Belo Horizonte
Based on IBM Watson. Text to Speech serializer
统计信息
- 总下载量: 173
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-14