dayrev/synthesizer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dayrev/synthesizer

Composer 安装命令:

composer require dayrev/synthesizer

包简介

Text-to-Speech Synthesizer

README 文档

README

Build Status Coverage Status Latest Stable Version

Overview

Synthesizer provides an elegant interface to synthesize text to speech (audio url) using a variety of third-party providers.

Supported Providers:

  • Amazon Polly
  • Google
  • IBM Watson
  • iSpeech

Installation

Run the following composer command to add the package to your project:

composer require dayrev/synthesizer

Alternatively, add "dayrev/synthesizer": "^1.0" to your composer.json file.

Usage

$provider = Provider::instance('amazon', [
    'key' => 'YOUR_AMAZON_API_KEY',
    'secret' => 'YOUR_AMAZON_API_SECRET',
]);
$content = $synthesizer->synthesize($text);

$synthesizer = DayRev\Synthesizer\Provider::instance('google');
$content = $synthesizer->synthesize($text);

$synthesizer = DayRev\Synthesizer\Provider::instance('ibm', [
    'username' => 'YOUR_IBM_USERNAME',
    'password' => 'YOUR_IBM_PASSWORD',
]);
$content = $synthesizer->synthesize($text);

$synthesizer = DayRev\Synthesizer\Provider::instance('ispeech', [
    'apikey' => 'YOUR_ISPEECH_API_KEY'
]);
$content = $synthesizer->synthesize($text);

Tests

To run the test suite, run the following commands from the root directory:

composer install
vendor/bin/phpunit -d ibm_username=YOUR_IBM_USERNAME -d ibm_password=YOUR_IBM_PASSWORD -d ispeech_api_key=YOUR_ISPEECH_API_KEY -d amazon_api_key=YOUR_AMAZON_API_KEY -d amazon_api_secret=YOUR_AMAZON_API_SECRET

Note: API credentials are required when running the integration tests but the values don't have to be valid.

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-04-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固