From 1dab4f91f17531a04220ef3f8eed40261d0a2622 Mon Sep 17 00:00:00 2001 From: Alex Schneider Date: Tue, 23 Nov 2021 00:24:57 -0500 Subject: [PATCH] Remove OCR reference --- .../LiveScrollTranscriptAccessibilityService.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AndroidProject/app/src/main/java/com/livescrolltranscript/LiveScrollTranscriptAccessibilityService.kt b/AndroidProject/app/src/main/java/com/livescrolltranscript/LiveScrollTranscriptAccessibilityService.kt index ab0693b..fc2f3d5 100644 --- a/AndroidProject/app/src/main/java/com/livescrolltranscript/LiveScrollTranscriptAccessibilityService.kt +++ b/AndroidProject/app/src/main/java/com/livescrolltranscript/LiveScrollTranscriptAccessibilityService.kt @@ -19,6 +19,7 @@ import android.os.Build import android.util.Log import android.view.accessibility.AccessibilityEvent import android.view.accessibility.AccessibilityNodeInfo +import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_SELECT import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_ON_SCREEN import android.widget.Toast import androidx.annotation.RequiresApi @@ -26,8 +27,8 @@ import androidx.annotation.RequiresApi /** * An [AccessibilityService] for scrolling on-screen text to match recently-played audio. * - * When the Live Captions view scrolls, this service receives an [AccessibilityEvent]. It then takes - * a screenshot and uses OCR to read the current Live Caption text. The current accessibility tree + * When the Live Captions view scrolls, this service receives an [AccessibilityEvent]. It then grabs + * the Live Caption window node to read the current Live Caption text. The current accessibility tree * is searched for the current caption text. If a unique [AccessibilityNodeInfo] is found to match * the caption text, it is requested to show itself on screen. */