Hi,
I'm working on silencing this at the moment. I haven't figured
out which UIA event gets fired when one is speaking.
Cheers,
Joseph
----- Original Message -----
From: Andre Fisher <andrefisher729@xxxxxxxxx
To: nvda-addons@xxxxxxxxxxxxx
Date sent: Sun, 7 Feb 2016 15:28:19 -0500
Subject: [nvda-addons] Re: commit/wintenApps: 2 new changesets
When I start talking to Cortana, I hear nonsense after it says
'listening' or 'anything else'
On 2/7/16, Joseph Lee <joseph.lee22590@xxxxxxxxx> wrote:
Hi,
Starting with today's Windows 10 App Essentials snapshot, text
responses
from Cortana are announced by NVDA (a huge advancement).
Technical: Cortana can provide text responses as well as speech
output. In
order to support announcement of text responses, searchui.py has
been added
to WinTenApps (borrowed from NVDA Core version) which adds name
change
event
handler. For some reason, two greeting lines are used by
Cortana when
giving
text responses (often, both lines contain the same text). For
now, text
response announcement works; the next task is making sure NVDA
does not
interrupt speech responses.
Cheers,
Joseph
-----Original Message-----
From: nvda-addons-commits-bounce@xxxxxxxxxxxxx
[mailto:nvda-addons-commits-bounce@xxxxxxxxxxxxx] On Behalf Of
commits-noreply@xxxxxxxxxxxxx
Sent: Saturday, February 6, 2016 10:50 PM
To: nvda-addons-commits@xxxxxxxxxxxxx
Subject: commit/wintenApps: 2 new changesets
2 new commits in wintenApps:
https://bitbucket.org/nvdaaddonteam/wintenapps/commits/1119070ae5
fa/
Changeset: 1119070ae5fa
Branch: None
User: josephsl
Date: 2016-02-07 06:47:26+00:00
Summary: NVDA can serve as a mouthpiece for Cortana.
For now, text responses from Cortana are announced by NVDA. The
next step
is
making sure that NVDA will not interup Cortana's speech
responses.
Affected #: 1 file
diff --git a/addon/appModules/searchui.py
b/addon/appModules/searchui.py
new
file mode 100755 index 0000000..f04c04b
--- /dev/null
+++ b/addon/appModules/searchui.py
@@ -0,0 +1,52 @@
+#A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2015
NV
+Access Limited #This file is covered by the GNU General Public
License.
+#See the file COPYING for more details.
+# Extended by Joseph Lee (released under GPL)
+
+import appModuleHandler
+import controlTypes
+import api
+import speech
+from NVDAObjects.UIA import UIA
+from NVDAObjects.UIA.edge import EdgeList from
NVDAObjects.IAccessible
+import IAccessible, ContentGenericClient import ui
+
+# Windows 10 Search UI suggestion list item class
+SuggestionListItem(UIA):
+
+ role=controlTypes.ROLE_LISTITEM
+
+ def event_UIA_elementSelected(self):
+ focusControllerFor=api.getFocusObject().controllerFor
+ if len(focusControllerFor)>0 and
focusControllerFor[0].appModule is self.appModule and self.name:
+ speech.cancelSpeech()
+ api.setNavigatorObject(self)
+ self.reportFocus()
+
+class AppModule(appModuleHandler.AppModule):
+
+ def chooseNVDAObjectOverlayClasses(self,obj,clsList):
+ if isinstance(obj,UIA) and
isinstance(obj.parent,EdgeList):
+ clsList.insert(0,SuggestionListItem)
+ elif isinstance(obj,IAccessible):
+ try:
+ # #5288: Never use ContentGenericClient, as
this uses displayModel
+ # which will freeze if the process is
suspended.
+ clsList.remove(ContentGenericClient)
+ except ValueError:
+ pass
+
+ # Past responses from Cortana (cached to prevent repetition,
initially an empty string).
+ CortanaResponseCache = ""
+
+ def event_nameChange(self, obj, nextHandler):
+ # NVDA, can you act as a mouthpiece for Cortana?
+ if isinstance(obj, UIA):
+ element = obj.UIAElement
+ # There are two Cortana response lines. Usually
line
2 is more reliable.
+ if element.cachedAutomationID in
("SpeechContentLabel", "GreetingLine2"):
+ ui.message(obj.name)
+ nextHandler()
+
https://bitbucket.org/nvdaaddonteam/wintenapps/commits/3efe14e0ae
70/
Changeset: 3efe14e0ae70
Branch: master
User: josephsl
Date: 2016-02-07 06:48:24+00:00
Summary: New build var version style
Affected #: 1 file
diff --git a/buildVars.py b/buildVars.py index 7e23321..76c5628
100755
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
# Translators: Long description to be shown for this add-on
on
add-on information from add-ons manager
"addon_description" : _("""A collection of app modules for
variosu
Windows 10 apps"""),
# version
- "addon_version" : "16.02",
+ "addon_version" : "20160206-dev",
# Author(s)
"addon_author" : u"Joseph Lee <joseph.lee22590@xxxxxxxxx>
and
others",
# URL for the add-on documentation support
Repository URL: https://bitbucket.org/nvdaaddonteam/wintenapps/
--
This is a commit notification from bitbucket.org. You are
receiving this
because you have the service enabled, addressing the recipient
of this
email.
----------------------------------------------------------------
NVDA add-ons: A list to discuss add-on code enhancements and for
reporting
bugs.
Community addons are available from:
http://addons.nvda-project.org
To send a message to the list: nvda-addons@xxxxxxxxxxxxx
To change your list settings/unsubscribe:
//www.freelists.org/list/nvda-addons
To contact list moderators: nvda-addons-moderators@xxxxxxxxxxxxx
----------------------------------------------------------------
NVDA add-ons: A list to discuss add-on code enhancements and for
reporting bugs.
Community addons are available from:
http://addons.nvda-project.org
To send a message to the list: nvda-addons@xxxxxxxxxxxxx
To change your list settings/unsubscribe:
//www.freelists.org/list/nvda-addons
To contact list moderators: nvda-addons-moderators@xxxxxxxxxxxxx
----------------------------------------------------------------
NVDA add-ons: A list to discuss add-on code enhancements and for reporting bugs.
Community addons are available from: http://addons.nvda-project.org
To send a message to the list: nvda-addons@xxxxxxxxxxxxx
To change your list settings/unsubscribe:
//www.freelists.org/list/nvda-addons
To contact list moderators: nvda-addons-moderators@xxxxxxxxxxxxx