[Emacs-vr-mode-devel] Re: Questions about VR-Mode
Brought to you by:
grifgrif
|
From: Patrik J. <pa...@uc...> - 2002-02-07 23:13:51
|
Hi Alain, Yes, I saw the messages. I was just too busy to reply until now. I believe the arm of the differentiates the two streams just based on the=20 fact that one is opened after the other, but I really have never bothered=20 to find out. Having two ports seems to make sense, the only thing is that= =20 you have to port-forward two ports instead of one to get through the=20 firewall... I'm interested in incorporating whatever improvements you can think of into= =20 VR Mode. Currently, I'm working on a redesign of the communication=20 protocol(it's in a branch on the CVS) in order to better handle=20 else-mode. Basically, the problem occurs when the cursor is sitting in an= =20 else placeholder, which Emacs will delete as soon as it receives keyboard=20 input, leading to loss of synchronization and funny spacing in the=20 buffer. The way I was going to solve it was by sending change commands as= =20 soon as an utterance starts, deleting the "volatile" text from the=20 NaturallySpeaking buffer, and then reinserting it when the utterance ends,= =20 if it's still there. Kind of clumsy, but it's the only way I could figure= =20 out that solves the two problems above. The price you pay is by having=20 "scratch that" become invalid, but with a good undo command that shouldn't= =20 be too bad. I don't know enough about how VoiceCoder is supposed to work to know if the= =20 above will be an issue for you as well... (By the way, didn't you write an Emacs undo command? (utterance mode?) I=20 meant to send to a bug report about it hard-crashing my NT Emacs, but I=20 don't remember if actually did.) /Patrik 01:27 PM 2/6/2002 -0500, you wrote: >I just realised I sent those messages to VoiceCoder instead of to you >directly. In case you >missed them, I am sending an additional copy directly to you. > >Alain > >---------------------------------------------------------------------------= - >Oops, nevermind. > >I noticed that you do invoke open-network-stream when *host* is not *nil*. > >But now I'm puzzled by something else. In *vr-connect*, you open two= network >streams. Looks like one is for Emacs to send commands to VR.exe and receive >replies, the other is for VR.exe to send commands to Emacs and receive >replies. >But both network streams are opened on the same port! So how does VR.exe= know > >which of the two connections is for what? In VoiceCode, I use different= ports > >for the two connections. > >I'm reading the vr.el code carefully this morning and it looks like I= should >be >able to use it for VoiceCode with only minor surgery. > >Basically, I'm planning to make all the message interpretation part of the >system configurable. This is necesssary because the messages that VoiceCode >needs to send to Emacs seem to be a superset of what vr-mode currently >handles. >Also, VoiceCode uses a more flexible XML-based messaging protocol. > >I think this change might make vr-mode more flexible, and able to connect >with >other specialised voice addins besides VR.exe and VoiceCode. If you think >this >is worth including in the main version of vr-mode, I can send you a more >detailed plan of what I want to do once I have it, and you can comment on= it. > >Thx > >Alain > >Alain D=E9silets wrote: > > > I'm looking at vr-mode.el and am a bit puzzled by something. > > > > The readme file says that vr-mode can be used over a network. But in >vr-mode > > function, you connect to vr.exe by starting a process on the local= machine. > > > > > How does that end up connecting over the network? Is it just that= vr.exe, > > when invoked with a host name will connect to an instance of vr.exe= that's > > listening on that host? > > > > If so, wouldn't it make more sense for Emacs to connect directly to the > > remote vr.exe by invoking network-connection function? > > > > Thx > > > > Alain > > > > shane_3m wrote: > > > > > that would be me... :-) > > > > > > And yes, it is open source, at emacs-vr-mode.sourceForge.net > > > > > > Take what you can! :-) > > > > > > /Patrik > > > > > > --- In VoiceCoder@y..., Alain D=E9silets <alain.desilets@n...> wrote: > > > > I am just about to start working on connecting VoiceCode to Emacs > > > and > > > > thought I would use vr-mode.el as a starting point. > > > > > > > > Was VR-mode made OpenSource in the end? Who is maintaining it these > > > > days? > > > > > > > > Thanks. > > > > > > > > Alain D=E9silets > > > > > > ------------------------ Yahoo! Groups Sponsor= ---------------------~--> > > > Sponsored by VeriSign - The Value of Trust > > > Secure all your Web servers now - with a proven 5-part > > > strategy. The FREE Server Security Guide shows you how. > > > http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/saFolB/TM > > >= ---------------------------------------------------------------------~-> > > > > > > Community email addresses: > > > Post message: Voi...@on... > > > Subscribe: Voi...@on... > > > Unsubscribe: Voi...@on... > > > List owner: Voi...@on... > > > > > > Shortcut URL to this page: > > > http://www.onelist.com/community/VoiceCoder > > > > > > Your use of Yahoo! Groups is subject to= http://docs.yahoo.com/info/terms/ > > > >Received: from nrcmrddc1.imsb.nrc.ca ([132.246.56.35]) by nrcmrdbh2.nrc.ca= =20 >with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) > id 1BBXQ2SM; Wed, 6 Feb 2002 10:57:29 -0500 >Received: from nrc.ca (ii158.ai.iit.nrc.ca [132.246.128.158]) by=20 >nrcmrddc1.imsb.nrc.ca with SMTP (Microsoft Exchange Internet Mail Service= =20 >Version 5.5.2653.13) > id D8C3AP71; Wed, 6 Feb 2002 10:57:30 -0500 >Message-ID: <3C6...@nr...> >Date: Wed, 06 Feb 2002 11:06:38 -0500 >From: Alain D=E9silets <ala...@nr...> >X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) >X-Accept-Language: en >MIME-Version: 1.0 >To: Voi...@ya... >Subject: Re: [VoiceCoder] Re: Who maintains VR-mode? >References: <a3n...@eG...> <3C6...@nr...> >Content-Type: text/plain; charset=3Diso-8859-1 >Content-Transfer-Encoding: 8bit > >Oops, nevermind. > >I noticed that you do invoke open-network-stream when *host* is not *nil*. > >But now I'm puzzled by something else. In *vr-connect*, you open two= network >streams. Looks like one is for Emacs to send commands to VR.exe and receive >replies, the other is for VR.exe to send commands to Emacs and receive=20 >replies. >But both network streams are opened on the same port! So how does VR.exe= know >which of the two connections is for what? In VoiceCode, I use different= ports >for the two connections. > >I'm reading the vr.el code carefully this morning and it looks like I=20 >should be >able to use it for VoiceCode with only minor surgery. > >Basically, I'm planning to make all the message interpretation part of the >system configurable. This is necesssary because the messages that VoiceCode >needs to send to Emacs seem to be a superset of what vr-mode currently=20 >handles. >Also, VoiceCode uses a more flexible XML-based messaging protocol. > >I think this change might make vr-mode more flexible, and able to connect= with >other specialised voice addins besides VR.exe and VoiceCode. If you think= this >is worth including in the main version of vr-mode, I can send you a more >detailed plan of what I want to do once I have it, and you can comment on= it. > >Thx > >Alain > >Alain D=E9silets wrote: > > > I'm looking at vr-mode.el and am a bit puzzled by something. > > > > The readme file says that vr-mode can be used over a network. But in=20 > vr-mode > > function, you connect to vr.exe by starting a process on the local= machine. > > > > How does that end up connecting over the network? Is it just that= vr.exe, > > when invoked with a host name will connect to an instance of vr.exe= that's > > listening on that host? > > > > If so, wouldn't it make more sense for Emacs to connect directly to the > > remote vr.exe by invoking network-connection function? > > > > Thx > > > > Alain > > > > shane_3m wrote: > > > > > that would be me... :-) > > > > > > And yes, it is open source, at emacs-vr-mode.sourceForge.net > > > > > > Take what you can! :-) > > > > > > /Patrik > > > > > > --- In VoiceCoder@y..., Alain D=E9silets <alain.desilets@n...> wrote: > > > > I am just about to start working on connecting VoiceCode to Emacs > > > and > > > > thought I would use vr-mode.el as a starting point. > > > > > > > > Was VR-mode made OpenSource in the end? Who is maintaining it these > > > > days? > > > > > > > > Thanks. > > > > > > > > Alain D=E9silets > > > > > > ------------------------ Yahoo! Groups Sponsor= ---------------------~--> > > > Sponsored by VeriSign - The Value of Trust > > > Secure all your Web servers now - with a proven 5-part > > > strategy. The FREE Server Security Guide shows you how. > > > http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/saFolB/TM > > >= ---------------------------------------------------------------------~-> > > > > > > Community email addresses: > > > Post message: Voi...@on... > > > Subscribe: Voi...@on... > > > Unsubscribe: Voi...@on... > > > List owner: Voi...@on... > > > > > > Shortcut URL to this page: > > > http://www.onelist.com/community/VoiceCoder > > > > > > Your use of Yahoo! Groups is subject to= http://docs.yahoo.com/info/terms/ > > > > -- > > Alain D=E9silets > > > > Agent de recherche > > Conseil National de Recherches du Canada > > > > Research Officer > > National Research Council of Canad =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Patrik Jonsson (831) 459-3809 Department of Astronomy & Astrophysics University of California, Santa Cruz, CA 95064 This message has been written using a voice recognition system. Words that don't make sense or not the fault of the author... |