-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (70 loc) · 3.38 KB
/
index.html
File metadata and controls
98 lines (70 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!doctype html><html lang="en-GB" class="app-page"> <title> *Adaptive speech recognition </title>
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
<link rel="stylesheet" href="demo/style.css" />
<link rel="icon" href="data:," /><!-- Prevent favicon 404s! -->
<h1> Adaptive speech recognition </h1>
<example-recognizer-app>
<form>
<p>
<output id="sdkVersion" aria-label="Version" aria-live="off"></output>
</p>
<p>
<button type="submit" id="startButton">Start dictation</button>
<button type="reset" id="stopButton" disabled >Stop</button>
<i id="recognizer-status" title="Recognizer stopped"></i>
</p>
<p>
<label for="result">Result</label>
<output id="result" class="output"></output>
</p>
<p id="actions" title="(actions)"></p>
<p>
<label for="log">Log</label>
<output id="log" aria-live="off"></output>
</p>
<details>
<summary>
<label for="options">Configuration</label>
</summary>
<output id="options" aria-live="off"></output>
</details>
</form>
</example-recognizer-app>
<a class="github-fork-ribbon" href="https://github.com/nfreear/dictation" data-ribbon="Fork me on GitHub" title="Fork 'nfreear/dictation' on GitHub">Fork nfreear/dictation on GitHub</a>
<script type="importmap">
{
"imports": {
"adaptive-speech-recognizer": "./index.js",
"ExampleRecognizerAppElement": "./demo/lib/example-app.js",
"webApiSpeechRecogDemo": "./src/web-api-speech-recog.js",
"fireMockActionsEvent": "./test/fireMockActionsEvent.js",
"ms-cognitive-speech-sdk": "https://unpkg.com/microsoft-cognitiveservices-speech-sdk@1.43.1/distrib/browser/microsoft.cognitiveservices.speech.sdk.bundle-min.js"
}
}
</script>
<script type="module">
import 'ExampleRecognizerAppElement';
</script>
<!-- ====================================================== -->
<footer>
© 2025 Nick Freear. All rights reserved.
<a href="https://github.com/nfreear/dictation">source</a>
</footer>
<pre hidden>
NDF, 08-Oct-2020.
* https://gist.github.com/nfreear/f875994f45c97518cd8c42c786998c84;
</pre>
</html>
<!--
* https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/get-started-speech-to-text?tabs=script%2Cwindowsinstall&pivots=programming-language-javascript;
* https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-sdk?tabs=browser%2Cubuntu%2Cios-xcode%2Cmac-xcode%2Candroid-studio#get-the-speech-sdk;
* https://docs.microsoft.com/en-us/javascript/api/microsoft-cognitiveservices-speech-sdk/?view=azure-node-latest
* YES !! ~~ https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/get-started-speech-to-text?tabs=script%2Cwindowsinstall&pivots=programming-language-javascript#continuous-recognition;
==
https://github.com/microsoft/cognitive-services-speech-sdk-js/blob/v1.13.1/src/common.browser/MicAudioSource.ts#L134-L145
>>
microsoft.cognitiveservices.speech.sdk.bundle-min.js:1 undefined | undefined | privName: AudioSourceErrorEvent | privEventId: D0FFB17607834013BFD72356FC82D571 | privEventTime: 2020-10-08T14:32:25.364Z | privEventType: 3 | privMetadata: {} | privAudioSourceId: A660C16B24584A7F9FA6694F012B35DF | privError: Error occurred during microphone initialization: NotAllowedError: Permission dismissed
-->