Re: Changing sound volume

2007-06-25 Thread simon kagwe
> And finally a way that might work using ctypes:
> 
> http://mail.python.org/pipermail/python-win32/2006-March/004436.html
> 
> Mike

Hi, 

Thanks for your reply.

I had already read about the Snack, but I can't use it since my program uses 
wxPython for the GUI and Snack requires tk. The best option was the ctypes 
method you told me about. I used the code in the sample, but I am getting the 
following error:

exceptions.WindowsError Error 11 while setting volume

The author of the code claims it works. What could be causing the above error?

[ I am using Python 2.4.4 and ctypes 1.0.1 ]

Regards,
Simon




-- 
http://mail.python.org/mailman/listinfo/python-list


Changing sound volume

2007-06-23 Thread simon kagwe
Hi,

I am playing sounds using the winsound module. Is there a way I can change the 
volume?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: get a list from a string

2007-06-07 Thread simon kagwe
> exec("distances = [[1,1,1,1],[2,2,2,2]]")
Wow! So simple!

Thanks a lot. :-)




-- 
http://mail.python.org/mailman/listinfo/python-list


get a list from a string

2007-06-07 Thread simon kagwe
Hi,

I have a string "distances = [[1,1,1,1],[2,2,2,2]]". I want to create a
variable called distances whose value is the list [[1,1,1,1],[2,2,2,2]]. How can
I go about that? I know I can use setattr, but how do I create the list from the
string?

Regards,
Simon

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Using pyTTS with other languages.

2007-06-04 Thread simon kagwe
  gmail.com> writes:

> It describes how to use mis-spelled words to force correct
> pronunciation as well as how to do it with XML.
> 
> Mike
> 

Thanks Mike. I had already read that article. I thought the mis-spelling and 
XML are meant to deal with pronunciation of English words. Will it really 
handle pronunciation of words of a whole new language? 
For example, if I want to say 'good' in Zulu, I may end up saying a word that 
has entirely different phenomes (and throw in some clicking sounds like in 
those 'God's must be crazy' movies). For my language, I have already collected 
recordings of its syllables and some words. I tried it out with pyTTS and it 
pronounces some words completely different they aren't even close to the way 
they should be. 


-- 
http://mail.python.org/mailman/listinfo/python-list


Using pyTTS with other languages.

2007-06-04 Thread simon kagwe
Hi,

I would like to create a TTS program for a local (Kenyan) language. I have
installed pyTTS on my computer and it works perfectly with English sentences.
However, my language is very different from English (sylabbles, pronounciation
etc.) How can I go about having a TTS program that correctly speaks my language?
Can pyTTS do this?

I need all the help I can get.

Regards,
Simon.

-- 
http://mail.python.org/mailman/listinfo/python-list