The Android Scripting Environment (ASE) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface that makes it easy to handle intents, start activities, make phone calls, send text messages, scan bar codes, poll location and sensor data, use text-to-speech, and more. Scripts can be run interactively in a terminal, started as a long running service, or started via Locale. Python, Perl, JRuby, Lua, BeanShell, and Bourne shell are currently supported.
Speech synthesis for asterisk is an Asterisk AGI script that uses Google Translate to convert text to speech and play it back to the user. It supports a variety of different languages, local caching of voice data, and a choice between 8 kHz or 16 kHz sample rates to provide the best possible sound quality along with the use of wideband codecs.