From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../api/speechrecognition/serviceuri/index.html | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 files/ja/web/api/speechrecognition/serviceuri/index.html (limited to 'files/ja/web/api/speechrecognition/serviceuri') diff --git a/files/ja/web/api/speechrecognition/serviceuri/index.html b/files/ja/web/api/speechrecognition/serviceuri/index.html new file mode 100644 index 0000000000..c171bd7947 --- /dev/null +++ b/files/ja/web/api/speechrecognition/serviceuri/index.html @@ -0,0 +1,83 @@ +--- +title: SpeechRecognition.serviceURI +slug: Web/API/SpeechRecognition/serviceURI +tags: + - API + - Experimental + - Property + - Reference + - SpeechRecognition + - Web Speech API + - recognition + - serviceURI + - speech +translation_of: Web/API/SpeechRecognition/serviceURI +--- +
{{APIRef("Web Speech API")}}{{SeeCompatTable}}
+ +

{{domxref("SpeechRecognition")}} インターフェイスの serviceURI プロパティは現在の SpeechRecognition が利用している音声認識の場所を指定しています。デフォルト値はユーザーの音声サービスです。

+ +

構文

+ +
var myServiceURI = mySpeechRecognition.serviceURI;
+mySpeechRecognition.serviceURI = 'path/to/my/service/';
+ +

+ +

音声認識サービスの URI を表す {{domxref("DOMString")}}。

+ +

+ +
var recognition = new SpeechRecognition();
+
+recognition.speechURI = 'http://www.example.com';
+
+...
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('Web Speech API', '#dfn-serviceuri', 'serviceURI')}}{{Spec2('Web Speech API')}}
+ +

ブラウザー実装状況

+ +
+ + +

{{Compat("api.SpeechRecognition.serviceURI")}}

+
+ +

Firefox OS の権限

+ +

アプリで音声認識を利用する前に、下記の権限を manifest に追加する必要があります。

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

privileged アプリ権限も必要なので、下記も追加が必要です。

+ +
  "type": "privileged"
+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf