Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Text To Speech with pyTTS

Reply
Thread Tools

Text To Speech with pyTTS

 
 
Mike P.
Guest
Posts: n/a
 
      02-27-2005
Hi,
I was wondering if anyone has had any luck with the python text to speech
(pyTTS) module available on Sourceforge:
http://sourceforge.net/projects/uncassist

I have followed the tutorial for pyTTS at:
http://www.cs.unc.edu/~parente/tech/tr02.shtml

Using the first simple speech example:

import pyTTS

tts = pyTTS.Create()
tts.Speak("Hello World!")

I get the following error on the call to pyTTS.Create()

C:\Program Files\Python23\Lib\site-packages\pyTTS>python
ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyTTS
>>> tts = pyTTS.Create()

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Program Files\Python23\Lib\site-packages\pyTTS\__init__.py", line
28, in Create
raise ValueError('"%s" not supported' % api)
ValueError: "SAPI" not supported
>>>


I followed the instructions in the tutorial in order and installed the
required packages in the following order, given that I already had an
ActiveState Python 2.3 installation under Windows XP.

1) wxPython2.5-win32-unicode-2.5.3.1-py23.exe (didn't already have this and
some of the pyTTS demos need it)

2) Microsoft SAPI 5.1 (SAPI5SpeechInstaller.msi)
3) Extra Microsoft Voices (SAPI5VoiceInstaller.msi)
4) pyTTS-3.0.win32-py2.3.exe (pyTTS for Python 2.3 under windows)

I ran the example and it didn't work. I didn't initially install Mark
Hammond's
Python win32all extensions, because they already come with ActiveState
Python.
So I tried installing the win32all (win32all-163.exe) package just in case,
but I still
get the SAPI not supported error.

Anyone get this working - any suggestions? Or am I missing something
obvious?

Thanks In Advance.

Mike P.


 
Reply With Quote
 
 
 
 
Peter Hansen
Guest
Posts: n/a
 
      02-27-2005
Mike P. wrote:
> I was wondering if anyone has had any luck with the python text to speech
> (pyTTS) module available on Sourceforge:
> http://sourceforge.net/projects/uncassist


I saw the following blog entry by Joey deVilla:
http://farm.tucows.com/blog/Platform...19/266813.html

and immediately tried it out. All I did was download the
PyTTS package for Python (2.4, not 2.3), and install it,
then ran Joey's sample above. It worked as advertised.
This was on Windows XP SP2.

-Peter
 
Reply With Quote
 
 
 
 
Will McGugan
Guest
Posts: n/a
 
      02-27-2005
Peter Hansen wrote:
> Mike P. wrote:
>
>> I was wondering if anyone has had any luck with the python text to speech
>> (pyTTS) module available on Sourceforge:
>> http://sourceforge.net/projects/uncassist

>
>
> I saw the following blog entry by Joey deVilla:
> http://farm.tucows.com/blog/Platform...19/266813.html
>
>
> and immediately tried it out. All I did was download the
> PyTTS package for Python (2.4, not 2.3), and install it,
> then ran Joey's sample above. It worked as advertised.
> This was on Windows XP SP2.


I experience the same thing as Mike P. Im running on Windows 2K.

Will McGugan
 
Reply With Quote
 
Hans Georg Krauthaeuser
Guest
Posts: n/a
 
      02-28-2005
Mike P. wrote:
> Hi,
> I was wondering if anyone has had any luck with the python text to speech
> (pyTTS) module available on Sourceforge:
> http://sourceforge.net/projects/uncassist
>
> I have followed the tutorial for pyTTS at:
> http://www.cs.unc.edu/~parente/tech/tr02.shtml
>
> Using the first simple speech example:
>
> import pyTTS
>
> tts = pyTTS.Create()
> tts.Speak("Hello World!")
>
> I get the following error on the call to pyTTS.Create()
>
> C:\Program Files\Python23\Lib\site-packages\pyTTS>python
> ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
> Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>
>>>>import pyTTS
>>>>tts = pyTTS.Create()

