From 9a110dee28ae2ef12ee014b98fda6bae6ee48edb Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Wed, 2 Mar 2022 20:22:51 +0900 Subject: Migrate to Compat macro (zh-cn) --- .../zh-cn/web/api/speechgrammar/weight/index.html | 74 +--------------------- 1 file changed, 1 insertion(+), 73 deletions(-) (limited to 'files/zh-cn/web/api/speechgrammar/weight') diff --git a/files/zh-cn/web/api/speechgrammar/weight/index.html b/files/zh-cn/web/api/speechgrammar/weight/index.html index 3a56e9edad..b75d0133f7 100644 --- a/files/zh-cn/web/api/speechgrammar/weight/index.html +++ b/files/zh-cn/web/api/speechgrammar/weight/index.html @@ -57,79 +57,7 @@ console.log(speechRecognitionList[0].weight); // 应该返回 1 - 与上面第

浏览器兼容性

-
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(33)}} [1]{{CompatGeckoDesktop(44)}} [2]{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidChromeFirefox Mobile (Gecko)Firefox OSIE PhoneOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}[1]{{CompatUnknown}}2.5{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
- - - -

Firefox OS 权限

- -

如需在应用中使用语音识别,你必须在你的 manifest 中指明下面的权限:

- -
"permissions": {
-  "audio-capture" : {
-    "description" : "Audio capture"
-  },
-  "speech-recognition" : {
-    "description" : "Speech recognition"
-  }
-}
- -

若还需要设置应用的特权类型,因此你还需要包含以下这项:

- -
  "type": "privileged"
+{{Compat("api.SpeechGrammar.weight")}}

相关链接

-- cgit v1.2.3-54-g00ecf