main logo
Subject: Re: [ProLinux] PHP play a sound?
Author: "Leland F. Jackson, CPA"
Posted: 2007/09/28 14:03:40
 
View Entire Thread
New Search


Whoops, the definition of "Thin Client" is so board that the answer to
your question would depend on your definition of "Thin Client". The
answer I supplied was based on a terminal like "Thin Client".

http://tldp.org/HOWTO/Text-Terminal-HOWTO-3.html

Regards,

LelandJ

Leland F. Jackson, CPA wrote:
> Leland F. Jackson, CPA wrote:
>
>> Matthew Jarvis wrote:
>>
>>
>>> Background: I'm tasked with alerting the production line if they start
>>> to lag behind. A browser shows various status stuff one of which is how
>>> many minutes are left in the production cycle. If there are 10 minutes
>>> left and they haven't met the pace, then play the alert.
>>>
>>> I'd like to be able to tell php to play a sound file, or at least beep.
>>> This will be running on a linux-based thin client which does have a
>>> speaker jack...
>>>
>>>
>>>
>>>
>>>
>> You can redirect the audio file to your standard sound output device.
>> From the command line it might look something like:
>>
>> play /usr/share/sounds/warning.wav > /dev/audio
>>
>> Then it would be a matter of wrapping this command in a php line that
>> would execute it.
>>
>> A word of warning. You might want to turn you sound down until you find
>> the device file set to play sound on your system.
>>
>> Regards,
>>
>> LelandJ
>>
>>
>>
>
> If the speakers are in the thin client, you would need to know to which
> device the thin client was connected, then you could redirect the sound
> to that device. I'm assuming that the thin client would know the
> difference between audio and video input and direct it to the proper
> device. The command might look something like:
>
> play /usr/share/sounds/warning.wav > /dev/ttyi18
>
> It is possible the sound cards in the thin client would have their own /dev/xxx
>
> Regards,
>
> LelandJ
>
>
>
>
>
>
[excessive quoting removed by server]


 
©2007 Leland F. Jackson, CPA
<-- Prior Message New Search Next Message -->