New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ability for braille to show what NVDA is speaking #15956
Conversation
…an error when speech emulation mode is selected
… clear the braille regions in speech emulation mode
…se when canceling speech when the script is one of the braille scrolling scripts
…mulation and a large amount of text is given
…dissabled when speech emulation is selected
This comment was marked as resolved.
This comment was marked as resolved.
Is this something that enough users will want to toggle on the fly, that it
warrants assigning a key by default?
|
Would you be able to provide some examples. Especially for core features if they don't work well in Braille it is useful to have an issue to track the problem. |
I tested and noticed that something about new setting should be added to configSpec.py to get nvda from source running. If braille is tethered to review, changing setting from settings dialog braille category from "speech emulation" to "follow cursors" causes attribute error and displaying braille is stopped until changed to what braille is tethered to. I did not get nvda+alt+t to work with laptop layout when I used caps lock as nvda key although it was shown in braille category of gestures but this is something what is not problem of this pr. |
…via the braille settings pannel when braille is tethered to review
This comment was marked as resolved.
This comment was marked as resolved.
@lukaszgo1 As of the latest alpha, braille does not show:
|
@XLTechie I don't know. |
Actually, given your response to @lukaszgo1, and the probable use cases you
site,
I am thinking that this probably does warrant a shortcut key out of the box.
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
See test results for failed build of commit 672d8524ed |
See test results for failed build of commit 29373466ff |
See test results for failed build of commit ea8be83f53 |
See test results for failed build of commit d28da2d23b |
See test results for failed build of commit c12f4224ba |
@seanbudd I think I have fixed the type hint on the suppressClearBrailleRegions function now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks almost ready
source/speech/extensions.py
Outdated
filter_speechSequence = Filter[SpeechSequence]() | ||
""" | ||
Filters speech sequence before it passes to synthDriver. | ||
|
||
:param value: the speech sequence to be filtered. | ||
:type value: SpeechSequence | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you remove this junk new line added
source/speech/speech.py
Outdated
@@ -6,7 +6,6 @@ | |||
|
|||
"""High-level functions to speak information. | |||
""" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please restore this new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reads well. Agree with Sean's change.
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Link to issue number:
fixes #15898
Summary of the issue:
Both in NVDA core, as well as some add-ons, have features that work with speech but don't work with braille
Description of user facing changes
Braille only users will be able to read NVDA speech in braille, thus get access to a lot more features then they would otherwise
Description of development approach
A new braille mode has been added, called "speech emulation". In this mode, NVDA will send all text that has been spoken since the last time speech was canceled, to the braille display. If the speech was canceled do to the user scrolling the braille display back or fourth, the speech output mode will treat it as if the speech was not canceled, so the user can read the text without erasing it accidentally. If braille.handler.rawText is grater then 100000 characters, it will not be sent, because in my experience, NVDA will freeze when that much text is sent to the braille display at once. The braille settings panel has been rearranged so that all settings not aplickable to speech emulation is grouped together. A new combo box has been added to the braille settings panel, and a new script with the gesture NVDA+alt+t have been added, that allows the user to change braille mode.
Testing strategy:
tested with a Focus braille display. To test that it ignored speech being canceled when scrolling the braille display back or fourth, I turned off "Speech interrupt for typed characters", then opened the run dialog, scrolled the braille display to the end of the text while in speech output mode with the "Interrupt speech while scrolling" setting turned on, and then typed some text. I then scrolled the braille display back and fourth, and continued typing text while doing this to ensure that it worked as it should. Everything worked as expected
Known issues with pull request:
None so far
Code Review Checklist: