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

pyttsx.init('epseak').say doesn't work the second time #45

Open
DrRek opened this issue Jun 3, 2016 · 3 comments
Open

pyttsx.init('epseak').say doesn't work the second time #45

DrRek opened this issue Jun 3, 2016 · 3 comments

Comments

@DrRek
Copy link

DrRek commented Jun 3, 2016

engine.say just work for the first time, however all the next call to 'speak' it just say the first letter.
I also tried not using functions but nothing changed, am i doing something wrong?

import pyttsx
import os

engine = pyttsx.init('espeak')
engine.setProperty('rate', 150)

def speak(text):
     engine.say(text)
     engine.runAndWait()

speak("executing command...")
os.system("echo test")
speak("command executed")
@DrRek DrRek closed this as completed Jun 3, 2016
@DrRek DrRek reopened this Jun 3, 2016
@Anthony-Alridge
Copy link

I seem to be having the same issue here, have you made any progress on it?

@Anthony-Alridge
Copy link

Anthony-Alridge commented Aug 1, 2016

For now I just run init every time i want to speak.

def speak():
        e = pyttsx.init('espeak`)
        e.setProperty('rate', 150)
        e.say(text)
        e.runAndWait()

@DrRek
Copy link
Author

DrRek commented Aug 1, 2016

No man, i'm noto working on that project anymore, if u get the problem let me now, it would be usefull
Il 01 ago 2016 13:56, Anthony-Alridge notifications@github.com ha scritto:I seem to be having the same issue here, have you made any progress on it?

—You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub, or mute the thread.

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