Topic: NVDA  (Read 5962 times)

NVDA
« on: September 03, 2015, 02:25:55 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Dear Chris,
I have tried Yours nvda.script for WIn PE8 from year 2014...
.......................
I Am kindly asking You for new Nvda.script.
I know, that You will not like Me because of it, but You have always created perfect script for blind users. If You would have some time, if it would be perfect to have newest PE working with NVDA.
By The way, really excellent job, project work very efficiently. I will always use X86 source of Windows 10, so I hope, that NVDA script could be make. But I really do not know, how to repair it myself.........
Thank You very very much for Yours developers help.
With kindness regards.
Janusz Chmiel
Probably a little too much  :wink:  :wink:
You also know that I prefer a topic or post than a personal message. So it is here  :thumbsup:

I just updated the old NVDA plugin with latest version 2015.3 inside and 2,3 little things.
it works well here in Win7 to Win10pese even though I am unable to use it by closing my eyes  :wink:

Download the 2 files below (Right clic > Save as) and put them side by side in Projects\Finals folder (to be played after Audio plugin and then launched in PE after the audio started)

NVDA.Script updated * 1-10_NVDA.Script (40.65 kB - downloaded 337 times.)
NVDA_File.Script


What is NVDA?
Quote
NVDA (NonVisual Desktop Access) is a free “screen reader” which enables blind and vision impaired people to use computers.
It reads the text on the screen in a computerised voice.
You can control what is read to you by moving the cursor to the relevant area of text with a mouse or the arrows on your keyboard.

NVDA HomePage: http://www.nvaccess.org/

ila_rendered
« Last Edit: September 04, 2015, 10:29:24 PM by ChrisR »

Re: NVDA
« Reply #1 on: September 04, 2015, 05:58:42 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
NVDA plugin updated with latest NVDA and some additional options.
http://yomi.cwcodes.net/Yomi/Final_Y/NVDA.Script
http://yomi.cwcodes.net/Yomi/Final_Y/NVDA_File.Script

Current Reply2:

Well, I got those pm lots of times before  :smile:

If Audio works, than NVDA would also work  :smile:

I feel running NVDA is not the trouble, but getting Audio work is, and with newer Windows and more standart sound chips, life is getting easier to NVDA users   :thumbsup:


 :thumbsup: Chris

:turtle:
« Last Edit: November 01, 2018, 08:03:07 PM by Lancelot »

Re: NVDA
« Reply #2 on: September 04, 2015, 10:47:37 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
I made a small change to launch NVDA after Audio is started. It is more secure for running smoothly.
It is on first post and it is renamed in 1-10_NVDA.
You must put the 2 plugins side by side in Projects\Finals folder, now. To be played after the Audio plugin and then launched in PE after the audio started.

Happy testing :thumbsup:

Re: NVDA
« Reply #3 on: October 30, 2018, 03:56:00 PM »

roelvdwal

  • Jr. Chef
  • **
  • Date Registered: Oct 2018
  • Posts: 14
Hello everyone,

The nvda plugin unfortunately doesn't work properly in the current win10PESE:

Lancelot provided me with the following fix, which makes the plugin work with PEBakery:
If,%CompareVersions%,Equal,Bigger,,Require_FileQ,RTWorkQ.dll
-->
If,%CompareVersions%,Equal,Bigger,Require_FileQ,RTWorkQ.dll
it's on line 79.
Also, UIA fails to initialize in newer win10pese builds. This mainly affects web browsers, these become unusable.
According to
https://docs.microsoft.com/en-us/dotnet/framework/ui-automation/ui-automation-overview
the following dlls are required:
UIAutomationProvider.dll
UIAutomationTypes.dll
UIAutomationClient.dll
UiAutomationCore.dll
UIAutomationClientsideProviders.dll
I am not sure if all of these dlls are required when you need to use UIA, but at least some of them are.
NVDA is also a 32 bit application, so I'm not sure which dlls we need. It might also depend on the app being used, firefox is 64 bit, but 32 bit programs will need other dlls. Maybe 32 and 64 bit versions of these dlls should be added to the nvda script.

Thanks for any help provided.

Re: NVDA
« Reply #4 on: October 30, 2018, 05:01:52 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
I have 2018.3 Mostly working while testing with XPE - The issue is No Speech...
The speech setting are all populated - output device is populated..
writes to speech log file..
Volume control shows speech patterns..

But No Sound - No Matter What Media Is Installed...
« Last Edit: October 30, 2018, 05:02:33 PM by James »

Re: NVDA
« Reply #5 on: October 30, 2018, 05:46:40 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi roelvdwal

test Win10PESE with older source.

https://tb.rg-adguard.net/public.php

Select Type:
Windows (Final)

1803
1709
1703

Keep in mind ChrisR wrote this plugin ~ 2015-09-05

Tip: You do not need the latest Win10 for PE.  :wink:

If all fails, also make a test with 1709 with wb. pebakery not tested around much.

:turtle:
« Last Edit: October 30, 2018, 05:47:02 PM by Lancelot »

Re: NVDA
« Reply #6 on: October 30, 2018, 06:52:55 PM »

APT

  • Grand Chef
  • *****
  • winpe enthusiast
  • Location: UK
  • Date Registered: Nov 2012
  • Posts: 1150
Hi roelvdwal

well I know nothing about nvda

but for reference I just ran  ChrisR's original scripts unmodded apart from the line 79 edit and placed in Finals folder
tested in win10pese with 10.0.16299.15 (1709) as source, x64.  Built from a Win7 x64 pro desktop
using BuilderSE and PEBakery release 951b5, both builders seem to give a working nvda

regards APT

ps.   also tried latest updated Win10PESE (update&secure) with 1809 in PEBuilder & PEBakery (latest nightly 9.6b6 2018.10.29)
both work but with a broken voice (stuttering) - presume driver issue
'full copy' selected in 1-copy files plugin
« Last Edit: October 30, 2018, 08:09:07 PM by APT »

Re: NVDA
« Reply #7 on: October 31, 2018, 11:19:11 AM »

roelvdwal

  • Jr. Chef
  • **
  • Date Registered: Oct 2018
  • Posts: 14
Hello everyone,

thank you for all the testing. I've done a test with the slightly modified nvda pluggin, build 1809 and pebakery, and am getting good results. UIA still doesn't function properly, which make open and save file view lists inaccessible. To itterate, nvda does run in all builds. The main issue is with UIA support. To check if it works, open the nvda menu, go to tools, hit view log. Something like this should be in the log:
INFO - _UIAHandler.UIAHandler.MTAThreadFunc (00:04:19.891):
UIAutomation: IUIAutomation5
The nvda in win10pese gives an error stating that UIA could not be initialized. When testing with winbuilder and windows version 1709, firefox completely failed to work. With 1809 and PeBakery I had more success: firefox worked, but open/save dialogs didn't work properly. If you don't get speech and you want to try getting speech, make a new vm (applies to vmware), and load the iso into that. The included test does not include sound. So if anyone could tell me how to solve the error found under the nvda menu \ tools \ view logs referring to UIA automation, that would be extremely helpful. I'm not sure how useful the msdn article is I linked above. This error has shown up in all of my builds.
The log should contain:
INFO - _UIAHandler.UIAHandler.MTAThreadFunc (00:04:19.891):
UIAutomation: IUIAutomation5

Thanks a lot!
« Last Edit: October 31, 2018, 12:09:11 PM by bob.omb »

Re: NVDA
« Reply #8 on: October 31, 2018, 11:41:11 AM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
It would Be Nice If we could test with your modified plugin..

That way we all on same page here....

for those testing with 1809 this App is x86 and requires wow64 files on x64 Build...
Also from my testing Process Monitor Shows looking for Certain (Google Search By File Name) JAVA Files

NVDA 2018 XPE - My Testing - No Speech In PE

Code: [Select]
\Windows\SysWOW64\UIAutomationCore.dll
\Windows\SysWOW64\??-??\UIAutomationCore.dll.mui

\windows\System32\UIAutomationCore.dll
\Windows\System32\??-??\UIAutomationCore.dll.mui
« Last Edit: October 31, 2018, 12:19:22 PM by James »

