[jawsscripts] Re: Modifying JAWS Pitch Temporarily

  • From: <timothyjb310@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 3 Nov 2022 16:44:31 -0700

Hi, so I have made some progress, however I am still struggling to get JAWS
to properly change pitch.
I dug through the default.jss file under program data/freedom
scientific/jaws/xxx/enu 

 

I saw a function to set voice settings to globals. The function called in
there is SetVoicePitch, I could not find where it was declared, or
documentation on this function, although based on how it isbeing used, it
looks like it takes some kind of cursor identifier, and a pitch identifier.
I don't know what types these are  since as I mentioned I cannot find
documentation.

 

Here is what I have so far for my auto hotkey script 

 

shift::

  jaws := ComObjCreate("freedomsci.jawsapi")

  jaws.RunFunction("SetVoicePitch (VCTX_PCCURSOR, 3)")

  jaws.RunFunction("SayString(""h"")")

  ; Can also be written as

  ; jaws.SayString("H")

  jaws.RunFunction("SetVoicePitch (VCTX_PCCURSOR, GlobalPcPitch)")

return

 

This is not working though, the function SetAllVoicesToGlobals is using
SetVoicePitch like this

 

              SetVoicePitch (VCTX_PCCURSOR, GlobalPcPitch)

              SetVoicePitch (VCTX_SAY_ALL, GlobalSayAllPitch)

              SetVoicePitch (VCTX_JAWSCURSOR, GlobalJAWSPitch)

              SetVoicePitch (VCTX_KEYBOARD, GlobalKeyboardPitch)

              SetVoicePitch (VCTX_MESSAGE, GlobalMessagePitch)

              SetVoicePitch (VCTX_MENU_AND_DIALOG, GlobalMenuDialogPitch)

 

I am making the assumption that the normal voice you here all the time would
be this VCTX_PCCURSOR reference. I tried just about all the others, and it
did not seem to make any difference. My Auto hot key script above is working
in that it does speak what ever I pass into that SayString function, and it
is not throwing an error when I am calling SetVoicePitch, however it is not
changing the pitch at all.

 

Any Ideas on this?

 

Thanks,

 

Timothy Breitenfeldt

From: timothyjb310@xxxxxxxxx <timothyjb310@xxxxxxxxx> 
Sent: Sunday, October 30, 2022 8:21 PM
To: 'jawsscripts@xxxxxxxxxxxxx' <jawsscripts@xxxxxxxxxxxxx>
Subject: Modifying JAWS Pitch Temporarily

 

Hi, I am new to the list.

 

I am working on a project using auto hotkey. The project is a type of sticky
keys script for my sister to use who can only type with one hand. Basicly
basically she wants the script to make the shift key behave very similarly
to the IOS keyboard for specifically letters/numbers, where you can press
the shift key to toggle it on and off, and as soon as you press a character
key, it flips shift mode off. Built in sticky keys is not what she wants,
the only thing that is wanted is a sticky shift key.

 

I have a script that I found that mostly does this in auto hot key, however
for some reason JAWS does not read the typed capitalized letter in a hire
pitch like what would be expected. NVDA does, but I just cannot get JAWS to
identify the letter as capitalized. JAWS is reading the letter though. I
setup the auto hot key script to connect to the JAWS COM object thinking
that I could possibly use an API call to force the pitch change, although I
am not seeing that as an option. However, I can run jaws scrips through the
JAWS API. I am not familiar with JAWS scripting, and was not able to find an
answer with my own research. So, is it possible to say make a call using the
JAWS COM object API to run a function or script to change the pitch of jaws,
speak the letter using the COM API, then revert the pitch back to normal?

 

This is the best solution I have come up with to provide a seamless
experience, although I did consider two other options. The first was to just
play a sound to signify the letter was capitalized, and the second was to
just prepend the word "cap" before the letter. Neither option is ideal,
since of course a seamless user experience would be best. So is this even
possible to change the pitch using JAWS scripting?

 

Thanks,

 

Timothy Breitenfeldt



__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: