User Tools

Site Tools


built_in:text_to_speech

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
built_in:text_to_speech [2016/08/09 18:33]
213.104.177.203 [Description]
built_in:text_to_speech [2018/03/12 20:19] (current)
Line 9: Line 9:
 Note: Custom speech engines are often installed by phone manufacturers, so the quality, available pitch and speed range may vary between devices. Note: Custom speech engines are often installed by phone manufacturers, so the quality, available pitch and speed range may vary between devices.
  
-<code> app.TextToSpeech( text, pitch, speed, callback, stream );</code>+<code> app.TextToSpeech( text, pitch, speed, callback, stream, locale, engine);</code>
  
 ---- ----
Line 19: Line 19:
 function OnStart() function OnStart()
 { {
-  app.TextToSpeech( "DroidScript is awesome!", 1.0, 1.0 );+  app.TextToSpeech( "DroidScript is awesome!", 1.0, 1.0, myfunc, "music" );
  
 +
 +function myfunc()
 +{
 +  alert("Done reading!");
 +}
  
 </code> </code>
  
built_in/text_to_speech.1470767608.txt.gz ยท Last modified: 2016/08/10 02:33 (external edit)