|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.iSpeech.iSpeechSynthesis
public class iSpeechSynthesis
Contains methods used to synthesize speech from text. You can get a reference
of this class by calling SpeechSynthesis.getInstance. An API key is
required to use this class. You may obtain a free key from the following URL:
{http://www.ispeech.org/}
| Field Summary | |
|---|---|
static java.lang.String |
version
|
| Method Summary | |
|---|---|
void |
clearMetaAndOptionalCommands()
Clears any associated meta and optional parameters. |
static iSpeechSynthesis |
getInstance(java.lang.String apiKey,
boolean production)
Gets an instance of the iSpeech Speech Synthesis class. |
void |
setOptionalCommand(java.lang.String command,
java.lang.String parameter)
Specify additional parameters to send to the server. |
void |
setVoice(java.lang.String voice)
Sets the voice to the specified variable. |
TTSResult |
speak(java.lang.String text)
Converts text into speech. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String version
| Method Detail |
|---|
public static iSpeechSynthesis getInstance(java.lang.String apiKey,
boolean production)
throws InvalidApiKeyException
apiKey - Your API key provided by iSpeech.production - Set to true if you are deploying your application. Set to false if you are using the sandbox environment.
InvalidApiKeyException
java.lang.IllegalArgumentException - If the key is null or invalid.public void setVoice(java.lang.String voice)
voice - Visit the iSpeech Developers center at http://www.ispeech.org or contact sales@ispeech.org to obtain a list of valid voices enabled for your account.
public void setOptionalCommand(java.lang.String command,
java.lang.String parameter)
public void clearMetaAndOptionalCommands()
public TTSResult speak(java.lang.String text)
throws java.io.IOException,
ApiException
text - The text you wish to have converted into audio.
java.io.IOException - If a general error occurs or could not connect to the server
java.lang.IllegalArgumentException - If you are out of credits
ApiException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||