A simple workaround is to use:<div>speak = subprocess.Popen("espeak",stdin = subprocess.PIPE)</div><div>speak.stdin.write("Hello world!")</div><div>time.sleep(1)</div><div>speak.terminate() #end the speaking<br>
<span class="Apple-style-span" style="background-color:rgb(255,255,255)"><span class="Apple-style-span" style="font-family:sans-serif;font-size:16px"></span><dd style="font-family:sans-serif;font-size:16px;margin-top:3px;margin-bottom:10px;margin-left:30px;text-align:justify;line-height:20px">
</dd></span><div><br><br><div class="gmail_quote">On 17 August 2012 21:49, Vojtěch Polášek <span dir="ltr"><<a href="mailto:krecoun@gmail.com" target="_blank">krecoun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I am developing audiogame for visually impaired users and I want it to<br>
be multiplatform. I know, that there is library called accessible_output<br>
but it is not working when used in Windows for me.<br>
I tried pyttsx, which should use Espeak on Linux and SAPI5 on Windows.<br>
It works on Windows, on Linux I decided to use speech dispatcher bindings.<br>
But it seems that I can't interrupt speech when using pyttsx and this is<br>
showstopper for me.<br>
Does anyone has any working solution for using SAPI5 on windows?<br>
Thank you very much,<br>
Vojta<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div></div>