aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/speechgrammar/weight/index.html
diff options
context:
space:
mode:
authorYujiSoftware <yuji.software+github@gmail.com>2022-03-02 20:22:51 +0900
committerIrvin <irvinfly@gmail.com>2022-03-04 01:03:17 +0800
commit9a110dee28ae2ef12ee014b98fda6bae6ee48edb (patch)
tree6525763f4313d7d8f42aefa699765f61ee1c63df /files/zh-cn/web/api/speechgrammar/weight/index.html
parenteeddb651b6e8deb8ecabc2bc5bc28c8ead25cca5 (diff)
downloadtranslated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.tar.gz
translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.tar.bz2
translated-content-9a110dee28ae2ef12ee014b98fda6bae6ee48edb.zip
Migrate to Compat macro (zh-cn)
Diffstat (limited to 'files/zh-cn/web/api/speechgrammar/weight/index.html')
-rw-r--r--files/zh-cn/web/api/speechgrammar/weight/index.html74
1 files changed, 1 insertions, 73 deletions
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 - 与上面第
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(33)}} <sup>[1]</sup></td>
- <td>{{CompatGeckoDesktop(44)}} <sup>[2]</sup></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}<sup>[1]</sup></td>
- <td>{{CompatUnknown}}</td>
- <td>2.5</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<ul>
- <li>[1] 语音识别接口目前在 Chrome 中是带前缀的,因此你需要使用带有前缀的名称,例如 <code>webkitSpeechRecognition</code>;此外你还需要将你的代码运行在一个 Web 服务器上来保证其正常工作。</li>
- <li>[2] 虽然当前的语音识别在桌面版的 Firefox 中不会正常工作,但还是可以在 <a>about:config</a> 中,可以通过 <code>media.webspeech.recognition.enable</code> 来启用 —— 一旦所需的内部权限解决后,它很快就会启用。</li>
-</ul>
-
-<h3 id="Firefox_OS_权限">Firefox OS 权限</h3>
-
-<p>如需在应用中使用语音识别,你必须在你的 <a href="/en-US/docs/Web/Apps/Build/Manifest">manifest</a> 中指明下面的权限:</p>
-
-<pre class="brush: json">"permissions": {
- "audio-capture" : {
- "description" : "Audio capture"
- },
- "speech-recognition" : {
- "description" : "Speech recognition"
- }
-}</pre>
-
-<p>若还需要设置应用的特权类型,因此你还需要包含以下这项:</p>
-
-<pre class="brush: json"> "type": "privileged"</pre>
+{{Compat("api.SpeechGrammar.weight")}}
<h2 id="相关链接">相关链接</h2>