Various fix-up of keep audio awake feature#16147
Conversation
|
Note: there are two points following the merge of #16099 that are still being discussed:
If we reach an agreement on one or both of this points, I can also include them in this PR. |
|
Looks good to me! |
Why not just: "This edit box specifies how long NVDA plays silence after speech ends" |
|
I think it would be good to move the setting to the audio panel in this PR |
The default value is sufficient for me and even most users, it is not a setting that needs to be changed frequently, so I think it is appropriate to put it in the advanced settings. |
|
I agree with @cary-rowen - most users won't need to change this value, so I'd think it belongs on the advanced panel. |
|
The default value is sufficient for me and even most users, it is not a setting that needs to be changed frequently, so I think it is appropriate to put it
in the advanced settings.
It is not a matter of whether the default is sufficient. It is a matter of where
users would expect to find it. IMO, that's in audio. There is nothing overly
advanced about this setting.
Plus, though I haven't tried the latest build, I think the only way to turn this
feature on/off, is to change this setting, is it not? If that is so, even more
reason to keep it out of Advanced and put it in Audio. It advertises the
feature, and what can be done with it. Some users are afraid of anything in
Advanced, as anyone inclined to be afraid of it likely should be.
|
|
Why not just: "This edit box specifies how long NVDA plays silence after speech ends"
Yes, exactly the kind of thing I was targeting. Explains it with no technical
terminology at all. CC @Adriani90
|
|
I have addressed review comments:
To see the documentation improvements before the paragraph was moved, do: The following changes have been done in documentation:
Regarding the move of the option to audio settings:
|
|
If it can work at the very start of a spoken item after a long gap, then I'd agree. Luckily my main computer has no latency sound turn off as its a desktop, but have encountered these effects on Bluetooth devices and some laptops, and there that program Silencio seemed to be the best approach.
Brian
…--
***@***.***
Sent via blueyonder.(Virgin media)
Please address personal E-mail to:-
***@***.***, putting 'Brian Gaff'
in the display name field.
----- Original Message -----
From: mltony
To: nvaccess/nvda
Cc: Subscribed
Sent: Friday, February 09, 2024 12:41 AM
Subject: Re: [nvaccess/nvda] Various fix-up of keep audio awake feature (PR #16147)
I agree with @cary-rowen - most users won't need to change this value, so I'd think it belongs on the advanced panel.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
XLTechie
left a comment
There was a problem hiding this comment.
The following suggestions are mainly to improve the reading of this in my opinion as an English speaker and editor. @Qchristensen might also have some thoughts.
| initial=config.conf["audio"]["keepAudioAwakeTimeSeconds"] | ||
| ) | ||
| self.bindHelpEvent("KeepAudioAwakeDuration", self.audioAwakeDurationEdit) | ||
| self.audioAwakeDurationEdit.Enable(nvwave.usingWasapiWavePlayer()) |
There was a problem hiding this comment.
If this is going to be "audioAwakeTimeSeconds" in config, why not have it the same in all of these variables and the anchor?
Even "AudioAwakeTime" would be fine (and shorter) IMO.
| This setting only takes effect when "Volume of NVDA sounds follows voice volume" is disabled. | ||
| This option is not available if you have started NVDA with [WASAPI disabled for audio output #WASAPI] in Advanced Settings. | ||
|
|
||
| ==== Duration of keeping audio device awake ====[KeepAudioAwakeDuration] |
There was a problem hiding this comment.
Personally, in English, I find this title slightly awkward.
Here is a suggested alternative. Note that I didn't change the anchor name, as that is referenced else ware, and should be changed holistically if it is changed.
I'm not in love with this alternative either, but it may be somewhat better.
| ==== Duration of keeping audio device awake ====[KeepAudioAwakeDuration] | |
| ==== Keep audio device awake time ====[KeepAudioAwakeDuration] |
There was a problem hiding this comment.
I think I would just go with Time to keep audio device awake
Spelling fixes and wording improvements Co-authored-by: Luke Davis <8139760+XLTechie@users.noreply.github.com>
|
Thanks @XLTechie for your valuable feedback about English spelling / grammar, as well as other wording improvements. Regarding the name of the option, I'd say that we need to agree on the label of the control in the GUI. Then I'll derive the following:
I'll wait for other feedback (@seanbudd, @Qchristensen and community). I agree that having a suitable name in the GUI and in the user guide can participate to the success of a new feature. |
| This setting only takes effect when "Volume of NVDA sounds follows voice volume" is disabled. | ||
| This option is not available if you have started NVDA with [WASAPI disabled for audio output #WASAPI] in Advanced Settings. | ||
|
|
||
| ==== Duration of keeping audio device awake ====[KeepAudioAwakeDuration] |
There was a problem hiding this comment.
I think I would just go with Time to keep audio device awake
| This can happen due to audio devices (especially Bluetooth and wireless devices) entering stand-by mode. | ||
| This might also be helpful in other use cases, such as when running NVDA inside a virtual machine (e.g. Citrix Virtual Desktop), or on certain laptops. | ||
|
|
||
| Lower values may allow audio to be cut-off more often, as a device may enter stand-by mode too soon, causing the start of the following speech to be clipped. |
There was a problem hiding this comment.
The various instances of "stand-by" should be replaced with "standby".
Co-authored-by: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com> Co-authored-by: Luke Davis <8139760+XLTechie@users.noreply.github.com>
See test results for failed build of commit 8ccf634a3d |
Fix-up of nvaccess#16099 Fixes nvaccess#16148 Summary of the issue: Error when disabling WASAPI and reopening advanced settings: ERROR - unhandled exception (11:14:54.349) - MainThread (6028): Traceback (most recent call last): File "gui\settingsDialogs.pyc", line 4517, in onCategoryChange File "gui\settingsDialogs.pyc", line 693, in onCategoryChange File "gui\settingsDialogs.pyc", line 675, in _doCategoryChange File "gui\settingsDialogs.pyc", line 603, in _getCategoryPanel File "gui\settingsDialogs.pyc", line 362, in __init__ File "gui\settingsDialogs.pyc", line 372, in _buildGui File "gui\settingsDialogs.pyc", line 3514, in makeSettings File "gui\settingsDialogs.pyc", line 3259, in __init__ File "gui\settingsDialogs.pyc", line 3352, in _onWasapiChange File "gui\guiHelper.pyc", line 232, in Enable TypeError: Window.Enable(): argument 1 has unexpected type 'FeatureFlag' ERROR - unhandled exception (11:14:54.361) - MainThread (6028): Traceback (most recent call last): File "gui\guiHelper.pyc", line 218, in _onEnableChanged TypeError: Window.Enable(): argument 1 has unexpected type 'FeatureFlag' Oversight in AdvancedPanelControls.haveConfigDefaultsBeenRestored in settingsDialogs.py. In settingsDialogs.py, rename variable to be consistent with the GUI ("silence" -> "keep audio awake") Documentation (User Guide and Change log) updates Description of user facing changes The option is enabled or disabled depending on the real current WASAPI state, not the state defined in the configuration for the next restart of NVDA. The "keep audio awake" option is moved to audio settings The documentation does not mention "playing silence" at all anymore Description of development approach For point 1: use real WASAPI state instead of what is in the config for the next restart, as it was already done in other audio settings depending on WASAPI.
This PR contains various fix-ups of PR #16099, some less important than others. Cc @mltony
Link to issue number:
Fix-up of #16099
Fixes #16148
Summary of the issue:
Oversight in
AdvancedPanelControls.haveConfigDefaultsBeenRestoredinsettingsDialogs.py.In
settingsDialogs.py, rename variable to be consistent with the GUI ("silence" -> "keep audio awake")Documentation (User Guide and Change log) updates
Description of user facing changes
Description of development approach
For point 1: use real WASAPI state instead of what is in the config for the next restart, as it was already done in other audio settings depending on WASAPI.
Testing strategy:
Checked that the error reported in point 1 does not occur anymore.
whiteNoiseVolume.Note: I am not able to directly test the feature to keep audio awake, since I have no impacted device (e.g. Bluetooth headset).
Known issues with pull request:
None
Code Review Checklist: