Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

pythonic interface to SAPI5?

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


krecoun at gmail

Aug 17, 2012, 9:19 AM

Post #1 of 3 (123 views)
Permalink
pythonic interface to SAPI5?

Hi,
I am developing audiogame for visually impaired users and I want it to
be multiplatform. I know, that there is library called accessible_output
but it is not working when used in Windows for me.
I tried pyttsx, which should use Espeak on Linux and SAPI5 on Windows.
It works on Windows, on Linux I decided to use speech dispatcher bindings.
But it seems that I can't interrupt speech when using pyttsx and this is
showstopper for me.
Does anyone has any working solution for using SAPI5 on windows?
Thank you very much,
Vojta
--
http://mail.python.org/mailman/listinfo/python-list


maniandram01 at gmail

Aug 18, 2012, 6:44 AM

Post #2 of 3 (111 views)
Permalink
Re: pythonic interface to SAPI5? [In reply to]

A simple workaround is to use:
speak = subprocess.Popen("espeak",stdin = subprocess.PIPE)
speak.stdin.write("Hello world!")
time.sleep(1)
speak.terminate() #end the speaking


On 17 August 2012 21:49, Vojtìch Polá¹ek <krecoun [at] gmail> wrote:

> Hi,
> I am developing audiogame for visually impaired users and I want it to
> be multiplatform. I know, that there is library called accessible_output
> but it is not working when used in Windows for me.
> I tried pyttsx, which should use Espeak on Linux and SAPI5 on Windows.
> It works on Windows, on Linux I decided to use speech dispatcher bindings.
> But it seems that I can't interrupt speech when using pyttsx and this is
> showstopper for me.
> Does anyone has any working solution for using SAPI5 on windows?
> Thank you very much,
> Vojta
> --
> http://mail.python.org/mailman/listinfo/python-list
>


krecoun at gmail

Aug 18, 2012, 11:03 AM

Post #3 of 3 (114 views)
Permalink
Re: pythonic interface to SAPI5? [In reply to]

Thank you very much,
I have found a DLL which is designed exactly for us and I use it through
ctypes.
Vojta
On 18.8.2012 15:44, Ramchandra Apte wrote:
> A simple workaround is to use:
> speak = subprocess.Popen("espeak",stdin = subprocess.PIPE)
> speak.stdin.write("Hello world!")
> time.sleep(1)
> speak.terminate() #end the speaking
>
>
>
> On 17 August 2012 21:49, Vojtěch Polášek <krecoun [at] gmail
> <mailto:krecoun [at] gmail>> wrote:
>
> Hi,
> I am developing audiogame for visually impaired users and I want it to
> be multiplatform. I know, that there is library called
> accessible_output
> but it is not working when used in Windows for me.
> I tried pyttsx, which should use Espeak on Linux and SAPI5 on Windows.
> It works on Windows, on Linux I decided to use speech dispatcher
> bindings.
> But it seems that I can't interrupt speech when using pyttsx and
> this is
> showstopper for me.
> Does anyone has any working solution for using SAPI5 on windows?
> Thank you very much,
> Vojta
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
>
>

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.