Re: NVDA
« Reply #9 on: October 31, 2018, 01:05:09 PM »

roelvdwal

  • Jr. Chef
  • **
  • Date Registered: Oct 2018
  • Posts: 14
Hi James,

Thanks a lot for modifying the original script. I'll see if I can get speech working in the win10xpe pluggin, thanks for your help.
Regarding the modified plugin, Only line 79 was modified in the original, allowing it to run under PEBakery. This line checked if windows was newer or equal to 8.1, and in your script that check isn't present, so you're not missing any updates.

Re: NVDA
« Reply #10 on: October 31, 2018, 01:23:20 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Well if you get Speech Working - Please Share The Plugin For Others To Use and Learn From..

Thank You
« Last Edit: October 31, 2018, 01:23:42 PM by James »

Re: NVDA
« Reply #11 on: October 31, 2018, 02:12:57 PM »

roelvdwal

  • Jr. Chef
  • **
  • Date Registered: Oct 2018
  • Posts: 14
Hi James,

I have found some interesting things:

1. Plugin works over here, with speech. I did enable accessibility support and wow64 support. After trying to launch nvda, it crashed after speaking "loading nvda, please wait...". After copying it to a writable location, nvda worked as expected. I susspect the following happened:
Nvda tries to load one core voices by default. When accessibility support is turned off, it tries to speak threw onecore and fails, but doesn't notice. When accessibility is turned on, it tries to speak through onecore, it does notice that something is wrong, tries switching to it's built-in synthesizer espeak, tries to write configuration and crashes. Regarding the firefox crashes: This my build failed to work with firefox. My win10pese build did work. In win10pese, firefox is on version 55, in win10xpe firefox is on version 52. I think the thing that is more interesting is that in win10xpe, firefox is 64 bit, and in win10pese, firefox is 32-bit. I will check the plugin for any missing 64-bit dlls and force the option to run from RAM. In addition, I'll check if I can make nvda autorun on startup.

Re: NVDA
« Reply #12 on: October 31, 2018, 02:45:18 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Plugin has Startup Shortcut..... Below Folder Input box..

Seen option to use One core in NVDA settings....

I test with RAM Builds - Thus Writable Media or Use USB - thus also writable media...

Firefox will follow PE_Programs Unless You Select Run From Ram

For me in XPE Google Better Choice
« Last Edit: October 31, 2018, 02:48:38 PM by James »

Re: NVDA
« Reply #13 on: October 31, 2018, 04:13:09 PM »

roelvdwal

  • Jr. Chef
  • **
  • Date Registered: Oct 2018
  • Posts: 14
Hi James,

Sorry, failed to notice. Unfortunately the startup shortcut doesn't work, maybe because of the audio service starting afterwards, will look into it.
In my new builds, firefox does work. I have no idea why it does, I'll try retracing my steps..

Re: NVDA
« Reply #14 on: October 31, 2018, 04:45:59 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Well if you get Speech Working - Please Share The Plugin For Others To Use and Learn From..

Thank You

Thank You

Re: NVDA
« Reply #15 on: October 31, 2018, 05:19:26 PM »

roelvdwal

  • Jr. Chef
  • **
  • Date Registered: Oct 2018
  • Posts: 14
Hello James,

No modifications to the plugin were necessary. I am just using your version. I don't know why speech failed for you, but see my post about onecore voices, maybe that had something to do with it. If speech doesn't work, you might need to enable accessibility in the build core, but I have not hardcoded the accessibility requirement into the plugin yet. I will of course share any improvements I make, it'd be selfish not to. I am currently trying to make nvda start after the audio service, haven't figured out the firefox issue yet. I will keep you informed.

Re: NVDA
« Reply #16 on: October 31, 2018, 05:33:32 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
With XPE 10-12-2018 > Using Current Test Plugin with Source 1803 x64 -

NVDA 2018 -

ONLY Requires !! - WOW64 Basic - And The test Plugin already has Message if not WoW64 Basic selected...

*****

NOW, If I change only the Source to 1809 - I lose System Startup Sound (Reported Earlier) and NVDA Speech

So appears to be a ( compareversion, if ) somewhere in XPE Issue

