The iSpeech API allows developers to add text to speech capabilities into any web enabled application.
The API's implementation is simple as it uses basic form encoded data (REST) as a communication medium.
Some example code is available for VB.NET, C#, PHP, ActionScript3 (AS3) and HTML implementations.
You must have an API enabled account in order to utilize this API. Any calls with a standard account will result in a failure. Please contact us to enable API access on your existing account.
Valid login credentials must be provided for every request.
An action must be specified with every request.
Every call to the API must contain a username (the email address), a password and an action. Each action has its own requirements. Please refer to each individual action for more information.
Example Request:
uname=email@domain.com&pword=123456&act=information
Each request must be sent to the URL below via the POST method.
http://ws.ispeech.org/api/is_api.php
Every response will include a 'result' variable containing either success or error. Please refer to each individual action for more information.
Example Response:
result=success&credits=13343433Below is a list of possible error codes and a description for each event.
| ||||||||||||||||||||||||||||||||||||||||||||||
Requires:
Optional:
Currently only returns the amount of word credits your account contains.
Requires:
Optional:
Returns the file status, the file hash and the amount of words in the text, which is also the credit cost.
Requires:
Optional:
Returns the file status, which is: waiting, the file is waiting to be converted, complete the file is complete and can be downloaded, or error the file could not be converted. Also includes the filesize (if available), the amount of words in the file and the estimated time to completion in seconds (eta).
Requires:
Optional:
Returns the actual file binary data if successful. You can verify if it is an error message or binary data by checking the server response header. An audio file will specify 'audio/mpeg' as the content type.
If the content type is text/plain then an error occurred: