From: Tim S. <tp...@ma...> - 2007-06-19 01:55:45
|
I think I asked this a while ago, but I don't remember getting an answer. I'm running MH under Linux, and my primary browser (under windows, linux and macos) is firefox. About a year ago, I used to hear the sounds and speech from MH on whatever machine I had the browser running on, slightly delayed from the Audreys, which is a little delayed from the system soundcard. My wife noticed a few months back that this no longer worked, and she wants me to 'change it back' to the way I had it before. Well, needless to day, I didn't change anything, and I'm unable to figure out how to make it work on any browser, on any OS. Is there *anyone* that has this working on something besides their audrey? Tim -- Tim Sailer Coastal Internet, Inc. www.buoy.com 631-399-2910 |
From: Gregg L. <gr...@li...> - 2007-06-20 14:17:44
|
Hi Tim, Quoting Tim Sailer (6/18/07 9:55 PM): > I think I asked this a while ago, but I don't remember getting an answer. > I'm running MH under Linux, and my primary browser (under windows, linux > and macos) is firefox. About a year ago, I used to hear the sounds and > speech from MH on whatever machine I had the browser running on, slightly > delayed from the Audreys, which is a little delayed from the system > soundcard. My wife noticed a few months back that this no longer worked, > and she wants me to 'change it back' to the way I had it before. Well, > needless to day, I didn't change anything, and I'm unable to figure out > how to make it work on any browser, on any OS. Is there *anyone* that has > this working on something besides their audrey? Unfortunately, I don't use either this feature or audreys. However, I am reasonably familiar w/ a good deal of the non-audrey speech-related code and in particular the more recent use of "respond" as a way of targeting (vice broadcasting) the device that initiates a command. I'm willing to take a look and make updates once I understand your specific issue. Are you wanting to hear speech on any (all) web browser or do you want to target specific ones (e.g., treat a web browser as a "room")? Do you currently use the "room" or "address" related parms? Is your audrey speech otherwise ok? Gregg |
From: Stu W. <st...@bl...> - 2007-06-20 20:04:18
|
Gregg, I would also love this functionality. From my point of view, to allow a browser to be set up as a room to receive targeted speech would be a great idea. Let me know how I can help :-) Stu Gregg Liming wrote: > Hi Tim, > > Quoting Tim Sailer (6/18/07 9:55 PM): > >> I think I asked this a while ago, but I don't remember getting an answer. >> I'm running MH under Linux, and my primary browser (under windows, linux >> and macos) is firefox. About a year ago, I used to hear the sounds and >> speech from MH on whatever machine I had the browser running on, slightly >> delayed from the Audreys, which is a little delayed from the system >> soundcard. My wife noticed a few months back that this no longer worked, >> and she wants me to 'change it back' to the way I had it before. Well, >> needless to day, I didn't change anything, and I'm unable to figure out >> how to make it work on any browser, on any OS. Is there *anyone* that has >> this working on something besides their audrey? >> > > Unfortunately, I don't use either this feature or audreys. However, I > am reasonably familiar w/ a good deal of the non-audrey speech-related > code and in particular the more recent use of "respond" as a way of > targeting (vice broadcasting) the device that initiates a command. > > I'm willing to take a look and make updates once I understand your > specific issue. Are you wanting to hear speech on any (all) web browser > or do you want to target specific ones (e.g., treat a web browser as a > "room")? Do you currently use the "room" or "address" related parms? > Is your audrey speech otherwise ok? > > Gregg > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |
From: Tim S. <tp...@ma...> - 2007-06-21 03:49:29
|
On Wed, June 20, 2007 10:17, Gregg Liming said: > Unfortunately, I don't use either this feature or audreys. However, I > am reasonably familiar w/ a good deal of the non-audrey speech-related > code and in particular the more recent use of "respond" as a way of > targeting (vice broadcasting) the device that initiates a command. Good! > I'm willing to take a look and make updates once I understand your > specific issue. Are you wanting to hear speech on any (all) web browser I'd like to hear it on all web browsers unless the webmute is enabled. I'm not sure if this was on a browser by browser setting or was global, as my wife was the only one that cared and used it. > or do you want to target specific ones (e.g., treat a web browser as a > "room")? Do you currently use the "room" or "address" related parms? Only for the audreys > Is your audrey speech otherwise ok? The audrey sounds/speech works fine. I've not had a problem with that after the initial setup. Tim -- Tim Sailer Coastal Internet, Inc. www.buoy.com 631-399-2910 |
From: Andy M. <myi...@st...> - 2007-06-21 05:33:38
|
Hi all, I have been trying to add SMS support to MH using the "SMS::Send" library. I get a run time error of Can't locate object method "decoded_content" via package "HTTP::Headers" at (eval 1006) line 1. Has anybody got any ideas to help fix this?? I used SMS_Item.pm in the mh/lib dir as my base code. It supports "smsboy.com" for sending SMS's. I have changed the code to support the SMS::Send perl library. The library is particularly good since it can be used to send SMS using any carrier - assuming the carrier has a code stub written for it. It appears that "use"ing SMS::Send library is causing the error in MH. Of course, when I run the code outside of MH their is no error and SMS's are sent correctly. Does anybody know why this would cause the error above? Many thanks, Andy. My code basically looks like this: In user code: my $smstest = new SMS_Item ('123', 'pass'); set $smstest '0414123123'; $smstest->send("hello this is a test"); In SMS_Item.pm use SMS::Send; sub new { my($class)=shift(@_); my($self) = {}; $$self{login} = shift(@_); $$self{password} = shift(@_); bless $self, $class; return $self; } sub send { my($self, $message) = @_; my $sender = SMS::Send->new( 'AU::MyVodafone', _login => $$self{login}, _password => $$self{password} ); my $sent = $sender->send_sms( to => $$self{number}, text => $message ); } sub set { my($self, $Number) = @_; $$self{number}=$Number; } |
From: David N. <dno...@ya...> - 2007-06-22 00:50:09
|
One recurring problem we have with misterhouse is out of sync perl modules in mh/lib/site. I would guess SMS::Send requires a newer version of HTTP::Headers than the one in the misterhouse distribution. You can try replacing this one file, but you will probably find there are other dependencies that need updating as well. I don't know if there is an elegant solution to this. Someone once suggested not including the CPAN modules with misterhouse, and downloading them at install time. I think this would make an already difficult install even more painful. And each user would have to update their CPAN modules with each new misterhouse release. Even if CPAN has the ability to update all modules to the latest (does it?), some misterhouse scripts require older versions of some modules and would break. I think Bruce's intent was for the script writer (that means you, Andy) to make sure misterhouse includes the correct versions of the required modules. This is the best we can do for now, IMO. David ----- Original Message ----- From: "Andy McCallum" <myi...@st...> To: "The main list for the MisterHouse home automation program" <mis...@li...> Sent: Wednesday, June 20, 2007 10:33 PM Subject: [mh] Error using SMS::Send > Hi all, > > I have been trying to add SMS support to MH using the "SMS::Send" > library. I get a run time error of > > Can't locate object method "decoded_content" via package > "HTTP::Headers" at (eval 1006) line 1. > > Has anybody got any ideas to help fix this?? > > I used SMS_Item.pm in the mh/lib dir as my base code. It supports > "smsboy.com" for sending SMS's. I have changed the code to support the > SMS::Send perl library. The library is particularly good since it can be > used to send SMS using any carrier - assuming the carrier has a code > stub written for it. > > It appears that "use"ing SMS::Send library is causing the error in MH. > Of course, when I run the code outside of MH their is no error and SMS's > are sent correctly. > > Does anybody know why this would cause the error above? > > Many thanks, > Andy. > > My code basically looks like this: > > In user code: > > my $smstest = new SMS_Item ('123', 'pass'); > set $smstest '0414123123'; > $smstest->send("hello this is a test"); > > > In SMS_Item.pm > > use SMS::Send; > > sub new { > > my($class)=shift(@_); > my($self) = {}; > > $$self{login} = shift(@_); > $$self{password} = shift(@_); > > bless $self, $class; > return $self; > } > > sub send { > my($self, $message) = @_; > > my $sender = SMS::Send->new( > 'AU::MyVodafone', > _login => $$self{login}, > _password => $$self{password} > ); > > my $sent = $sender->send_sms( > to => $$self{number}, > text => $message > ); > } > > sub set { > my($self, $Number) = @_; > $$self{number}=$Number; > } > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > |
From: Andy M. <myi...@st...> - 2007-06-22 04:51:45
|
David, You are spot on. Removing HTTP and HTML modules from mh/lib/site fixed the problem immediately. Thanks!! In answer to your question about CPAN. Yes, it does have a very simple update mechanism: perl -MCPAN -e "upgrade" As for install time ease, I understand your concerns - no one wants to make life hard for inexperienced users. Below is an extract from my history log during the install of MisterHouse. I had to install these modules to get the current MH going. The HTTP/HTML modules are part of the base install already. The commands below show the ease of installation anyway. perl -MCPAN -e "install Net::Telnet" perl -MCPAN -e "install Tk::JPEG" perl -MCPAN -e "install Tk::CursorControl" perl -MCPAN -e "install DB_File" perl -MCPAN -e "install Term::ReadKey" Of course, I did break MH by removing the modules from mh/lib/site. QUESTION: How do we find out what was depending on the outdated library?? AND why was the module put in mh/lib/site? I found that "sub oscar::cb_imin" from "mh/lib/handy_net_utilities.pl" had a single line of code depending on the old module. What docs do we have to confirm that it is the only code relying on the outdated module? I would really like to add SMS::Send (for it's world-wide support of carriers and that other developers are keeping the functionality up to date via CPAN) to MH. I suggest that keeping HTML and HTTP up to date with CPAN would probably be a good idea, but that breaks the Oscar protocol code. Question: Does Oscar support actually work?? My suggestion is to split Oscar code out of "handy_net_utilities.pl" into "Oscar.pl" and make the module selectable. The Oscar code only relies on one module, this could easily be renamed to avoid namespace collisions with later HTML modules from CPAN. Oscar protocol support whilst "handy" is not really a general net utility anyway (http and ftp are) and should not be in the handy_net_utilities.pl file? So, before I spend time changing the code: What does everybody think? What dependencies are their on the outdated HTTP/HTML modules? Were the modules only put in mh/lib/site after a CPAN change broke Oscar? Andy. David Norwood wrote: > One recurring problem we have with misterhouse is out of sync perl modules > in mh/lib/site. I would guess SMS::Send requires a newer version of > HTTP::Headers than the one in the misterhouse distribution. You can try > replacing this one file, but you will probably find there are other > dependencies that need updating as well. > > I don't know if there is an elegant solution to this. Someone once > suggested not including the CPAN modules with misterhouse, and downloading > them at install time. I think this would make an already difficult install > even more painful. And each user would have to update their CPAN modules > with each new misterhouse release. Even if CPAN has the ability to update > all modules to the latest (does it?), some misterhouse scripts require older > versions of some modules and would break. > > I think Bruce's intent was for the script writer (that means you, Andy) to > make sure misterhouse includes the correct versions of the required modules. > This is the best we can do for now, IMO. > > David > > > ----- Original Message ----- > From: "Andy McCallum" <myi...@st...> > To: "The main list for the MisterHouse home automation program" > <mis...@li...> > Sent: Wednesday, June 20, 2007 10:33 PM > Subject: [mh] Error using SMS::Send > > > >> Hi all, >> >> I have been trying to add SMS support to MH using the "SMS::Send" >> library. I get a run time error of >> >> Can't locate object method "decoded_content" via package >> "HTTP::Headers" at (eval 1006) line 1. >> >> Has anybody got any ideas to help fix this?? >> >> I used SMS_Item.pm in the mh/lib dir as my base code. It supports >> "smsboy.com" for sending SMS's. I have changed the code to support the >> SMS::Send perl library. The library is particularly good since it can be >> used to send SMS using any carrier - assuming the carrier has a code >> stub written for it. >> >> It appears that "use"ing SMS::Send library is causing the error in MH. >> Of course, when I run the code outside of MH their is no error and SMS's >> are sent correctly. >> >> Does anybody know why this would cause the error above? >> >> Many thanks, >> Andy. >> >> My code basically looks like this: >> >> In user code: >> >> my $smstest = new SMS_Item ('123', 'pass'); >> set $smstest '0414123123'; >> $smstest->send("hello this is a test"); >> >> >> In SMS_Item.pm >> >> use SMS::Send; >> >> sub new { >> >> my($class)=shift(@_); >> my($self) = {}; >> >> $$self{login} = shift(@_); >> $$self{password} = shift(@_); >> >> bless $self, $class; >> return $self; >> } >> >> sub send { >> my($self, $message) = @_; >> >> my $sender = SMS::Send->new( >> 'AU::MyVodafone', >> _login => $$self{login}, >> _password => $$self{password} >> ); >> >> my $sent = $sender->send_sms( >> to => $$self{number}, >> text => $message >> ); >> } >> >> sub set { >> my($self, $Number) = @_; >> $$self{number}=$Number; >> } >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ________________________________________________________ >> To unsubscribe from this list, go to: >> http://sourceforge.net/mail/?group_id=1365 >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > > > |
From: David N. <dno...@ya...> - 2007-06-23 05:34:09
|
Andy wrote: > In answer to your question about CPAN. Yes, it does have a very simple > update mechanism: > > perl -MCPAN -e "upgrade" This command didn't do anything on my system. It's possible all my CPAN modules are up to date, I guess. > As for install time ease, I understand your concerns - no one wants to > make life hard for inexperienced users. Below is an extract from my > history log during the install of MisterHouse. I had to install these > modules to get the current MH going. The HTTP/HTML modules are part of > the base install already. The commands below show the ease of > installation anyway. > > perl -MCPAN -e "install Net::Telnet" > perl -MCPAN -e "install Tk::JPEG" > perl -MCPAN -e "install Tk::CursorControl" > perl -MCPAN -e "install DB_File" > perl -MCPAN -e "install Term::ReadKey" We could include a script to do this. Does this work on Windows and Macs too? > Of course, I did break MH by removing the modules from mh/lib/site. > > QUESTION: How do we find out what was depending on the outdated > library?? AND why was the module put in mh/lib/site? I removed the HTML and HTTP directories on my system as well. All I had to do to get misterhouse running again was run: perl -MCPAN -e "install HTML::FormatText" > I found that "sub oscar::cb_imin" from "mh/lib/handy_net_utilities.pl" > had a single line of code depending on the old module. What docs do we > have to confirm that it is the only code relying on the outdated module? None :) > I would really like to add SMS::Send (for it's world-wide support of > carriers and that other developers are keeping the functionality up to > date via CPAN) to MH. I suggest that keeping HTML and HTTP up to date > with CPAN would probably be a good idea, but that breaks the Oscar > protocol code. There is an argument to "use" to specify a particular module version, but I haven't played with it. > Question: Does Oscar support actually work?? I have no idea. David |
From: Andy M. <myi...@st...> - 2007-06-24 02:04:13
|
David Norwood wrote: > Andy wrote: > >> perl -MCPAN -e "upgrade" >> > This command didn't do anything on my system. It's possible all my CPAN > modules are up to date, I guess. > If the command is working, it would be unusual for no modules needing to be updated. I am running Linux, and haven't tried that particular format of CPAN upgrade command on windows - I'm sure that their would be something similar. >> perl -MCPAN -e "install Net::Telnet" >> perl -MCPAN -e "install Tk::JPEG" >> perl -MCPAN -e "install Tk::CursorControl" >> perl -MCPAN -e "install DB_File" >> perl -MCPAN -e "install Term::ReadKey" >> > We could include a script to do this. Does this work on Windows and Macs > too? > Again no idea. I think this is documented in the setup notes. Adding this to a install script could be useful. > I removed the HTML and HTTP directories on my system as well. All I had to > do to get misterhouse running again was run: > > perl -MCPAN -e "install HTML::FormatText" > Gold! Beautiful. Easier than editing handy_net_utilities.pl. Thanks. So, if I wanted to add a more general SMS_Item, what protocols do we usually follow in MH development? The most important thing for me is to have lib/site/HTML and /lib/site/HTTP removed from the MH package, and we need to add HTML::FormatText to the list of required modules in the install docs. Whilst my testing of MH shows nothing broken, I am not exactly exercising the relevant modules. Does Bruce Winter or any of the other major contributors have some test cases to check that HTML and HTTP functionality isn't broken by reverting to CPAN libraries? Obviously, when the lib went into MH their must have been a reason. Does anybody remember why???? If not, lets make the changes??? Andy. |
From: Gregg L. <gr...@li...> - 2007-07-03 16:15:20
|
Quoting Tim Sailer (6/20/07 11:48 PM): > I'd like to hear it on all web browsers unless the webmute is enabled. > I'm not sure if this was on a browser by browser setting or was global, as > my wife was the only one that cared and used it. I've looked at various parts of the code and compared against prior versions and still am a bit stumped as to how this was working. Can you confirm which most recent release this was working in the manner described above? Was it 2.102? Separately, I'm not seeing any obvious way of getting the voice audio to a browser that isn't responding to a user command (e.g., invoke some menu button) except through the periodic status updates (that occur by default every 60 seconds). Is this the behavior that you previously recall--with the possibility of fairly significant (and arguably unuseful) delays? I'll continue looking, but am unsure how quickly I'll identify a solution for you. Gregg |
From: Tim S. <tp...@ma...> - 2007-07-13 02:41:38
|
On Tue, July 3, 2007 12:15, Gregg Liming said: > Quoting Tim Sailer (6/20/07 11:48 PM): > >> I'd like to hear it on all web browsers unless the webmute is enabled. >> I'm not sure if this was on a browser by browser setting or was global, >> as >> my wife was the only one that cared and used it. > > I've looked at various parts of the code and compared against prior > versions and still am a bit stumped as to how this was working. Can you > confirm which most recent release this was working in the manner > described above? Was it 2.102? I believe it was 2.102 > Separately, I'm not seeing any obvious way of getting the voice audio to > a browser that isn't responding to a user command (e.g., invoke some > menu button) except through the periodic status updates (that occur by > default every 60 seconds). Is this the behavior that you previously > recall--with the possibility of fairly significant (and arguably > unuseful) delays? That was it. It was only as fast as the refresh. Tim -- Tim Sailer Coastal Internet, Inc. www.buoy.com 631-399-2910 |
From: David N. <dno...@ya...> - 2007-07-13 04:31:26
|
Quoting Tim Sailer: > On Tue, July 3, 2007 12:15, Gregg Liming said: >> Separately, I'm not seeing any obvious way of getting the voice audio to >> a browser that isn't responding to a user command (e.g., invoke some >> menu button) except through the periodic status updates (that occur by >> default every 60 seconds). Is this the behavior that you previously >> recall--with the possibility of fairly significant (and arguably >> unuseful) delays? > > That was it. It was only as fast as the refresh. Gregg, this is pretty easy to demo using the old "mh4" web interface: http://localhost:8080/mh4 Just click webmute off. Actually, I just tried it and it appears it only speaks in response to user clicks, like you said. I'm not sure how the audreys do it, but I think it makes sense to take advantage of the "speech" frame that most of the web interfaces contain. Usually this frame refreshes automatically. It is a good place to add mp3 files to play. I have also thought this would be a good place to add javascript to popup windows in response to "display" subroutine calls. We would have to make "display" support urls like the xAP equivalent does. Also, we would have to keep track of each browser's preferences as well as speech and display queue. I don't know if http_server.pl has any code to keep track of cookies, so this could be a lot of work. Tim, an easy solution might be to run a "xAP Speech" client on the browser machine. I'm not aware of any unix xap speech clients, but it would be pretty easy to whip one up in perl. Is this for the audrey? David |
From: Gregg L. <gr...@li...> - 2007-07-13 11:06:16
|
Quoting David Norwood (7/13/07 12:17 AM): > Quoting Tim Sailer: >> On Tue, July 3, 2007 12:15, Gregg Liming said: >>> Separately, I'm not seeing any obvious way of getting the voice audio to >>> a browser that isn't responding to a user command (e.g., invoke some >>> menu button) except through the periodic status updates (that occur by >>> default every 60 seconds). Is this the behavior that you previously >>> recall--with the possibility of fairly significant (and arguably >>> unuseful) delays? >> That was it. It was only as fast as the refresh. > > Gregg, this is pretty easy to demo using the old "mh4" web interface: > > http://localhost:8080/mh4 > > Just click webmute off. Actually, I just tried it and it appears it only > speaks in response to user clicks, like you said. Thanks. I'll take a look--although, it may be a while. > I'm not sure how the > audreys do it, Looking at the code, it appears audreys are directly "targeted"--they apparently are running some form of a cgi or something comparable that allows them to directly serve up the playing of a wav file? > Tim, an easy solution might be to run a "xAP Speech" client on the browser > machine. I'm not aware of any unix xap speech clients, but it would be > pretty easy to whip one up in perl. bin/xAP-festival.pl mod as needed for other speak engines. The more obvious advantage to the above is one of "instant gratification"--the speech would be heard as soon as the speech event occurred--and can be used in the context of PA items (room-based targeting). The downside is extra stuff to install/config (whereas a browser approach requires nothing additional). |
From: Stu W. <st...@bl...> - 2007-07-13 21:02:54
|
Please forgive my ignorance on xAP, but I'd like to get xAP set up and a quick search of the mailing list, the wiki,and google only served to really confuse me (often not a hard task). I'd like to start with the directed speech to a windows machine. I guess what I need to know is well... just about everything, what do I need to set up on the client, what do I need to set up on the server? Looking through the xAP-festival.pl code, it looks like I need festival installed and need to run this on a linux box. How do I call it from mh code? Sorry if this has been addressed before in detail. Stu Gregg Liming wrote: > Quoting David Norwood (7/13/07 12:17 AM): > >> Quoting Tim Sailer: >> >>> On Tue, July 3, 2007 12:15, Gregg Liming said: >>> >>>> Separately, I'm not seeing any obvious way of getting the voice audio to >>>> a browser that isn't responding to a user command (e.g., invoke some >>>> menu button) except through the periodic status updates (that occur by >>>> default every 60 seconds). Is this the behavior that you previously >>>> recall--with the possibility of fairly significant (and arguably >>>> unuseful) delays? >>>> >>> That was it. It was only as fast as the refresh. >>> >> Gregg, this is pretty easy to demo using the old "mh4" web interface: >> >> http://localhost:8080/mh4 >> >> Just click webmute off. Actually, I just tried it and it appears it only >> speaks in response to user clicks, like you said. >> > > Thanks. I'll take a look--although, it may be a while. > > >> I'm not sure how the >> audreys do it, >> > > Looking at the code, it appears audreys are directly "targeted"--they > apparently are running some form of a cgi or something comparable that > allows them to directly serve up the playing of a wav file? > > > >> Tim, an easy solution might be to run a "xAP Speech" client on the browser >> machine. I'm not aware of any unix xap speech clients, but it would be >> pretty easy to whip one up in perl. >> > > bin/xAP-festival.pl > > mod as needed for other speak engines. The more obvious advantage to > the above is one of "instant gratification"--the speech would be heard > as soon as the speech event occurred--and can be used in the context of > PA items (room-based targeting). The downside is extra stuff to > install/config (whereas a browser approach requires nothing additional). > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |
From: Gregg L. <gr...@li...> - 2007-07-13 21:42:02
|
Quoting Stu Wells (7/13/07 5:01 PM): > Please forgive my ignorance on xAP, but I'd like to get xAP set up and a > quick search of the mailing list, the wiki,and google only served to > really confuse me (often not a hard task). I'd like to start with the > directed speech to a windows machine. On a windows system, you'll need a xAP hub and the xAP speech client. If you are running winXP or winVista, then get your hub here: http://www.edjo.pwp.blueyonder.co.uk/edward/xAP/xFx/hubs_download.htm (I would recommend the service install). If using win2x, then get it here: http://www.mi4.biz/modules.php?name=Downloads&d_op=viewdownload&cid=41 (again, I would recommend the service version). David had some issues ( I don't recall what) with either installing or using and built a c version in cygwin. I haven't yet gone that route; but, if you do, you might ask him for the details. Then, get the actual xAP Speech app here: http://www.mi4.biz/modules.php?name=Downloads&d_op=viewdownload&cid=18 You'll need to confirm that it auto-detected your speech voice on your windows system. I personally like the neospeech voices. > I guess what I need to know is well... just about everything, what do I > need to set up on the client, what do I need to set up on the server? You have 2 options: broadcast or "PA-like". The former does not use the built-in mh options for targeting rooms. I would suggest it if you aren't using targeting w/i mh as it is simplest. Just enable code/common/xAP_send.pl. If you want PA-like targetting, then you'll need to enable code/common/xAP_pa_control.pl and set up a mht entry using something like the following: PA, mi4.speech.<hostnameofwindowsbox>, <yourroomname>, all|default|<someotherroomname>, tts.speak, xap Add one for each "room" that you want to control. > Looking through the xAP-festival.pl code, it looks like I need festival > installed and need to run this on a linux box. Well, if you don't want to change it--then yes. But, you could easily change the command line invocation for the speech engine if it isn't festival. I have both cepstral engines installed (theta and swift) and can give you the syntax change if you have those and want to use it. > How do I call it from mh > code? You don't. It should "just work". > Sorry if this has been addressed before in detail. There may well be config issues not mentioned or glossed over above. So, let me know if you encounter issues. BTW: In fairness to the xPL users, I also use the PA targeting approach mentioned above to target xplrionettts clients. So, if you happen to have an xPL speech client, then above PA entry is similar to what you would want (changes should be semi-obvious). Gregg |
From: Stu W. <st...@bl...> - 2007-07-13 23:51:56
|
Gregg, Thanks! This is exactly what I was looking for. I have it set up on my test linux box, with xAP_send.pl enabled and a simple piece of testing code speak 'testing 1 2 3' if new_minute 1; and it speaks on the linux box On the windows side, I installed the service version of the hub and the xAP speech program. So far so good, I can have it speak local text from it's text box. I set a notify chime to play before speech and when the mh box does it's speech it the chime plays, but there is no speech of the text. I think I'm missing something fairly simple... but not sure what. Stu Gregg Liming wrote: > Quoting Stu Wells (7/13/07 5:01 PM): > >> Please forgive my ignorance on xAP, but I'd like to get xAP set up and a >> quick search of the mailing list, the wiki,and google only served to >> really confuse me (often not a hard task). I'd like to start with the >> directed speech to a windows machine. >> > > On a windows system, you'll need a xAP hub and the xAP speech client. > If you are running winXP or winVista, then get your hub here: > http://www.edjo.pwp.blueyonder.co.uk/edward/xAP/xFx/hubs_download.htm (I > would recommend the service install). If using win2x, then get it here: > http://www.mi4.biz/modules.php?name=Downloads&d_op=viewdownload&cid=41 > (again, I would recommend the service version). David had some issues ( > I don't recall what) with either installing or using and built a c > version in cygwin. I haven't yet gone that route; but, if you do, you > might ask him for the details. > > Then, get the actual xAP Speech app here: > http://www.mi4.biz/modules.php?name=Downloads&d_op=viewdownload&cid=18 > > You'll need to confirm that it auto-detected your speech voice on your > windows system. I personally like the neospeech voices. > > >> I guess what I need to know is well... just about everything, what do I >> need to set up on the client, what do I need to set up on the server? >> > > You have 2 options: broadcast or "PA-like". The former does not use the > built-in mh options for targeting rooms. I would suggest it if you > aren't using targeting w/i mh as it is simplest. Just enable > code/common/xAP_send.pl. If you want PA-like targetting, then you'll > need to enable code/common/xAP_pa_control.pl and set up a mht entry > using something like the following: > > PA, mi4.speech.<hostnameofwindowsbox>, <yourroomname>, > all|default|<someotherroomname>, tts.speak, xap > > Add one for each "room" that you want to control. > > >> Looking through the xAP-festival.pl code, it looks like I need festival >> installed and need to run this on a linux box. >> > > Well, if you don't want to change it--then yes. But, you could easily > change the command line invocation for the speech engine if it isn't > festival. I have both cepstral engines installed (theta and swift) and > can give you the syntax change if you have those and want to use it. > > >> How do I call it from mh >> code? >> > > You don't. It should "just work". > > >> Sorry if this has been addressed before in detail. >> > > There may well be config issues not mentioned or glossed over above. > So, let me know if you encounter issues. > > BTW: In fairness to the xPL users, I also use the PA targeting approach > mentioned above to target xplrionettts clients. So, if you happen to > have an xPL speech client, then above PA entry is similar to what you > would want (changes should be semi-obvious). > > Gregg > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |
From: Gregg L. <gr...@li...> - 2007-07-14 00:04:55
|
Hi Stu, Quoting Stu Wells (7/13/07 7:51 PM): > Thanks! This is exactly what I was looking for. I have it set up on > my test linux box, with xAP_send.pl enabled and a simple piece of > testing code > > speak 'testing 1 2 3' if new_minute 1; > > and it speaks on the linux box Excellent! > On the windows side, I installed the service version of the hub and the > xAP speech program. So far so good, I can have it speak local text from > it's text box. I set a notify chime to play before speech and when the > mh box does it's speech it the chime plays, but there is no speech of > the text. > > I think I'm missing something fairly simple... but not sure what. > Ok--I may have missed a mapping. Here's a suggestion that might help you regardless... Try installing the xAP "viewer" on your windows machine. It will help you "see" the xAP traffic on your network: http://www.mi4.biz/modules.php?name=Downloads&d_op=viewdownload&cid=41 Once installed, try looking for the message that mh is sending and then forwarding that (either on or off list). Viewers like this (either xAP or xPL) are really essential to understanding what is occurring on your "ha" network. Can I assume that you are running the latest from svn and not the "stock" 2.103 release? If not, that may be your issue. FYI - I will be away occasionally and not responding as quickly. Gregg |
From: Gregg L. <gr...@li...> - 2007-07-14 02:36:25
|
Quoting Gregg Liming (7/13/07 8:04 PM): >> I think I'm missing something fairly simple... but not sure what. ... another thought is to set (in mh.ini) debug=xap so that you can see what mh thinks is being sent out. |
From: Stu W. <st...@bl...> - 2007-07-14 07:24:11
|
Gregg, You have my deepest thanks for your help on this :-) It was something simple - started working as soon as I put speak_volume=100 in the mh.ini It would be great if this worked in windows, since that's where my current "live" mh box sits, but now I have an excuse to port off the non windows specific functions to a second box or to do what I should have done at the start and install linux on that box :-) It will take a bit of recoding since i use some specific windows shares, but nothing too serious. As to versions, I've never updated off the svn and could be a rev or two behind on the stock versions as well :-) Stu Gregg Liming wrote: > Quoting Gregg Liming (7/13/07 8:04 PM): > > >>> I think I'm missing something fairly simple... but not sure what. >>> > > ... another thought is to set (in mh.ini) debug=xap so that you can see > what mh thinks is being sent out. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |
From: David N. <dno...@ya...> - 2007-07-14 23:53:37
|
Stu Wells wrote: > It was something simple - started working as soon as I put > speak_volume=100 in the mh.ini I think Gregg fixed this in svn. If there is no volume specified, the xAP packet won't contain a blank volume argument anymore. > It would be great if this worked in windows, since that's where my > current "live" mh box sits, but now I have an excuse to port off the non > windows specific functions to a second box or to do what I should have > done at the start and install linux on that box :-) It will take a bit > of recoding since i use some specific windows shares, but nothing too > serious. Did Gregg say it wouldn't work on windows? I'm on linux, but I can't think of any reason the xap send script won't work on windows. > As to versions, I've never updated off the svn and could be a rev or two > behind on the stock versions as well :-) It's unfortunate we haven't had an official release in a long time. There are a lot of bugs fixed in svn. David |
From: Stu W. <st...@bl...> - 2007-07-15 07:33:15
|
David, This is one of the times when it's useful to read the comments in the right file and not make assumptions based on other ones. I made the mistake of thinking for some reason that xAP only worked in linux because of the xAP bluetooth and the comments section in the festival file. Works fine from my win2k box sending out data my work laptop, simple and "just works". Now I want to look into what other xAP goodies can be done, this is like discovering MH all over again *wipes tear from eye* You guys are awesome! Is there a xAP speech client for linux? and how do I update via the SVN or is that documented? Stu David Norwood wrote: > Stu Wells wrote: > >> It was something simple - started working as soon as I put >> speak_volume=100 in the mh.ini >> > > I think Gregg fixed this in svn. If there is no volume specified, the xAP > packet won't contain a blank volume argument anymore. > > >> It would be great if this worked in windows, since that's where my >> current "live" mh box sits, but now I have an excuse to port off the non >> windows specific functions to a second box or to do what I should have >> done at the start and install linux on that box :-) It will take a bit >> of recoding since i use some specific windows shares, but nothing too >> serious. >> > > Did Gregg say it wouldn't work on windows? I'm on linux, but I can't think > of any reason the xap send script won't work on windows. > > >> As to versions, I've never updated off the svn and could be a rev or two >> behind on the stock versions as well :-) >> > > It's unfortunate we haven't had an official release in a long time. There > are a lot of bugs fixed in svn. > > David > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |
From: David N. <dno...@ya...> - 2007-07-15 23:44:59
|
Stu Wells wrote: > Works fine from my win2k box sending out data my work laptop, simple > and "just works". Cool! > Now I want to look into what other xAP goodies can be done, this is > like discovering MH all over again *wipes tear from eye* You guys are > awesome! I hear you brother! I started a "xAP How To" on the wiki: http://misterhouse.wikispaces.com/xAP Right now, it's little more than a list of ideas. I plan to add more instructions as I have time. What are you interested in? That can be the next section :) > Is there a xAP speech client for linux? take a look at mh/bin/xAP-festival.pl > and how do I update via the SVN or is that documented? http://misterhouse.wikispaces.com/Subversion David |
From: Stu W. <st...@bl...> - 2007-07-16 22:59:46
|
Well since you asked... something I've been toying with that might be a good fit is to send jpg from the mh box to the windows desktop on security events. I have 5 X10 cams set up around the house with the following (general scheme). computer in the garage takes 1 jpg snapshot every second and streams video (usually) and puts this on a windows share switch camera every 10 seconds then wait 3 seconds and pull a picture from the windows share for the web page and archive that in a directory on a motion event (if that zone is set to active, on passive it just switches the camera) set that camera to active and send 4 images via email - one every 2 seconds. on a security breech (door opened when alarm active), same as a motion. once an hour, I pull the video file from the computer in the garage and archive it. From what I've read of zoneminder, this scheme is not a good match, since there is only one video feed and the images change constantly. What would be cool is to send the jpg images to a viewer on security events to prevent lag from email. Of course, the ideal solution would be to replace the X10 cams with zoneminder supported IP cams, but I have not yet won the lotto :-) Stu David Norwood wrote: > Stu Wells wrote: > >> Works fine from my win2k box sending out data my work laptop, simple >> and "just works". >> > > Cool! > > >> Now I want to look into what other xAP goodies can be done, this is >> like discovering MH all over again *wipes tear from eye* You guys are >> awesome! >> > > I hear you brother! I started a "xAP How To" on the wiki: > > http://misterhouse.wikispaces.com/xAP > > Right now, it's little more than a list of ideas. I plan to add more > instructions as I have time. What are you interested in? That can be the > next section :) > > >> Is there a xAP speech client for linux? >> > > take a look at mh/bin/xAP-festival.pl > > >> and how do I update via the SVN or is that documented? >> > > http://misterhouse.wikispaces.com/Subversion > > David > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |
From: David N. <dno...@ya...> - 2007-07-17 23:21:28
Attachments:
xAP_display.pl
|
Gregg has already implemented something similar to what you want with zoneminder. I think it would be fairly easy to make this work for your X10 cams as well. I have done a little experimenting and I think it could work like this: install xAP Intranet Launcher from here: http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=37 put the attached script in your private code directory restart misterhouse and check for a pop-up window on your windows machine modify my script so it only sends packets when motion is detected change the "Pic" and "URL" variables to point to your webcam photos add a "Refresh" variable to animate the photo You will find the xAP Display schema here: http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=9 I had a couple problems I couldn't resolve: I couldn't get the "URL" variable to work. I expected it to cause Intranet Launcher to open a browser window pointing to that address, but it had no effect here. I wish Intranet Launcher had more customization capabilities. I would like to make the picture and text bigger, and change the location of the pop-up window. If you figure out how to do this, let me know. David ----- Original Message ----- From: "Stu Wells" <st...@bl...> To: "The main list for the MisterHouse home automation program" <mis...@li...> Sent: Monday, July 16, 2007 3:59 PM Subject: Re: [mh] xAP Speech (was - Web browser sounds/speech) > Well since you asked... something I've been toying with that might be a > good fit is to send jpg from the mh box to the windows desktop on > security events. I have 5 X10 cams set up around the house with the > following (general scheme). > > computer in the garage takes 1 jpg snapshot every second and streams > video (usually) and puts this on a windows share > switch camera every 10 seconds then > wait 3 seconds and pull a picture from the windows share for the web > page and archive that in a directory > on a motion event (if that zone is set to active, on passive it just > switches the camera) set that camera to active and send 4 images via > email - one every 2 seconds. > on a security breech (door opened when alarm active), same as a motion. > > once an hour, I pull the video file from the computer in the garage and > archive it. > > From what I've read of zoneminder, this scheme is not a good match, > since there is only one video feed and the images change constantly. > > What would be cool is to send the jpg images to a viewer on security > events to prevent lag from email. Of course, the ideal solution would > be to replace the X10 cams with zoneminder supported IP cams, but I have > not yet won the lotto :-) > > Stu > > David Norwood wrote: >> Stu Wells wrote: >> >>> Works fine from my win2k box sending out data my work laptop, simple >>> and "just works". >>> >> >> Cool! >> >> >>> Now I want to look into what other xAP goodies can be done, this is >>> like discovering MH all over again *wipes tear from eye* You guys are >>> awesome! >>> >> >> I hear you brother! I started a "xAP How To" on the wiki: >> >> http://misterhouse.wikispaces.com/xAP >> >> Right now, it's little more than a list of ideas. I plan to add more >> instructions as I have time. What are you interested in? That can be >> the >> next section :) >> >> >>> Is there a xAP speech client for linux? >>> >> >> take a look at mh/bin/xAP-festival.pl >> >> >>> and how do I update via the SVN or is that documented? >>> >> >> http://misterhouse.wikispaces.com/Subversion >> >> David >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ________________________________________________________ >> To unsubscribe from this list, go to: >> http://sourceforge.net/mail/?group_id=1365 >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > |
From: Stu W. <st...@bl...> - 2007-07-18 06:08:47
|
Something happened, I'm not sure what or where, but I seem to have broken xAP beyond a simple recovery. I stopped receiving speech when I tried the new module and xAP intranet, but before backing those files out, I lost all power for 2 hours. After backing those 2 changes out, I no longer have any speech. I made a couple of other changes along the way to the ini file - I will have to roll those back out and possibly reinstall if a file became corrupt when the power was dropped. It will be a few days until I have time to test with this again :-( Stu David Norwood wrote: > Gregg has already implemented something similar to what you want with > zoneminder. I think it would be fairly easy to make this work for > your X10 cams as well. I have done a little experimenting and I think > it could work like this: > > install xAP Intranet Launcher from here: > http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=37 > put the attached script in your private code directory > restart misterhouse and check for a pop-up window on your windows machine > modify my script so it only sends packets when motion is detected > change the "Pic" and "URL" variables to point to your webcam photos > add a "Refresh" variable to animate the photo > > You will find the xAP Display schema here: > http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=9 > > I had a couple problems I couldn't resolve: > > I couldn't get the "URL" variable to work. I expected it to cause > Intranet Launcher to open a browser window pointing to that address, > but it had no effect here. I wish Intranet Launcher had more > customization capabilities. I would like to make the picture and text > bigger, and change the location of the pop-up window. If you figure > out how to do this, let me know. > > David > > ----- Original Message ----- From: "Stu Wells" <st...@bl...> > To: "The main list for the MisterHouse home automation program" > <mis...@li...> > Sent: Monday, July 16, 2007 3:59 PM > Subject: Re: [mh] xAP Speech (was - Web browser sounds/speech) > > >> Well since you asked... something I've been toying with that might be a >> good fit is to send jpg from the mh box to the windows desktop on >> security events. I have 5 X10 cams set up around the house with the >> following (general scheme). >> >> computer in the garage takes 1 jpg snapshot every second and streams >> video (usually) and puts this on a windows share >> switch camera every 10 seconds then >> wait 3 seconds and pull a picture from the windows share for the web >> page and archive that in a directory >> on a motion event (if that zone is set to active, on passive it just >> switches the camera) set that camera to active and send 4 images via >> email - one every 2 seconds. >> on a security breech (door opened when alarm active), same as a motion. >> >> once an hour, I pull the video file from the computer in the garage and >> archive it. >> >> From what I've read of zoneminder, this scheme is not a good match, >> since there is only one video feed and the images change constantly. >> >> What would be cool is to send the jpg images to a viewer on security >> events to prevent lag from email. Of course, the ideal solution would >> be to replace the X10 cams with zoneminder supported IP cams, but I have >> not yet won the lotto :-) >> >> Stu >> >> David Norwood wrote: >>> Stu Wells wrote: >>> >>>> Works fine from my win2k box sending out data my work laptop, simple >>>> and "just works". >>>> >>> >>> Cool! >>> >>> >>>> Now I want to look into what other xAP goodies can be done, this is >>>> like discovering MH all over again *wipes tear from eye* You guys are >>>> awesome! >>>> >>> >>> I hear you brother! I started a "xAP How To" on the wiki: >>> >>> http://misterhouse.wikispaces.com/xAP >>> >>> Right now, it's little more than a list of ideas. I plan to add more >>> instructions as I have time. What are you interested in? That can >>> be the >>> next section :) >>> >>> >>>> Is there a xAP speech client for linux? >>>> >>> >>> take a look at mh/bin/xAP-festival.pl >>> >>> >>>> and how do I update via the SVN or is that documented? >>>> >>> >>> http://misterhouse.wikispaces.com/Subversion >>> >>> David >>> >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> ________________________________________________________ >>> To unsubscribe from this list, go to: >>> http://sourceforge.net/mail/?group_id=1365 >>> >>> >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ________________________________________________________ >> To unsubscribe from this list, go to: >> http://sourceforge.net/mail/?group_id=1365 >> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |