diff options
author | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-09-29 16:54:22 -0400 |
---|---|---|
committer | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-09-29 16:54:22 -0400 |
commit | 0d34ea8ab82be1140916a48df4e46ef15c7b23db (patch) | |
tree | c7e05886bfe8f3631e053ee94b8b668a5363f55e | |
parent | 658fe77c26712a691ad346e187edeb587ec5c139 (diff) |
comments
-rw-r--r-- | src/client/views/nodes/ComparisonBox.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx index 30237ac64..9ac8d7c52 100644 --- a/src/client/views/nodes/ComparisonBox.tsx +++ b/src/client/views/nodes/ComparisonBox.tsx @@ -13,7 +13,7 @@ import { DocCast, NumCast, RTFCast, StrCast, toList } from '../../../fields/Type import { GPTCallType, gptAPICall, gptImageLabel } from '../../apis/gpt/GPT'; import '../pdf/GPTPopup/GPTPopup.scss'; import { DocUtils } from '../../documents/DocUtils'; -import { DocumentType } from '../../documents/DocumentTypes'; +import { CollectionViewType, DocumentType } from '../../documents/DocumentTypes'; import { Docs } from '../../documents/Documents'; import { DragManager } from '../../util/DragManager'; import { dropActionType } from '../../util/DropActionTypes'; @@ -311,6 +311,9 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<FieldViewProps>() } }; + /** + * Set up speech to text tool. + */ setListening = () => { const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition; if (SpeechRecognition) { |