aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/GlobalKeyHandler.ts3
-rw-r--r--src/client/views/MainView.tsx2
-rw-r--r--src/client/views/nodes/DocumentView.tsx3
3 files changed, 5 insertions, 3 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index 82289c249..98df43a1e 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -112,7 +112,8 @@ export default class KeyManager {
main.dictationOverlayVisible = true;
main.isListening = true;
- let command = await DictationManager.Controls.listen((results: any) => console.log(results));
+ // let printer = (results: any) => console.log(results);
+ let command = await DictationManager.Controls.listen();
main.isListening = false;
if (!command) {
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 748e1e634..5cec34293 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -49,7 +49,7 @@ export class MainView extends React.Component {
@observable public pwidth: number = 0;
@observable public pheight: number = 0;
- @observable private dictationState = "Listening...";
+ @observable private dictationState = "";
@observable private dictationSuccessState: boolean | undefined = undefined;
@observable private dictationDisplayState = false;
@observable private dictationListeningState = false;
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index c5d526a5a..bd87bf21b 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -539,7 +539,8 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
}
listen = async () => {
- let transcript = await DictationManager.Controls.listen();
+ let options = { continuous: { indefinite: true }, delimiter: " " };
+ let transcript = await DictationManager.Controls.listen(options);
transcript && (Doc.GetProto(this.props.Document).transcript = transcript);
}