質問編集履歴

2

該当のソースコードを編集しました。 <strong>webkitSpeechRecognation<strong>→<strong>webkitSpeechRecognition<strong>

2020/12/28 00:52

投稿

saria
saria

スコア0

test CHANGED
File without changes
test CHANGED
@@ -26,9 +26,23 @@
26
26
 
27
27
  ```
28
28
 
29
- index.html:14 Uncaught ReferenceError: webkitSpeechRecognation is not defined
29
+ content.js:77 Uncaught (in promise) Error: CommunicationTimedOut
30
30
 
31
- at index.html:14
31
+ at content.js:77
32
+
33
+ (anonymous) @ content.js:77
34
+
35
+ Promise.then (async)
36
+
37
+ (anonymous) @ content.js:277
38
+
39
+ ContentEventDispatcher.init @ content.js:275
40
+
41
+ InitContentscriptEnvironment.init @ content.js:837
42
+
43
+ (anonymous) @ content.js:904
44
+
45
+ (anonymous) @ content.js:905
32
46
 
33
47
  ```
34
48
 
@@ -56,19 +70,13 @@
56
70
 
57
71
  <button>start</button>
58
72
 
59
- <script>
73
+ <script>
60
-
61
- 'use strict';
62
-
63
-
64
-
65
- {
66
74
 
67
75
  const btn = document.querySelector('button');
68
76
 
69
- const speech = new webkitSpeechRecognation();
77
+ const speech = new webkitSpeechRecognition();
70
78
 
71
- speech.lang ='ja-JP';
79
+ speech.lang = 'ja-JP';
72
80
 
73
81
 
74
82
 
@@ -92,15 +100,11 @@
92
100
 
93
101
  };
94
102
 
95
- }
96
-
97
- </script>
103
+ </script>
98
104
 
99
105
  </body>
100
106
 
101
107
  </html>
102
-
103
-
104
108
 
105
109
  ```
106
110
 

1

ブラウザを追記しました。

2020/12/28 00:52

投稿

saria
saria

スコア0

test CHANGED
File without changes
test CHANGED
@@ -125,3 +125,7 @@
125
125
 
126
126
 
127
127
  XAMPP Control Panel v 3.3.4
128
+
129
+ ブラウザ
130
+
131
+ Google Chrome 87.0.4280.88(Official Build) (64 ビット)