aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DictationManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-08-08 15:47:35 -0400
committerbobzel <zzzman@gmail.com>2022-08-08 15:47:35 -0400
commitf9cded6755ee236d88e21b3b2d4c6da357d059b2 (patch)
treed917a0eb2789852f5cd04ba23c441e26a012da6f /src/client/util/DictationManager.ts
parent4b2f131d91e71f4514642b5846713e9c3b68210b (diff)
moved 5 sec anno recording button to documentButtonsBar. made recording button appear only when there is one & click to play recording.
Diffstat (limited to 'src/client/util/DictationManager.ts')
-rw-r--r--src/client/util/DictationManager.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/client/util/DictationManager.ts b/src/client/util/DictationManager.ts
index 13f036838..0a61f3478 100644
--- a/src/client/util/DictationManager.ts
+++ b/src/client/util/DictationManager.ts
@@ -152,7 +152,6 @@ export namespace DictationManager {
return new Promise<string>((resolve, reject) => {
recognizer.onerror = (e: any) => {
- console.log('SPEECH error:', encodeURIComponent);
// e is SpeechRecognitionError but where is that defined?
if (!(indefinite && e.error === 'no-speech')) {
recognizer.stop();
@@ -162,7 +161,6 @@ export namespace DictationManager {
};
recognizer.onresult = (e: SpeechRecognitionEvent) => {
- console.log('RESULT: ', e);
current = synthesize(e, intra);
let matchedTerminator: string | undefined;
if (options?.terminators && (matchedTerminator = options.terminators.find(end => (current ? current.trim().toLowerCase().endsWith(end.toLowerCase()) : false)))) {
@@ -175,7 +173,6 @@ export namespace DictationManager {
};
recognizer.onend = (e: Event) => {
- console.log('END: ', e);
if (!indefinite || isManuallyStopped) {
return complete();
}
@@ -188,7 +185,6 @@ export namespace DictationManager {
};
const complete = () => {
- console.log('COMPLETE:');
if (indefinite) {
current && sessionResults.push(current);
sessionResults.length && resolve(sessionResults.join(inter || interSession));