Product Description
What does it do?
DiaDrawTextToSpeechANE.ane is an AIR Native Extension for iOS which gives you access to the iOS text-to-speech engine. Convert text to speech, control the playback. Change the volume, speech rate, pitch.
Use different voices. There is а language code helper class provided that makes managing different languages an easy task.
API reference
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 |
var ttsDriver : TextToSpeechDriver = new TextToSpeechDriver(); ttsDriver.volume = 1.0; ttsDriver.speechRate = ttsDriver.defaultSpeechRate; ttsDriver.pitchMultiplier = 1.0; if( ttsDriver.isLanguageSupported( LanguageHelperiOS.English ) ) ttsDriver.voiceLanguage = LanguageHelperiOS.English; ttsDriver.startTextToSpeech( "Hey! How are you?" ); trace( "Is speaking: " + ttsDriver.isSpeaking() ); ttsDriver.stopTextToSpeech( false ); |
Reviews
There are no reviews yet.