trying to call functions asynchronously in javascript (with angularjs) -


I am trying to call the function in PhoneGap (for TTS) which varies in length (I have different Reading news headlines) Immediately after each title, I have a voice recognition task, which inspires a voice command to the user. This way ...

  navigator.tts.speak ("If you want to go to the next article, please continue. Otherwise, read me for another section"); $ Scope.reco ();   

Rico () Voice recognition of the call I to end before reco (<)

 < Code> navigator.tts.speak (* & lt; news_headline. & Gt; *)   

) is said to be using angular, Trying to use the promise ($ q) (in some different ways), but I can not seem to know how to speak () before getting the reco ( ) is any suggestions?

Another dimension: I am using PhoneGap (almost entirely for Android purposes), and in my short experience, it can cause many problems. Any help about this will be appreciated.

I have just checked the document for both TTS plugins listed on Build. Phonegap.com and both have callback functionality.

Try it:

  navigator.tts.speak ("If you want to go to the next article, please continue, otherwise, read me for another section" , $ Scope.reco);    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -