Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > logging sound / speech handler?

Reply
Thread Tools

logging sound / speech handler?

 
 
Gregor Horvath
Guest
Posts: n/a
 
      09-09-2009
Hi,

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?

--
Gregor
 
Reply With Quote
 
 
 
 
Stef Mientki
Guest
Posts: n/a
 
      09-09-2009
Gregor Horvath wrote:
> Hi,
>
> 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?
>
> --
> Gregor
>

if you're on windows, you can use the windows speech api:

import win32com.client
s = win32com.client.Dispatch("SAPI.SpVoice")
s.Speak('Is this punthoofd ')

cheers,
Stef
 
Reply With Quote
 
 
 
 
Chris Hulan
Guest
Posts: n/a
 
      09-09-2009
On Sep 9, 11:03*am, Gregor Horvath <g...@gregor-horvath.com> wrote:
> Hi,
>
> 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?
>
> --
> Gregor


Its Java, but JFugue and Log4JFugue show an interesting take on log
sonification
 
Reply With Quote
 
Tim Chase
Guest
Posts: n/a
 
      09-09-2009
> 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?


I think this would end up being an OS-specific thing. On Win32,
Stef suggests using SAPI (which may need to be installed for
older versions such as Win2k). I've not used Win32 TTS for a
while, and don't have ready access to a Win32 box with sound to
run some tests.

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

 
Reply With Quote
 
Matteo
Guest
Posts: n/a
 
      09-10-2009
On Sep 9, 6:02*pm, Tim Chase <python.l...@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
 
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
Finding Java API that can help convert text to sound|speech KeyMan Java 2 01-28-2011 11:58 AM
Logging to a file and closing it again properly (logging module) Christoph Haas Python 0 06-12-2006 09:58 PM
logging buffered vs. logging history Christian Roos Cisco 4 02-05-2006 10:55 PM
java.util.logging, where to put logging.properties? janne Java 0 09-10-2004 10:18 AM
[java.util.logging] logging only to _one_ file Stefan Siegl Java 0 08-27-2003 12:29 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