>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "C:\Program Files\Python23\Lib\site-packages\pyTTS\__init__.py", line
> 28, in Create
> raise ValueError('"%s" not supported' % api)
> ValueError: "SAPI" not supported
> ...


The TTSFast.py file is missing in the 2.3 distribution. I made a copy
from the 2.4 dist and everything worked fine for me.

Hans Georg
 
Reply With Quote
 
Steve Holden
Guest
Posts: n/a
 
      02-28-2005
Mike P. wrote:

> Hi,
> I was wondering if anyone has had any luck with the python text to speech
> (pyTTS) module available on Sourceforge:
> http://sourceforge.net/projects/uncassist
>
> I have followed the tutorial for pyTTS at:
> http://www.cs.unc.edu/~parente/tech/tr02.shtml
>
> Using the first simple speech example:
>
> import pyTTS
>
> tts = pyTTS.Create()
> tts.Speak("Hello World!")
>
> I get the following error on the call to pyTTS.Create()
>
> C:\Program Files\Python23\Lib\site-packages\pyTTS>python
> ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
> Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>
>>>>import pyTTS
>>>>tts = pyTTS.Create()

>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "C:\Program Files\Python23\Lib\site-packages\pyTTS\__init__.py", line
> 28, in Create
> raise ValueError('"%s" not supported' % api)
> ValueError: "SAPI" not supported
>
>
> I followed the instructions in the tutorial in order and installed the
> required packages in the following order, given that I already had an
> ActiveState Python 2.3 installation under Windows XP.
>
> 1) wxPython2.5-win32-unicode-2.5.3.1-py23.exe (didn't already have this and
> some of the pyTTS demos need it)
>
> 2) Microsoft SAPI 5.1 (SAPI5SpeechInstaller.msi)
> 3) Extra Microsoft Voices (SAPI5VoiceInstaller.msi)
> 4) pyTTS-3.0.win32-py2.3.exe (pyTTS for Python 2.3 under windows)
>
> I ran the example and it didn't work. I didn't initially install Mark
> Hammond's
> Python win32all extensions, because they already come with ActiveState
> Python.
> So I tried installing the win32all (win32all-163.exe) package just in case,
> but I still
> get the SAPI not supported error.
>
> Anyone get this working - any suggestions? Or am I missing something
> obvious?
>
> Thanks In Advance.
>
> Mike P.
>
>

I got the "SAPI not supported" error until I installed the
SpeechInstaller and VoiceInstaller components, after which everything
worked fine for me. (Win2K SP4, Python 2.4 plus win32 extentions).

regards
Steve


--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
 
Reply With Quote
 
Peter
Guest
Posts: n/a
 
      03-04-2005
I released a new version of the Windows installer for Python 2.3 that
includes the missing _TTSFast.pyd file.


Peter Hansen wrote:
> Mike P. wrote:
> > I was wondering if anyone has had any luck with the python text to

speech
> > (pyTTS) module available on Sourceforge:
> > http://sourceforge.net/projects/uncassist

>
> I saw the following blog entry by Joey deVilla:
>

http://farm.tucows.com/blog/Platform...19/266813.html
>
> and immediately tried it out. All I did was download the
> PyTTS package for Python (2.4, not 2.3), and install it,
> then ran Joey's sample above. It worked as advertised.
> This was on Windows XP SP2.
>
> -Peter


 
Reply With Quote
 
Hans Georg Krauthaeuser
Guest
Posts: n/a
 
      03-04-2005
Peter wrote:
> I released a new version of the Windows installer for Python 2.3 that
> includes the missing _TTSFast.pyd file.
>
>

Unfortunenately, the file TTSFast.py is missing, not _TTSFast.pyd.

Hans Georg
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using pyTTS with other languages. simon kagwe Python 2 06-04-2007 03:00 PM
interactive programe-pyTTS &Tk Rob Williscroft Python 1 09-24-2006 10:11 PM
interactive program,pyTTS & Tk masternige Python 0 09-24-2006 12:40 PM
Text to MP3 using pyTTS - Non-programmer question seyeRMReyes@gmail.com Python 7 08-23-2006 04:54 PM
interactive programme, using pyTTS carmel stanley Python 0 06-15-2006 12:26 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57