logging sound / speech handler?

G

Gregor Horvath

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?
 
S

Stef Mientki

Gregor said:
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?
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
 
C

Chris Hulan

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?

Its Java, but JFugue and Log4JFugue show an interesting take on log
sonification
 
T

Tim Chase

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
 
M

Matteo

....

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top