2017 © Pedro Peláez
 

library ivona-speechcloud-sdk-php

IVONA SpeechCloud SDK for PHP

image

werd/ivona-speechcloud-sdk-php

IVONA SpeechCloud SDK for PHP

  • Thursday, April 6, 2017
  • by werdlv
  • Repository
  • 2 Watchers
  • 10 Stars
  • 1,545 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

ivona-speechcloud-sdk-php

IVONA SpeechCloud SDK for PHP, (*1)

Latest Stable Version Dependency Status License, (*2)

Installation

Through Composer:, (*3)

$ composer require werd/ivona-speechcloud-sdk-php

Usage

use Werd\Ivona\SpeechCloud;
use Werd\Ivona\Models\Input;
use Werd\Ivona\Models\OutputFormat;
use Werd\Ivona\Models\Parameters;
use Werd\Ivona\Models\Voice;
use Werd\Ivona\Models\Lexicon;

$speechCloud = new SpeechCloud([
    'access_key' => '<your-key>',
    'secret_key' => '<your-secret-key>',
    'region'     => '<region>' // E.g. eu-west-1
]);

// CreateSpeech
$data = $speechCloud->createSpeech(new Input([
    Input::DATA => 'The word or sentence You want to synthesize'
]), new OutputFormat(), new Parameters(), new Voice());
header('Content-Type: audio/mpeg');
echo $data; // Audio stream - use it as You please

$data = $speechCloud->createSpeech(new Input([
    Input::DATA => 'Je Suis Charlie'
]), new OutputFormat(), new Parameters(), new Voice([
    Voice::NAME     => 'Celine',
    Voice::LANGUAGE => 'fr-FR'
]));

// ListVoices
$data = $speechCloud->listVoices(new Voice());

$data = $speechCloud->listVoices(new Voice([
    Voice::LANGUAGE => 'en-US',
    Voice::GENDER   => Voice::GENDER_MALE
])); // Filter American English male voices etc.

// PutLexicon
$data = $speechCloud->putLexicon(new Lexicon([
    Lexicon::NAME => 'Test',
    Lexicon::CONTENTS => '<PLS>'
]));

// GetLexicon
$data = $speechCloud->getLexicon('Test');

// DeleteLexicon
$data = $speechCloud->deleteLexicon('Test');

// ListLexicons
$data = $speechCloud->listLexicons();

The Versions

06/04 2017

dev-master

9999999-dev

IVONA SpeechCloud SDK for PHP

  Sources   Download

MIT

The Requires

 

text-to-speech tts ivona speechcloud

19/07 2016

1.0.4

1.0.4.0

IVONA SpeechCloud SDK for PHP

  Sources   Download

MIT

The Requires

 

text-to-speech tts ivona speechcloud

23/04 2016

1.0.3

1.0.3.0

IVONA SpeechCloud SDK for PHP

  Sources   Download

MIT

The Requires

 

text-to-speech tts ivona speechcloud

15/02 2016

1.0.2

1.0.2.0

IVONA SpeechCloud SDK for PHP

  Sources   Download

MIT

The Requires

 

text-to-speech tts ivona speechcloud

15/02 2016

1.0.1

1.0.1.0

IVONA SpeechCloud SDK for PHP

  Sources   Download

MIT

The Requires

 

text-to-speech tts ivona speechcloud

18/10 2015

1.0.0

1.0.0.0

IVONA SpeechCloud SDK for PHP

  Sources   Download

MIT

The Requires

 

text-to-speech tts ivona speechcloud