Back

TextToSpeech

Hello World

Uses the android TextToSpeech engine to audiolize text.

app.TextToSpeech( text, pitch, rate, callback, stream, locale, engine )

You can use different locales depending on the user language. A list of languages and their locales (LCID string) can be found on www.science.co.il.

Example - Example

function OnStart()
{
    app.TextToSpeech( "DroidScript is awesome!", 1.0, 1.0 );
}
    Copy     Copy All       Run      
number
string
string: “music”
function()