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

Speech stops halfway while speaking #47

Closed
manishsharma1992 opened this issue Sep 11, 2016 · 2 comments
Closed

Speech stops halfway while speaking #47

manishsharma1992 opened this issue Sep 11, 2016 · 2 comments

Comments

@manishsharma1992
Copy link

Hi @parente,

I am using Ubuntu 16.01 LTS, I am facing problem with the speech, here is my sample code

import pyttsx

engine = pyttsx.init('espeak')
engine.say('Hello, I am C 4 3 2 1, What can I do for you ?')
engine.say('A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z')
engine.runAndWait()

When I try to execute the above code, it speaks first line clearly but it fails to speak second line. In some scenarios it doesn't speak even first line clearly.

Can you please advise, thanks in advance.

@nickgermaine
Copy link
Member

Hey there, I recently acquired this project, so I just wanted you to know this project will be seeing activity here quite soon, and I'll have a look at all issues and attempt to resolve as many as I reasonably can.

Thanks for logging this issue.

Cheers

@nickgermaine
Copy link
Member

I believe you need to add engine.runAndWait() after each .say call.

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

No branches or pull requests

2 participants