Hello scott,

Check out ScriptTip#104--it explains how to do that.  I'll post it here:
ScriptTip#104:      Changing Synthesizers Automatically.
Synopsis:           Shows how to change synthesizers on the fly.
Description:        Gives details on having a different synthesizer for
different applications, and switch back when leaving those applications!
Remarks:            JFW has a function that will change active synthesizers
on the fly, making it possible to have one synthesizer in one application,
and another synthesizer when in another application, and have them change
without restarting JFW!
Example:            Someone asked if there was a means of switching
synthesizers when loading a specific application.  That user wanted to
switch from their default synthesizer, the Access32 software Dectalk,
to the DoubleTalk-LT, whenever they enter VOXChat, so as to free up the
sound card for that application.
Here is how to do this, but it can be used in any application, such as
having Eloquence load whenever going into Microsoft Word, and having it
switch back to another synthesizer when leaving Word!
Compatibility:      JFW3.3X or higher.
--------------------------------------------------------------------------

It is as simple as adding a line in the AutoStartEvent, and the
AutoFinishEvent functions.  If you recall, when these functions are present
within a script file, they get called when the associated application gets
started, and when it is exited, respectively.  If they aren't in the script
file, it is very easy to add them yourself.
With that in mind, we'll gear these instructions as if you found no
AutoStartEvent or AutoFinishEvent functions in your script file; if they are
there, then you can just focus on the instructions for adding the two
"SetSynth()" statements.
To get the correct synthesizer KeyName, take a look at your JFW.INI file
with NotePad, or some other editor.  That file is found in the folder JFW is
installed in.

1)  While in the application you want to associate the synthesizer switch
with, hit Insert+0 to launch the Script Manager with that application's
script file loaded for editing.
 if there is no script file for this program, the Script Manager will create
a blank one.
2)  To see if you already have an AutoStartEvent function, hit Control+L to
bring up the list of scripts/functions in the current script file.  It is
sorted by name, so the "A" should be the first scripts you come to in this
list.  If you have an AutoStartEvent, highlight it and whack Enter.  This
will place you on that script's header line.  Hit End and then Enter to
place yourself on a blank line underneath that header line.
3)  If you don't have an AutoStartEvent, hit Escape and we'll create one.
a)  Hit F2 to get to the first script in this file, (if there are any).
b)  If you land on that script, hit the UpArrow once to get on the line
above that script.  If there are no scripts, then you can just start with
the next step.
c)  Type in, or cut and paste, the following lines:  (Note: if you already
had an AutoStartEvent, then just add the following SetSynth line below.)

function AutoStartEvent()
SetSynth("lt")  ;Sets DoubleTalk-LT/LiteTalk as synthesizer.
EndFunction

This tells JFW that whenever this program is launched, the user wants their
DoubleTalk-LT, or their LiteTalk, to be used as their synthesizer.
***Important:  if you don't have the external synthesizer turned on at this
point, you'll probably hang the system, requiring a reboot.  This is because
you'll be trying to access a serial device that, (as far as the system is
concerned), isn't there.  This is not a bug in either the synthesizer or
screen reader, but rather a User Error--and those are the easiest  errors to
fix!)
4)  Hit Control+S to compile what we have so far.  If successful, go to the
next step.
5)  Hit Control+L again to locate the AutoFinishEvent.  If you have one,
highlight it and hit Enter, then arrow down to a line underneath the
variable declarations and hit End, then Enter to create a blank line.
6)  If you don't have one, hit Escape to exit the script list and hit
Control+End to reach the bottom of the file.  Hit Enter a couple of times to
give yourself some room.
7)  Type in, or cut and paste, the following:

function AutoFinishEvent()
SetSynth("dtsoft") ;Sets synthesizer back to Access32
EndFunction

8)  Compile with Control+S.

Hit Alt+F4 to exit the Script editor and see what response you get when
loading and unloading this application!





Hope this helps!

Thanks,
Dennis Brown, [EMAIL PROTECTED]
June 12, 1999



----- Original Message -----
From: scott fischer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 14, 1999 7:25 PM
Subject: is there a way


>
>
>
> List!
>
> I have been noticing that Eloquence is as crisp as dectalk, and anything
> I've heard. Its fast, clear and rather enjoyable. I was curious, is there
a
> way that when I go into word 97, the system auto changes to Eloquence from
> dectalk?
>
> I would really like it if when I go into word, it changes I guess you
> would call it, "On the fly". Is this possible?
>
> If so, how and can some one who knows please email me privately so it can
> be explained, maybe we can even talk via phone.
>
>
> thanks,
>
> Scott
>
> mailto:  [EMAIL PROTECTED]
>
> -
> Visit the jfw ml web page: http://jfw.cjb.net

-
Visit the jfw ml web page: http://jfw.cjb.net

Reply via email to