//reads the current feed and call the callback function if exists.
//the callback function receives if a next item exist
function sayCurrentFeed(callback){
var item = currentFeed[currentItem],
text = item.title + composeBody(item.content,item.description);
say( text ,"com.google.android.tts", "spa-esp", "media", 7, 5);
if(callback)
callback( currentItem < currentFeed.length);
}
I don't know java, so I'm not sure if this is at all useful, but in a regular Tasker say action, you can check the box next to Continue Task Immediately, to avoid that, I think. I could be wrong, but hopefully it helps.
Yes, The say action is performed several times. Until end of the array or tasker crashes,which is pretty common.
I will investigate the continue task option, but I want the script to wait until the say command has finished,so I don't think that could be useful.
Hope anyone could throw some light on this topic.