diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/speechrecognitionerror | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/speechrecognitionerror')
-rw-r--r-- | files/ja/web/api/speechrecognitionerror/index.html | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/files/ja/web/api/speechrecognitionerror/index.html b/files/ja/web/api/speechrecognitionerror/index.html new file mode 100644 index 0000000000..946b92cf92 --- /dev/null +++ b/files/ja/web/api/speechrecognitionerror/index.html @@ -0,0 +1,85 @@ +--- +title: SpeechRecognitionError +slug: Web/API/SpeechRecognitionError +tags: + - API + - Experimental + - Interface + - Reference + - SpeechRecognitionError + - Web Speech API + - recognition + - speech +translation_of: Web/API/SpeechRecognitionError +--- +<p>{{APIRef("Web Speech API")}}{{SeeCompatTable}}</p> + +<p><a href="/ja/docs/Web/API/Web_Speech_API">Web Speech API</a> の <strong><code>SpeechRecognitionError</code></strong> インターフェイスは、認識サービスからのエラーメッセージを表します。</p> + +<h2 id="Properties" name="Properties">プロパティ</h2> + +<p><em><code>SpeechRecognitionError</code> は、親インターフェイスである {{domxref("Event")}} からのプロパティも継承します。</em></p> + +<dl> + <dt>{{domxref("SpeechRecognitionError.error")}} {{readonlyinline}}</dt> + <dd>起こったエラーの種類を返します。</dd> + <dt>{{domxref("SpeechRecognitionError.message")}} {{readonlyinline}}</dt> + <dd>エラーの内容が詳しく書かれたメッセージを返します。</dd> +</dl> + +<h2 id="Examples" name="Examples">例</h2> + +<pre class="brush: js">var recognition = new SpeechRecognition(); + +recognition.onerror = function(event) { + console.log('Speech recognition error detected: ' + event.error); + console.log('Additional information: ' + event.message); +}</pre> + +<h2 id="Specifications" name="Specifications">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様書</th> + <th scope="col">策定状況</th> + <th scope="col">備考</th> + </tr> + <tr> + <td>{{SpecName('Web Speech API', '#speechreco-error', 'SpeechRecognitionError')}}</td> + <td>{{Spec2('Web Speech API')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの実装状況</h2> + +<div> + + +<p>{{Compat("api.SpeechRecognitionError")}}</p> +</div> + +<h3 id="Firefox_OS_permissions" name="Firefox_OS_permissions">Firefox OS の許可設定</h3> + +<p>アプリ内で音声認識を使用するには、以下の許可設定を <a href="/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> + +<h2 id="See_also" name="See_also">関連項目</h2> + +<ul> + <li><a href="/ja/docs/Web/API/Web_Speech_API">Web Speech API</a></li> +</ul> |