Download the PHP package tbetool/ibm-watson-tts without Composer

On this page you can find all versions of the php package tbetool/ibm-watson-tts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ibm-watson-tts

IBM Watson Text-To-Speech PHP Library

Convert written text into natural-sounding audio in a variety of languages and voices.
This package use IBM Watson Text To Speech service.


Using the Library

Installation

Intall library in PHP project using composer

Using Library

After installing the library, create WatsonTts object

Watson username, password, url can be obtained by creating an instance of service. For more detail follow Getting Started Guide.

Setting output path

Set absolute path of the directory where to save the output. You don't need to provide a file name as it will be auto generated.

Convert Text to Speech

Pass text to convert to speech.

This will return the absolute path of the file created if text to speech conversion is successful, otherwise will throw Exception.


Exception handling

Every function throws an Exception in case of any error/issue. Bind the code block within try-catch block to catch any exception occurred.

Ex:

will throw and exception Not a valid audio format. Allowed formats: wav, ogg as mp3 audio format is not supported as of now


Other callable methods

Set Audio Format

allowed formats: wav, ogg
default: wav

Set Language

allowed languages: See List   default: en-US

Set Voice

allowed voices: See List
default: MichaelVoice


Supported language and voice list

list of supported language and voice strings

Name language voice gender description
es-LA_SofiaVoice es-LA SofiaVoice female Sofia: Latin American Spanish (español latinoamericano) female voice.
pt-BR_IsabelaVoice pt-BR IsabelaVoice female Isabela: Brazilian Portuguese (português brasileiro) female voice.
en-GB_KateVoice en-GB KateVoice female Kate: British English female voice.
de-DE_BirgitVoice de-DE BirgitVoice female Birgit: Standard German of Germany (Standarddeutsch) female voice.
en-US_AllisonVoice en-US AllisonVoice female Allison: American English female voice.
fr-FR_ReneeVoice fr-FR ReneeVoice female Renee: French (français) female voice.
it-IT_FrancescaVoice it-IT FrancescaVoice female Francesca: Italian (italiano) female voice.
es-ES_LauraVoice es-ES LauraVoice female Laura: Castilian Spanish (español castellano) female voice.
ja-JP_EmiVoice ja-JP EmiVoice female Emi: Japanese (日本語) female voice.
es-ES_EnriqueVoice es-ES EnriqueVoice male Enrique: Castilian Spanish (español castellano) male voice.
de-DE_DieterVoice de-DE DieterVoice male Dieter: Standard German of Germany (Standarddeutsch) male voice.
en-US_LisaVoice en-US LisaVoice female Lisa: American English female voice.
en-US_MichaelVoice en-US MichaelVoice male Michael: American English male voice.
es-US_SofiaVoice es-US SofiaVoice female Sofia: North American Spanish (español norteamericano) female voice.

Bug Reporting

If you found any bug, create an issue.


Support and Contribution

Something is missing?


All versions of ibm-watson-tts with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tbetool/ibm-watson-tts contains the following files

Loading the files please wait ....