Package | ispeech |
Class | public class SpeechSynthesis |
Inheritance | SpeechSynthesis ![]() |
See also
Property | Defined By | ||
---|---|---|---|
credits : Number = -1
Stores credits of corresponding apikey. | SpeechSynthesis |
Method | Defined By | ||
---|---|---|---|
SpeechSynthesis(ApiKey:String, production:Boolean = false) | SpeechSynthesis | ||
clearMetaAndOptionalCommands():void
Clears all optional parameters that were set. | SpeechSynthesis | ||
getInstance(api:String, production:Boolean):SpeechSynthesis [static]
Gets an instance of the iSpeech SpeechSynthesis class. | SpeechSynthesis | ||
information():void
Finds amount of credits for your apikey. | SpeechSynthesis | ||
setOptionalCommand(command:String, parameter:String):void
Specify additional parameters to send to the server. | SpeechSynthesis | ||
setVoice(voice:String):void
Sets the voice, default is usfemaleenglish1
| SpeechSynthesis | ||
speak(text:String):void
Converts text into speech. | SpeechSynthesis |
credits | property |
public var credits:Number = -1
Stores credits of corresponding apikey. You must call information() to recieve data
SpeechSynthesis | () | Constructor |
public function SpeechSynthesis(ApiKey:String, production:Boolean = false)
ApiKey:String | |
production:Boolean (default = false )
|
clearMetaAndOptionalCommands | () | method |
public function clearMetaAndOptionalCommands():void
Clears all optional parameters that were set.
getInstance | () | method |
public static function getInstance(api:String, production:Boolean):SpeechSynthesis
Gets an instance of the iSpeech SpeechSynthesis class. The ApiKey parameter is only required on initial call to this method.
Parameters
api:String — Your API key provided by iSpeech.
| |
production:Boolean — Set to true if you are deploying your application. Set to false if you are using the sandbox environment.
|
SpeechSynthesis |
information | () | method |
public function information():void
Finds amount of credits for your apikey. since flash is event-driven this value cannot be returned in this function. Instead, it is stored in the credits property of the class. A datagetevent is dispatched, the value of credits is stored in it's data property.
setOptionalCommand | () | method |
public function setOptionalCommand(command:String, parameter:String):void
Specify additional parameters to send to the server.
Parameters
command:String — A valid command
| |
parameter:String — A valid setting for the command
|
setVoice | () | method |
public function setVoice(voice:String):void
Sets the voice, default is usfemaleenglish1
Parameters
voice:String |
speak | () | method |
public function speak(text:String):void
Converts text into speech. Audio begins to stream through this object.
Parameters
text:String — The text you wish to have converted into audio.
|