ezSpeech is a native extension that provides voice to mobile applications on iOS and Android. The extension does not use online services, instead it works offline using the TTS engine (text to speech) of the device. The API allows developers to customize the output audio, adjusting elements as speed and language.

Regarding the language selection, on Android, if a specific TTS voice file is not installed and internet connection is available, the ANE will download and install it automatically. On iOS, all voices supported by the extension are pre-installed.

Sample

import com.fabricemontfort.air.ezSpeech;
import com.fabricemontfort.air.ezspeech.languages;
 
var tts:ezSpeech = ezSpeech.instance;
 
if (tts.isSupported()) {
    tts.setSpeed(0.5);
 
    tts.setLanguage(languages.US);
    tts.say("Hello. This is a sample application!");
 
    tts.setLanguage(languages.FR);
    tts.say("Bonjour. Ceci est un example d'application!");
}
Air Native Extension, Android, iOS . URL.