say.js icon indicating copy to clipboard operation
say.js copied to clipboard

Callback doesn't execute

Open tlhunter opened this issue 6 years ago • 2 comments

This issue was reported by @ErickWendel.

Apparently, on macOS, the callback doesn't fire when the message is done being spoken. Or, perhaps it runs immediately instead of waiting for the speech to finish.

tlhunter avatar Apr 21 '19 23:04 tlhunter

I can confirm this on Windows, callback runs immediately as the speech starts with following example...

var q = async.queue(function(message, cb) {
	say.speak(message, null, null, (err)=>{
		if (err) {
			return console.error(err)
		}
		cb();
	});
}, 1);

q.push('The birch canoe slid on the smooth planks.');
q.push('The birch canoe slid on the smooth planks.');
q.push('The birch canoe slid on the smooth planks.');

krlicmuhamed avatar Apr 29 '19 13:04 krlicmuhamed

In my case, it works perfectly on windows @krlicmuhamed

iitsuraj avatar Jun 21 '19 06:06 iitsuraj