Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback doesn't execute #86

Open
tlhunter opened this issue Apr 21, 2019 · 2 comments
Open

Callback doesn't execute #86

tlhunter opened this issue Apr 21, 2019 · 2 comments
Labels

Comments

@tlhunter
Copy link
Collaborator

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.

@krlicmuhamed
Copy link

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.');

@iitsuraj
Copy link

In my case, it works perfectly on windows
@krlicmuhamed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants