Date
1 - 10 of 10
Fix for Audio Themes and latest alphas
Alberto Buffolino
Brian's Mail list account via groups.io, il 18/02/2021 12.27, ha scritto:
Yes I wrote to the author of Audio themes studio a couple of weeks ago,Alberto: Hi Brian, I'll open an issue or propose a pr, but in the meantime... - go to: addons\audiothemes\globalPlugins\audiothemes\unspoken\__init__.py and open with Notepad++ (for example); - find: NVDAObjects.controlTypes.REASON_QUERY and replace with: REASON_QUERY - jump to top, and after imports put these lines: *** # for compatibility REASON_QUERY = NVDAObjects.controlTypes.OutputReason.QUERY if hasattr(NVDAObjects.controlTypes, "OutputReason") else NVDAObjects.controlTypes.REASON_QUERY *** - save and restart π I switched to a stereophonic experience very recently, thanks to a new cochlear implant and a new wired/wireless PC audio solution, and so I installed this add-on some days ago, appreciating it a lot for forcing the brain to notice/consider audio location. Very useful, after fixing the issue π Alberto
|
|
Brian's Mail list account
OK thanks, Yes its a bit trippy on headphones but I tend to use it on speakers. I'll have to look at that when I get my brain cell on line later today.
toggle quoted messageShow quoted text
Brian bglists@blueyonder.co.uk Sent via blueyonder. Please address personal E-mail to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field. Newsgroup monitored: alt.comp.blind-users
----- Original Message -----
From: "Alberto Buffolino" <a.buffolino@gmail.com> To: <nvda-addons@nvda-addons.groups.io> Sent: Thursday, February 18, 2021 1:35 PM Subject: [nvda-addons] Fix for Audio Themes and latest alphas Brian's Mail list account via groups.io, il 18/02/2021 12.27, ha scritto:Yes I wrote to the author of Audio themes studio a couple of weeks ago,Alberto:
|
|
Brian's Mail list account
Hmm, the issue I'm having are two. 1 When I replace the items you suggest it gives me a syntax error, but not knowing too much about how fussy it is on tabs, spaces and the like its hard to work out what i did wrong. The other bit, after the imports you say, but there are some very dirty fiddling about going on just under the main imports that looks like conditional importing, so where exactly should I put the new code to define the parameters which I assume the new line syntax further down needs to make sense.
toggle quoted messageShow quoted text
The error looks the same from the frozen bits, but the syntax error is new. Its quite a convoluted bit of code.. Of course on the other hand it could be my 70 year old brain just giving up! Maybe the best bet is to put the modified file onto a dropbox link and I'll replace it, then I could have a look at it and see what an idiot I am.. ahem... Brian bglists@blueyonder.co.uk Sent via blueyonder. Please address personal E-mail to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field. Newsgroup monitored: alt.comp.blind-users
----- Original Message -----
From: "Alberto Buffolino" <a.buffolino@gmail.com> To: <nvda-addons@nvda-addons.groups.io> Sent: Thursday, February 18, 2021 1:35 PM Subject: [nvda-addons] Fix for Audio Themes and latest alphas Brian's Mail list account via groups.io, il 18/02/2021 12.27, ha scritto:Yes I wrote to the author of Audio themes studio a couple of weeks ago,Alberto:
|
|
Alberto Buffolino
Brian's Mail list account via groups.io, il 21/02/2021 10.13, ha > Its quite a convoluted bit of code..Alberto:
Hi all, I just did a pr (my first pr!) some minutes ago. I hope the author release a new version as soon as ppossible. Alberto
|
|
Brian's Mail list account
Well, I've heard nothing from him my end.
toggle quoted messageShow quoted text
Does this mean I can download it or what? I'm not up to all this using github. Brian bglists@blueyonder.co.uk Sent via blueyonder. Please address personal E-mail to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field. Newsgroup monitored: alt.comp.blind-users
----- Original Message -----
From: "Alberto Buffolino" <a.buffolino@gmail.com> To: <nvda-addons@nvda-addons.groups.io> Sent: Sunday, February 21, 2021 3:01 PM Subject: Re: [nvda-addons] Fix for Audio Themes and latest alphas Brian's Mail list account via groups.io, il 21/02/2021 10.13, ha > Its quite a convoluted bit of code..Alberto:
|
|
Brian's Mail list account
When I did the mod you suggested instead of.
toggle quoted messageShow quoted text
ERROR - globalPluginHandler.listPlugins (17:05:41.616) - MainThread (2480): Error importing global plugin audiothemes Traceback (most recent call last): File "globalPluginHandler.pyc", line 23, in listPlugins File "importlib\__init__.pyc", line 127, in import_module File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\nvda extra\userConfig\addons\audiothemes\globalPlugins\audiothemes\__init__.py", line 31, in <module> from .handler import AudioThemesHandler, SpecialProps File "C:\nvda extra\userConfig\addons\audiothemes\globalPlugins\audiothemes\handler.py", line 20, in <module> from .unspoken import UnspokenPlayer, libaudioverse, dll_hack File "C:\nvda extra\userConfig\addons\audiothemes\globalPlugins\audiothemes\unspoken\__init__.py", line 42, in <module> @dataclasses.dataclass File "C:\nvda extra\userConfig\addons\audiothemes\globalPlugins\audiothemes\unspoken\__init__.py", line 87, in UnspokenPlayer self, reason=NVDAObjects.controlTypes.REASON_QUERY, *args, **kwargs AttributeError: module 'controlTypes' has no attribute 'REASON_QUERY' DEBUG - core.main (17:05:41.676) - MainThread (2480): Initializing core pump DEBUG - core.main (17:05:41.677) - MainThread (2480): I got the first errors the same but the part lower dow came up as a syntax error. Brian bglists@blueyonder.co.uk Sent via blueyonder. Please address personal E-mail to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field. Newsgroup monitored: alt.comp.blind-users
----- Original Message -----
From: "Alberto Buffolino" <a.buffolino@gmail.com> To: <nvda-addons@nvda-addons.groups.io> Sent: Sunday, February 21, 2021 3:01 PM Subject: Re: [nvda-addons] Fix for Audio Themes and latest alphas Brian's Mail list account via groups.io, il 21/02/2021 10.13, ha > Its quite a convoluted bit of code..Alberto:
|
|
Alberto Buffolino
Brian's Mail list account via groups.io, il 21/02/2021 18.15, ha > Β File "C:\nvda
extra\userConfig\addons\audiothemes\globalPlugins\audiothemes\unspoken\__init__.py", line 87, in UnspokenPlayerAlberto: in addition to put the code provided (in first mail) after imports, I had said to replace: reason=NVDAObjects.controlTypes.REASON_QUERY with: reason=REASON_QUERY in the same unspoken/__init__.py file. Alberto
|
|
Brian's Mail list account
Yes and that was where the syntax error came up.
toggle quoted messageShow quoted text
So does the large block of code go after the imports, or after the conditional imports as well, and how can i get the search and replace not to creat a syntax error? Brian bglists@blueyonder.co.uk Sent via blueyonder. Please address personal E-mail to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field. Newsgroup monitored: alt.comp.blind-users
----- Original Message -----
From: "Alberto Buffolino" <a.buffolino@gmail.com> To: <nvda-addons@nvda-addons.groups.io> Sent: Sunday, February 21, 2021 5:58 PM Subject: Re: [nvda-addons] Fix for Audio Themes and latest alphas Brian's Mail list account via groups.io, il 21/02/2021 18.15, ha > File "C:\nvdaextra\userConfig\addons\audiothemes\globalPlugins\audiothemes\unspoken\__init__.py", line 87, in UnspokenPlayerAlberto:
|
|
Alberto Buffolino
Brian's Mail list account via groups.io, il 22/02/2021 11.06, ha scritto:
Yes and that was where the syntax error came up.Alberto: notice that: REASON_QUERY = NVDAObjects.controlTypes.OutputReason.QUERY if hasattr(NVDAObjects.controlTypes, "OutputReason") else NVDAObjects.controlTypes.REASON_QUERY must be a single line. Anyway, the author has replied to pr, so please be patient. Alberto
|
|
Brian's Mail list account
I am don;t worry, that bit of info of course may solve it, as its not obviously a search and replace as it follows an = in the old code. It would have been better to create a block of code to replace which included the line breaks etc, as when using text editors things can and do get alltered where they should not be!
toggle quoted messageShow quoted text
grin This is why all code needs to be tested by idiots firirst! Brian bglists@blueyonder.co.uk Sent via blueyonder. Please address personal E-mail to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field. Newsgroup monitored: alt.comp.blind-users
----- Original Message -----
From: "Alberto Buffolino" <a.buffolino@gmail.com> To: <nvda-addons@nvda-addons.groups.io> Sent: Monday, February 22, 2021 12:54 PM Subject: Re: [nvda-addons] Fix for Audio Themes and latest alphas Brian's Mail list account via groups.io, il 22/02/2021 11.06, ha scritto:Yes and that was where the syntax error came up.Alberto:
|
|