2017 © Pedro Peláez
 

library voicetext

voicetext web api beta for php client

image

fagai/voicetext

voicetext web api beta for php client

  • Sunday, June 28, 2015
  • by fagai
  • Repository
  • 1 Watchers
  • 2 Stars
  • 275 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP-VoiceText

Latest Stable Version Latest Unstable Version License, (*1)

VoiceText Web API client for PHP, (*2)

使う方法

composer require fagai/voicetext
<?php

use \Fagai\VoiceText\VoiceText;

$voice = new VoiceText('<your api key>');
$voice->speaker('hikari')
      ->emotion('happiness')
      ->emotion_level(2)
      ->pitch(150)
      ->speed(120)
      ->volume(150)
      ->text('今日も一日がんばるぞい!');

// get wav binary data
$binaryData = $voice->get();

Other Examples

$voice = new VoiceText('<your api key>');
$voice->setParams([
    'speaker' => 'hikari',
    'emotion' => 'happiness',
    'emotion_level' => 2,
    'pitch' => 150,
    'speed' => 120,
    'volume' => 150,
    'text' => '今日も一日がんばるぞい!']);

$binaryData = $voice->get();

Exceptions

RequestErrorException

400 Error, (*3)

NotAuthorizedException

401 Error, (*4)

HttpNotFoundException

404 Error, (*5)

HttpMethodErrorException

405 Error, (*6)

ServerErrorException

500 Error, (*7)

ServiceErrorException

503 Error, (*8)

The Versions

28/06 2015

dev-master

9999999-dev

voicetext web api beta for php client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar fagai

28/06 2015

v0.2

0.2.0.0

voicetext web api beta for php client

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Avatar fagai