I find it hard to believe that I am the only one to lose startup sound with just an OS source change..
« Last Edit: October 31, 2018, 05:38:33 PM by James »

Re: NVDA
« Reply #17 on: October 31, 2018, 05:55:44 PM »

roelvdwal

  • Jr. Chef
  • **
  • Date Registered: Oct 2018
  • Posts: 14
Attached is a slightly modified nvda plugin, only the script, not the file. In it, I have solved a small bug wherein the exit command was removed incorrectly from the autorun.cmd, causing it to appear twice, once before the nvda run command. However, NVDA still does not start properly, due to it starting before the audio service starts, causing it to be speechless. Restarting nvda does give speech. James, how are you testing the iso? I'm using vm ware, on windows 1803, the xpe build is using a 1809 source, nvda speaks when started manually after the startup sound. If you know by any chance how the startup sound is automatically played, that'd help to complete the automatic starting of NVDA. I've looked at the audio pluggin, there is a filetype association there, but I can't find any command that tells the PE to play startup.mp3 when the audio service has been started. Once again, thanks for your great work converting the win10PESE plugin into an xpe one.
* NVDA_2018.Script (47.32 kB - downloaded 57 times.)

Re: NVDA
« Reply #18 on: October 31, 2018, 06:52:37 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
From Build Core Interface - Select "Edit Pecmd.ini" Button

Add / Replace This Code Under " _SUB AudioInit "

Code: [Select]
//Startup sound
EXEC @!%WinDir%\System32\mpg123.exe -q %SystemRoot%\Media\startup.mp3

//Start NVDA after Audio
//EXEC @!%WinDir%\System32\NVDA_Startup.cmd


Here Is The XPE NVDA-2018 Plugin v3 with Autorun after audio service via pecmd
Attachment removed


« Last Edit: November 01, 2018, 01:17:01 AM by James »

Re: NVDA
« Reply #19 on: October 31, 2018, 07:56:24 PM »

roelvdwal

  • Jr. Chef
  • **
  • Date Registered: Oct 2018
  • Posts: 14
Yeah, it was relatively easy to find and correct that bug. I know the modification was small, but at least we are on the same plugin now.

Regarding the audio problem, I have tried the following, in order:
Look at the original nvda script to check what it does: it says
// Start NVDA later after Audio plugin which Load Audio drivers to Start Auiosrv=> plugin in Level=7 now
after that, the autorun.cmd gets appended with the name of the nvda executable so that it is started.
From this I conclude that somehow autorun.cmd is executed after the audio service is started in win10pese, autorun.cmd does not contain a check if the audiosrv service has been started.
Also interesting is that the nvda plugin has level = 8 and according to the comment the audio plugin has level = 7.
In win10xpe, nvda has level=5 and the audio plugin has level=0, so we're good there, I think.
So after discovering that the old nvda plugin did not contain much useful information how to start it after the audio service started, I tried finding the script that plays the startup sound. The startup sound will have to be played after the audio service has started, so maybe nvda can be executed in that same script, after the startup sound. I looked at the audio plugin, It copies lots of files and registry keys. However, it does not write any script, at least as far as I can see. The folder of the startup sound does not contain clews either, nor the folder of the mpeg123 executable. I'm sorry if I am being vague in my bug reports. With firefox, it seems that on first build, it fails, but when the second build is started, it runs correctly. Maybe when I said that firefox worked in my new builds I made the impression that I simply didn't test my old builds well enough and had us running around in circles for nothing? To rephrase: When building win10xpe for the first time with only accessibility and wow64 enabled next to nvda, the rest are default settings, on a computer running windows 1803, with PE source 1809, NVDA's browse mode in firefox does not work. After the second build with some extra tools enabled, it suddenly did work. In that build, I enabled google chrome and I enabled a few other plugins, process monitor is one, to help me get the missing dll. I found this very strange, so I disabled google chrome and then rebuilt again to see if somehow google chrome included the correct files to make nvda work with firefox, firefox still worked so google chrome was not the issue. If my questions are easily answered and if I have missed some major source of documentation, I'm sorry for not noticing it.

 

Powered by EzPortal