From: Jeffrey C. <dil...@ya...> - 2001-12-25 00:23:57
|
I have changed test1.shtml a lil bit. I named it playsound.shtml and it looks like: <html><head><title>Shell</title></head></body> <!--#exec cmd="playsound_noph $QUERY_STRING &" --> </body></html> The call to it then looks like: get "http://192.168.1.100/playsound.shtml?/audrey/filename.wav"; It can then be used for many items, but, I cannot get it to work using an http address. When I try playsound_noph http://myserver/blah.wav I get a 404 Not Found. Any ideas? The exact same address works in the browser. Jeff -----Original Message----- From: Keith Webb <ke...@pl...> To: Misterhouse-Users <mis...@li...> Date: Mon, 24 Dec 2001 17:24:13 -0500 Subject: Re: [misterhouse-users] Remote CID Announce on Audrey (wav push) > Bruce, > > In my case, I'm using a hacked Audrey image by davinci27 called MQNX > (mostly QNX) > with most of the kojak software removed so the Voyager browser doesn't > respond to > SendMessage. My objective with playsound_noph is the ability for the > Audrey to > play wav files in the background without any user action. So MH > "pushes" the wav > file to the Audrey automatically to extend the CID voice announce > feature (we have > enjoyed so much), like a remote speaker in distributed audio. You will > also avoid > the stop/play window on the Audrey (in my case preferred). > > I was having trouble with Audrey pulling the wav file before it was > actually > updated so it would play the "old" file, so I added the file_changed > code to wait > until the file was actually changed before pushing to the Audrey. The > test1.shtml > is a simple file that executes playsound_noph on the remote Audrey: > > <html><head><title>Shell</title></head></body> > <!--#exec cmd="playsound_noph http://remote.host/caller.wav &" --> > </body></html> > > My original scope was CID stuff but it would be great if you could > address the > Audrey as you would a remote speaker in a distributed audio setup. > > Keith > > Bruce Winter wrote: > > > Keith, a neat trick! I think to make it even easier, we can change > this: > > > > run "get_url http://192.168.2.140/test1.shtml"; > > > > To this, to automatically point the audry back to the mh url of the > wav > > file. > > > > run qq[get > > > "http://$audrey/cgi-bin/SendMessage?M=GOTO_URL&S=http://$Info{Machine}: > $conf > > ig_parms{http_port}/caller.wav"]; > > > > That way we don't need to create a test1.shtml on each audry. Or is > there > > an advantage to that? What does test1.shtml have in it? The above > redirect > > leaves a stop/play window on the audrey. > > > > I think I'll add a to_audry option to speak, so we can call this from > > anywhere, not just the callerid stuff. > > > > Bruce > > > > -----Original Message----- > > > > I finally got around to installing the 6.0 RTP ISO so I could > re-compile > > playsound_noph (the original binary would not work in the background > for > > some reason). The files are at http://www.planetwebb.com/audrey > > > > Attached is a modified phone_modem.pl file to include "pushing" the > wav > > data by way of a .shtml file on the target Audrey to "pull" the file > and > > play locally by playsound_noph. To reduce latency, I changed the > code to > > save the callerid info to wav first, then check if the file had > changed > > before speaking on the local mh box and pushing to Audreys. Bruce, > I'm > > not sure if my method is best but it seems to work (and my wife > finally > > approves of the 4 Audreys I purchased ;-). > > > > On the Audreys, you need to have remote access to Slinger and place > the > > test1.shtml file in the document root (on my machine that would be > > /data/XML directory) and modify to point to your MH box. > > > > This works regardless of the webmute setting as it is hardcoded in > > phone_modem.pl (attached as keith_phone_modem.pl) > > > > -- > > Keith Webb > > keith at planetwebb dot com > > Cycle Cobb - Promote Cycling in Cobb County > > > > ________________________________________________________ > > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > -- > Keith Webb > ke...@pl... > Cycle Cobb - Promote Cycling in Cobb County > __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com |
From: Jeffrey C. <dil...@ya...> - 2001-12-28 01:05:09
|
Actually, when I wrote 'myserver', I meant '192.168.1.2' which is an apache server I am running. I can get to 'http://192.168.1.2/whatever.wav' from my audrey browser, but, I cannot get 'playsound_noph http://192.168.1.2/whatever.wav' to work from the shell. So, obviously, my MH get command won't work either. The .wav push code works for me if I use a .wav in a mounted directory ie. 'playsound_noph /mountname/whatever.wav'. I haven't tried it again since I posted the last message. I am sure I miskeyed something. I'll probably get back to it this weekend and figure out what I did wrong. Jeff -----Original Message----- From: "Bruce Winter" <br...@mi...> To: "Misterhouse-Users" <mis...@li...> Date: Thu, 27 Dec 2001 18:06:58 -0600 Subject: RE: [misterhouse-users] Remote CID Announce on Audrey (wav push) > The $QUERY_STRING var is a nice trick! > > So the perl get command (from use LWP::Simple) does not resolve > myserver to > the correct ip address? I do the same thing in mh/code/bruce/audrey.pl > ... > have you tried that code? (change kitchen, piano, etc. to your audrey > names). I have not tried the audry shtml wav push code yet. > > Do you run with get from mh, or do a run "get_url ..." background > process? > > Bruce > > -----Original Message----- > > I have changed test1.shtml a lil bit. > > I named it playsound.shtml and it looks like: > <html><head><title>Shell</title></head></body> > <!--#exec cmd="playsound_noph $QUERY_STRING &" --> > </body></html> > > The call to it then looks like: > get > "http://192.168.1.100/playsound.shtml?/audrey/filename.wav"; > > It can then be used for many items, but, I cannot get > it to work using an http address. When I try > playsound_noph http://myserver/blah.wav I get a 404 > Not Found. Any ideas? The exact same address works > in the browser. > > > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com |
From: Jack G. <jga...@at...> - 2002-01-03 22:08:14
|
I'm coming in late to this conversation so I apologize if I'm missing = the point or anything here. I just got Misterhouse up and running within = the last week, but I have been wanting to stream audio to my Audreys for = a while now.=20 I was thinking about compiling netcat on qnx and then setting up each = audrey with netcat listening for incoming audio on a port and = redirecting the output to the playsound_noph application. From = misterhouse you just netcat the wav file you want to play on the audrey = to the ip and port of the netcat server running on the audrey and the = audio should be streamed. This should be easier to manage and quicker = then copying a wave file etc. I haven't had a chance to test any of this = out yet, but I think it would work well. Does anyone see any problems = with this idea? Jack Gassett. |
From: Robert R. <ro...@fr...> - 2002-01-03 23:05:33
|
Well, if this is feasible it would be good more general option. There could be = some problems with streaming, but since is a speech it probably won't = matter. For a longer time I'm waiting for feature to stream audio not = just to but also from Audrey (we could gain house intercom in this way = and also redirect phone calls to Audreys speakers and mics) and also we = could do speech recognition on streamed audio. Well, at least I'm really interested in this. Could you release some = more info and code so we can try it ? Thanks in advance, Robert Rozman ----- Original Message -----=20 From: Jack Gassett=20 To: mis...@li...=20 Sent: Thursday, January 03, 2002 11:08 PM Subject: RE: [misterhouse-users] Remote CID Announce on Audrey (wav = push) I'm coming in late to this conversation so I apologize if I'm missing = the point or anything here. I just got Misterhouse up and running within = the last week, but I have been wanting to stream audio to my Audreys for = a while now.=20 =20 I was thinking about compiling netcat on qnx and then setting up each = audrey with netcat listening for incoming audio on a port and = redirecting the output to the playsound_noph application. From = misterhouse you just netcat the wav file you want to play on the audrey = to the ip and port of the netcat server running on the audrey and the = audio should be streamed. This should be easier to manage and quicker = then copying a wave file etc. I haven't had a chance to test any of this = out yet, but I think it would work well. Does anyone see any problems = with this idea? Jack Gassett. |
From: Jeffrey C. <dil...@ya...> - 2002-01-15 15:18:03
|
Also, bholio made a fix to playsound_noph that works with 'http://' type addresses. The one from Keith only worked for mounted shares for me. Keith sent me an email saying that the old version appended a / to the end of it and caused an error (ie. http://whatever.com/sound.wav/). He made a change and it works on my NON MQNX (plain hacked) Audreys. It can be found at: http://dilligaf.d2g.com/audrey/playsound.zip Jeff -----Original Message----- From: mis...@li... [mailto:mis...@li...]On Behalf Of Bruce Winter Sent: Tuesday, January 15, 2002 8:21 AM To: Misterhouse-Users Subject: RE: [misterhouse-users] Remote CID Announce on Audrey (wav push) Did you try the playsound_noph files from Keiths website (http://www.planetwebb.com/audrey)? They worked great for me, on my plain hacked Audrey (no full qnx installed). Attached is a new ia_faq entry I just added: 'How to push speech to remote Audreys'. It uses the new speak/play address option. If you want to try it out and don't want to way for this weekends release, you can pick up the updated code here: http://misterhouse.net:81/public/misterhouse_src_test.zip Bruce -----Original Message----- Hello, I don't have customized image on my Audrey and playsound_noph doesn't work: I get message: unknown symbol: snd_pcm_close unknown symbol: snd_pcm_open_preferred unknown symbol: snd_pcm_find unknown symbol: snd_strerror I suspect I'm missing some libraries. Could someone help me to complete this ? Thanks in advance, Robert Rozman ----- Original Message ----- From: Keith Webb To: Misterhouse-Users Sent: Monday, December 24, 2001 11:24 PM Subject: Re: [misterhouse-users] Remote CID Announce on Audrey (wav push) Bruce, In my case, I'm using a hacked Audrey image by davinci27 called MQNX (mostly QNX) with most of the kojak software removed so the Voyager browser doesn't respond to SendMessage. My objective with playsound_noph is the ability for the Audrey to play wav files in the background without any user action. So MH "pushes" the wav file to the Audrey automatically to extend the CID voice announce feature (we have enjoyed so much), like a remote speaker in distributed audio. You will also avoid the stop/play window on the Audrey (in my case preferred). -- Keith Webb ---------------------- =head2 How to push speech to remote Audreys There are 2 ways to do remotely play wav files on an Audrey. One plays a wav file in the foreground by creating a popup window, the other uses playsound_noph to play wav files in the background. Both ways requre you first enable remote control (see 'Remote Audrey browsing and control' above). To enable the forground wav playing, simply add this mh.ini parm: voice_text_address_code = run 'get_url -quiet "http://$address/cgi-bin/SendMessage?M=GOTO_URL&S=$url" /dev/null' Now simply use the address argument when calling speak or play. For example (substitute in you Audrey ip address): speak "address=192.168.0.101 Hello to the study"; play address => 'study', file => '../sounds/hello_from_bruce.wav'; To install playsound_noph, download it from Keith Webb's site: http://www.planetwebb.com/audrey . Copy playsound_noph to /nto/photon/bin/ and soundfile_noph.so to /nto/photon/dll/. Note, you do not need to be running qnx. A normal hacked Audrey works fine. Type this html into /data/XML/playsound.shtml: <html><head><title>Shell</title></head></body> <!--#exec cmd="playsound_noph $QUERY_STRING &" --> </body></html> Finally, add this mh.ini parm: voice_text_address_code = run 'get_url -quiet "http://$address/playsound.shtml?$url" /dev/null' And use the speak and play examples from above. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ |
From: Eric A. <zi...@pa...> - 2001-12-26 19:44:37
|
Hey, I was going to simply browser detect for my audrey on 1 page for testing purposes, but I don't see the user agent value anywhere online. Can someone forward that to me if you have it? For Microsoft it's - if (navigator.appName.indexOf('Microsoft') > -1) I was hoping for the Audrey it would be as simple as - if (navigator.appName.indexOf('Audrey') > -1) but unfortunately it's not. Thanks, Eric |
From: Bruce W. <br...@mi...> - 2001-12-28 00:07:07
|
> I was going to simply browser detect for my audrey on 1 page for > testing purposes, > but I don't see the user agent value anywhere online. > > Can someone forward that to me if you have it? For Microsoft it's - > > if (navigator.appName.indexOf('Microsoft') > -1) > > I was hoping for the Audrey it would be as simple as - > > if (navigator.appName.indexOf('Audrey') > -1) > > but unfortunately it's not. The out-of-the-box Audrey does not have a unique user agent string. If you update, the string will look like this: User-Agent value=Mozilla/4.7 (Win98; Audrey) Bruce |
From: Bruce W. <br...@mi...> - 2001-12-28 00:07:07
|
The $QUERY_STRING var is a nice trick! So the perl get command (from use LWP::Simple) does not resolve myserver to the correct ip address? I do the same thing in mh/code/bruce/audrey.pl ... have you tried that code? (change kitchen, piano, etc. to your audrey names). I have not tried the audry shtml wav push code yet. Do you run with get from mh, or do a run "get_url ..." background process? Bruce -----Original Message----- I have changed test1.shtml a lil bit. I named it playsound.shtml and it looks like: <html><head><title>Shell</title></head></body> <!--#exec cmd="playsound_noph $QUERY_STRING &" --> </body></html> The call to it then looks like: get "http://192.168.1.100/playsound.shtml?/audrey/filename.wav"; It can then be used for many items, but, I cannot get it to work using an http address. When I try playsound_noph http://myserver/blah.wav I get a 404 Not Found. Any ideas? The exact same address works in the browser. |