logging sound / speech handler?

Matteo mahall at ncsa.uiuc.edu
Thu Sep 10 16:27:11 EDT 2009


On Sep 9, 6:02 pm, Tim Chase <python.l... at tim.thechases.com> wrote:
> > For an application in an industrial environment where the workers are
> > not always sitting in front of the monitor, but are within earshot of
> > the PC I would need an sound / speech handler for the standard logging
> > system. It should beep or better say the logging message. (with
> > standard filtering etc.)
> > I google search was not successfull.
> > Does anybode know of such a handler?
...
>
> On *nix, there's the Festival/Flite/Mbrola suite of TTS tools.
> You might be able to have one of their toolkit listen on a pipe
> to read whatever comes in, and then just log to that FIFO target
> as a file.
>
> -tkc

Also, in the unlikely event that you are using a Mac for industrial
applications, you can use the OS X "say" command in a similar manner,
using Popen. Or, for very infrequent messages, just os.system("say " +
log_text).

-matt



More information about the Python-list mailing list