Back

TextToSpeech

TextToSpeech uses Android's speech engine to speak out loud the given text. User can specify the pitch and speed of the output with decimal values where a value of 1.0 is used for normal pitch or speed.

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

Example - Example



function OnStart()
{
    app.TextToSpeech( "DroidScript is awesome!", 1.0, 1.0 );
}
    Copy     Copy All       Run      

string
unknown
function()