Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: |
| 2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
| 3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
| 4 templating mechanism. | 4 templating mechanism. |
| 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
| 6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
| 7 authored overview content. | 7 authored overview content. |
| 8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
| 9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
| 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 <a href="#method-stop">stop</a> | 286 <a href="#method-stop">stop</a> |
| 287 </li> | 287 </li> |
| 288 </ol> | 288 </ol> |
| 289 </li> | 289 </li> |
| 290 <li> | 290 <li> |
| 291 <a href="#global-events">Events</a> | 291 <a href="#global-events">Events</a> |
| 292 <ol> | 292 <ol> |
| 293 <li> | 293 <li> |
| 294 <a href="#event-onError">onError</a> | 294 <a href="#event-onError">onError</a> |
| 295 </li><li> | 295 </li><li> |
| 296 <a href="#event-onResult">onResult</a> | |
| 297 </li><li> | |
| 298 <a href="#event-onSoundEnd">onSoundEnd</a> | 296 <a href="#event-onSoundEnd">onSoundEnd</a> |
| 299 </li><li> | 297 </li><li> |
| 300 <a href="#event-onSoundStart">onSoundStart</a> | 298 <a href="#event-onSoundStart">onSoundStart</a> |
| 299 </li><li> | |
| 300 <a href="#event-onSpeechResult">onSpeechResult</a> | |
| 301 </li> | 301 </li> |
| 302 </ol> | 302 </ol> |
| 303 </li> | 303 </li> |
| 304 <li> | 304 <li> |
| 305 <a href="#types">Types</a> | 305 <a href="#types">Types</a> |
| 306 <ol> | 306 <ol> |
| 307 <li> | 307 <li> |
| 308 <a href="#type-StartOptions">StartOptions</a> | 308 <a href="#type-StartOptions">StartOptions</a> |
| 309 </li><li> | 309 </li><li> |
| 310 <a href="#type-Error">Error</a> | 310 <a href="#type-Error">Error</a> |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 994 <h4 style="display: none; ">Listener returns</h4> | 994 <h4 style="display: none; ">Listener returns</h4> |
| 995 <dl> | 995 <dl> |
| 996 <div style="display: none; "> | 996 <div style="display: none; "> |
| 997 <div> | 997 <div> |
| 998 </div> | 998 </div> |
| 999 </div> | 999 </div> |
| 1000 </dl> | 1000 </dl> |
| 1001 | 1001 |
| 1002 </div> <!-- /description --> | 1002 </div> <!-- /description --> |
| 1003 </div><div class="apiItem"> | 1003 </div><div class="apiItem"> |
| 1004 <a name="event-onResult"></a> | 1004 <a name="event-onSoundEnd"></a> |
| 1005 <h4>onResult</h4> | 1005 <h4>onSoundEnd</h4> |
| 1006 | 1006 |
| 1007 <div class="summary"> | 1007 <div class="summary"> |
| 1008 <!-- Note: intentionally longer 80 columns --> | 1008 <!-- Note: intentionally longer 80 columns --> |
| 1009 <span class="subdued">chrome.experimental.speechInput.</span><sp an>onResult</span><span class="subdued">.addListener</span>(function(<span>Speec hResultEvent event</span>) <span class="subdued">{...}</span><span></span>); | 1009 <span class="subdued">chrome.experimental.speechInput.</span><sp an>onSoundEnd</span><span class="subdued">.addListener</span>(function(<span></s pan>) <span class="subdued">{...}</span><span></span>); |
| 1010 </div> | 1010 </div> |
| 1011 | 1011 |
| 1012 <div class="description"> | 1012 <div class="description"> |
| 1013 <p class="todo" style="display: none; ">Undocumented.</p> | 1013 <p class="todo" style="display: none; ">Undocumented.</p> |
| 1014 <p>Called when speech recognition results are available.</p> | 1014 <p>Called when the system detects enough silence to consider the ongoing input has ended.</p> |
|
Satish
2011/10/08 23:15:07
input -> speech
Leandro GraciĆ” Gil
2011/10/09 10:29:21
Done.
| |
| 1015 | 1015 |
| 1016 <!-- LISTENER PARAMETERS --> | 1016 <!-- LISTENER PARAMETERS --> |
| 1017 <div> | 1017 <div style="display: none; "> |
| 1018 <h4>Listener parameters</h4> | 1018 <h4>Listener parameters</h4> |
| 1019 <dl> | 1019 <dl> |
| 1020 <div> | 1020 <div> |
| 1021 <div> | 1021 <div> |
| 1022 <dt> | 1022 </div> |
| 1023 <var>event</var> | |
| 1024 <em> | |
| 1025 | |
| 1026 <!-- TYPE --> | |
| 1027 <div style="display:inline"> | |
| 1028 ( | |
| 1029 <span class="optional" style="display: none; ">optional</spa n> | |
| 1030 <span class="enum" style="display: none; ">enumerated</span> | |
| 1031 <span id="typeTemplate"> | |
| 1032 <span> | |
| 1033 <a href="experimental.speechInput.html#type-SpeechResult Event">SpeechResultEvent</a> | |
| 1034 </span> | |
| 1035 <span style="display: none; "> | |
| 1036 <span> | |
| 1037 array of <span><span></span></span> | |
| 1038 </span> | |
| 1039 <span>paramType</span> | |
| 1040 <span></span> | |
| 1041 </span> | |
| 1042 </span> | |
| 1043 ) | |
| 1044 </div> | |
| 1045 | |
| 1046 </em> | |
| 1047 </dt> | |
| 1048 <dd class="todo" style="display: none; "> | |
| 1049 Undocumented. | |
| 1050 </dd> | |
| 1051 <dd>Object containing the speech recognition results.</dd> | |
| 1052 <dd style="display: none; "> | |
| 1053 This parameter was added in version | |
| 1054 <b><span></span></b>. | |
| 1055 You must omit this parameter in earlier versions, | |
| 1056 and you may omit it in any version. If you require this | |
| 1057 parameter, the manifest key | |
| 1058 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> | |
| 1059 can ensure that your extension won't be run in an earlier browser ve rsion. | |
| 1060 </dd> | |
| 1061 | |
| 1062 <!-- OBJECT PROPERTIES --> | |
| 1063 <dd style="display: none; "> | |
| 1064 <dl> | |
| 1065 <div> | |
| 1066 <div> | |
| 1067 </div> | |
| 1068 </div> | |
| 1069 </dl> | |
| 1070 </dd> | |
| 1071 | |
| 1072 <!-- OBJECT METHODS --> | |
| 1073 <dd style="display: none; "> | |
| 1074 <div></div> | |
| 1075 </dd> | |
| 1076 | |
| 1077 <!-- OBJECT EVENT FIELDS --> | |
| 1078 <dd style="display: none; "> | |
| 1079 <div></div> | |
| 1080 </dd> | |
| 1081 | |
| 1082 <!-- FUNCTION PARAMETERS --> | |
| 1083 <dd style="display: none; "> | |
| 1084 <div></div> | |
| 1085 </dd> | |
| 1086 | |
| 1087 </div> | |
| 1088 </div> | 1023 </div> |
| 1089 </dl> | 1024 </dl> |
| 1090 </div> | 1025 </div> |
| 1091 | 1026 |
| 1092 <!-- EXTRA PARAMETERS --> | 1027 <!-- EXTRA PARAMETERS --> |
| 1093 <div style="display: none; "> | 1028 <div style="display: none; "> |
| 1094 <h4>Extra parameters to addListener</h4> | 1029 <h4>Extra parameters to addListener</h4> |
| 1095 <dl> | 1030 <dl> |
| 1096 <div> | 1031 <div> |
| 1097 <div> | 1032 <div> |
| 1098 </div> | 1033 </div> |
| 1099 </div> | 1034 </div> |
| 1100 </dl> | 1035 </dl> |
| 1101 </div> | 1036 </div> |
| 1102 | 1037 |
| 1103 <!-- LISTENER RETURN VALUE --> | 1038 <!-- LISTENER RETURN VALUE --> |
| 1104 <h4 style="display: none; ">Listener returns</h4> | 1039 <h4 style="display: none; ">Listener returns</h4> |
| 1105 <dl> | 1040 <dl> |
| 1106 <div style="display: none; "> | 1041 <div style="display: none; "> |
| 1107 <div> | 1042 <div> |
| 1108 </div> | 1043 </div> |
| 1109 </div> | 1044 </div> |
| 1110 </dl> | 1045 </dl> |
| 1111 | 1046 |
| 1112 </div> <!-- /description --> | 1047 </div> <!-- /description --> |
| 1113 </div><div class="apiItem"> | 1048 </div><div class="apiItem"> |
| 1114 <a name="event-onSoundEnd"></a> | 1049 <a name="event-onSoundStart"></a> |
| 1115 <h4>onSoundEnd</h4> | 1050 <h4>onSoundStart</h4> |
| 1116 | 1051 |
| 1117 <div class="summary"> | 1052 <div class="summary"> |
| 1118 <!-- Note: intentionally longer 80 columns --> | 1053 <!-- Note: intentionally longer 80 columns --> |
| 1119 <span class="subdued">chrome.experimental.speechInput.</span><sp an>onSoundEnd</span><span class="subdued">.addListener</span>(function(<span></s pan>) <span class="subdued">{...}</span><span></span>); | 1054 <span class="subdued">chrome.experimental.speechInput.</span><sp an>onSoundStart</span><span class="subdued">.addListener</span>(function(<span>< /span>) <span class="subdued">{...}</span><span></span>); |
| 1120 </div> | 1055 </div> |
| 1121 | 1056 |
| 1122 <div class="description"> | 1057 <div class="description"> |
| 1123 <p class="todo" style="display: none; ">Undocumented.</p> | 1058 <p class="todo" style="display: none; ">Undocumented.</p> |
| 1124 <p>Called when the system detects enough silence to consider the ongoing input has ended.</p> | 1059 <p>Called when the system starts detecting sound in the input da ta.</p> |
| 1125 | 1060 |
| 1126 <!-- LISTENER PARAMETERS --> | 1061 <!-- LISTENER PARAMETERS --> |
| 1127 <div style="display: none; "> | 1062 <div style="display: none; "> |
| 1128 <h4>Listener parameters</h4> | 1063 <h4>Listener parameters</h4> |
| 1129 <dl> | 1064 <dl> |
| 1130 <div> | 1065 <div> |
| 1131 <div> | 1066 <div> |
| 1132 </div> | 1067 </div> |
| 1133 </div> | 1068 </div> |
| 1134 </dl> | 1069 </dl> |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 1149 <h4 style="display: none; ">Listener returns</h4> | 1084 <h4 style="display: none; ">Listener returns</h4> |
| 1150 <dl> | 1085 <dl> |
| 1151 <div style="display: none; "> | 1086 <div style="display: none; "> |
| 1152 <div> | 1087 <div> |
| 1153 </div> | 1088 </div> |
| 1154 </div> | 1089 </div> |
| 1155 </dl> | 1090 </dl> |
| 1156 | 1091 |
| 1157 </div> <!-- /description --> | 1092 </div> <!-- /description --> |
| 1158 </div><div class="apiItem"> | 1093 </div><div class="apiItem"> |
| 1159 <a name="event-onSoundStart"></a> | 1094 <a name="event-onSpeechResult"></a> |
| 1160 <h4>onSoundStart</h4> | 1095 <h4>onSpeechResult</h4> |
| 1161 | 1096 |
| 1162 <div class="summary"> | 1097 <div class="summary"> |
| 1163 <!-- Note: intentionally longer 80 columns --> | 1098 <!-- Note: intentionally longer 80 columns --> |
| 1164 <span class="subdued">chrome.experimental.speechInput.</span><sp an>onSoundStart</span><span class="subdued">.addListener</span>(function(<span>< /span>) <span class="subdued">{...}</span><span></span>); | 1099 <span class="subdued">chrome.experimental.speechInput.</span><sp an>onSpeechResult</span><span class="subdued">.addListener</span>(function(<span >SpeechResultEvent event</span>) <span class="subdued">{...}</span><span></span> ); |
| 1165 </div> | 1100 </div> |
| 1166 | 1101 |
| 1167 <div class="description"> | 1102 <div class="description"> |
| 1168 <p class="todo" style="display: none; ">Undocumented.</p> | 1103 <p class="todo" style="display: none; ">Undocumented.</p> |
| 1169 <p>Called when the system starts detecting sound in the input da ta.</p> | 1104 <p>Called when speech recognition results are available.</p> |
| 1170 | 1105 |
| 1171 <!-- LISTENER PARAMETERS --> | 1106 <!-- LISTENER PARAMETERS --> |
| 1172 <div style="display: none; "> | 1107 <div> |
| 1173 <h4>Listener parameters</h4> | 1108 <h4>Listener parameters</h4> |
| 1174 <dl> | 1109 <dl> |
| 1175 <div> | 1110 <div> |
| 1176 <div> | 1111 <div> |
| 1177 </div> | 1112 <dt> |
| 1113 <var>event</var> | |
| 1114 <em> | |
| 1115 | |
| 1116 <!-- TYPE --> | |
| 1117 <div style="display:inline"> | |
| 1118 ( | |
| 1119 <span class="optional" style="display: none; ">optional</spa n> | |
| 1120 <span class="enum" style="display: none; ">enumerated</span> | |
| 1121 <span id="typeTemplate"> | |
| 1122 <span> | |
| 1123 <a href="experimental.speechInput.html#type-SpeechResult Event">SpeechResultEvent</a> | |
| 1124 </span> | |
| 1125 <span style="display: none; "> | |
| 1126 <span> | |
| 1127 array of <span><span></span></span> | |
| 1128 </span> | |
| 1129 <span>paramType</span> | |
| 1130 <span></span> | |
| 1131 </span> | |
| 1132 </span> | |
| 1133 ) | |
| 1134 </div> | |
| 1135 | |
| 1136 </em> | |
| 1137 </dt> | |
| 1138 <dd class="todo" style="display: none; "> | |
| 1139 Undocumented. | |
| 1140 </dd> | |
| 1141 <dd>Object containing the speech recognition results.</dd> | |
| 1142 <dd style="display: none; "> | |
| 1143 This parameter was added in version | |
| 1144 <b><span></span></b>. | |
| 1145 You must omit this parameter in earlier versions, | |
| 1146 and you may omit it in any version. If you require this | |
| 1147 parameter, the manifest key | |
| 1148 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> | |
| 1149 can ensure that your extension won't be run in an earlier browser ve rsion. | |
| 1150 </dd> | |
| 1151 | |
| 1152 <!-- OBJECT PROPERTIES --> | |
| 1153 <dd style="display: none; "> | |
| 1154 <dl> | |
| 1155 <div> | |
| 1156 <div> | |
| 1157 </div> | |
| 1158 </div> | |
| 1159 </dl> | |
| 1160 </dd> | |
| 1161 | |
| 1162 <!-- OBJECT METHODS --> | |
| 1163 <dd style="display: none; "> | |
| 1164 <div></div> | |
| 1165 </dd> | |
| 1166 | |
| 1167 <!-- OBJECT EVENT FIELDS --> | |
| 1168 <dd style="display: none; "> | |
| 1169 <div></div> | |
| 1170 </dd> | |
| 1171 | |
| 1172 <!-- FUNCTION PARAMETERS --> | |
| 1173 <dd style="display: none; "> | |
| 1174 <div></div> | |
| 1175 </dd> | |
| 1176 | |
| 1177 </div> | |
| 1178 </div> | 1178 </div> |
| 1179 </dl> | 1179 </dl> |
| 1180 </div> | 1180 </div> |
| 1181 | 1181 |
| 1182 <!-- EXTRA PARAMETERS --> | 1182 <!-- EXTRA PARAMETERS --> |
| 1183 <div style="display: none; "> | 1183 <div style="display: none; "> |
| 1184 <h4>Extra parameters to addListener</h4> | 1184 <h4>Extra parameters to addListener</h4> |
| 1185 <dl> | 1185 <dl> |
| 1186 <div> | 1186 <div> |
| 1187 <div> | 1187 <div> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1418 </span> | 1418 </span> |
| 1419 </span> | 1419 </span> |
| 1420 ) | 1420 ) |
| 1421 </div> | 1421 </div> |
| 1422 | 1422 |
| 1423 </em> | 1423 </em> |
| 1424 </dt> | 1424 </dt> |
| 1425 <dd class="todo" style="display: none; "> | 1425 <dd class="todo" style="display: none; "> |
| 1426 Undocumented. | 1426 Undocumented. |
| 1427 </dd> | 1427 </dd> |
| 1428 <dd>Enable or disable profanity filtering. Will use the default Chrome filtering settings if not provided.</dd> | 1428 <dd>Enable or disable profanity filtering. Will use the default Chrome filtering settings if not set.</dd> |
| 1429 <dd style="display: none; "> | 1429 <dd style="display: none; "> |
| 1430 This parameter was added in version | 1430 This parameter was added in version |
| 1431 <b><span></span></b>. | 1431 <b><span></span></b>. |
| 1432 You must omit this parameter in earlier versions, | 1432 You must omit this parameter in earlier versions, |
| 1433 and you may omit it in any version. If you require this | 1433 and you may omit it in any version. If you require this |
| 1434 parameter, the manifest key | 1434 parameter, the manifest key |
| 1435 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> | 1435 <a href="manifest.html#minimum_chrome_version">minimum_chrome_versio n</a> |
| 1436 can ensure that your extension won't be run in an earlier browser ve rsion. | 1436 can ensure that your extension won't be run in an earlier browser ve rsion. |
| 1437 </dd> | 1437 </dd> |
| 1438 | 1438 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1544 <span class="enum">enumerated</span> | 1544 <span class="enum">enumerated</span> |
| 1545 <span id="typeTemplate"> | 1545 <span id="typeTemplate"> |
| 1546 <span style="display: none; "> | 1546 <span style="display: none; "> |
| 1547 <a> Type</a> | 1547 <a> Type</a> |
| 1548 </span> | 1548 </span> |
| 1549 <span> | 1549 <span> |
| 1550 <span style="display: none; "> | 1550 <span style="display: none; "> |
| 1551 array of <span><span></span></span> | 1551 array of <span><span></span></span> |
| 1552 </span> | 1552 </span> |
| 1553 <span>string</span> | 1553 <span>string</span> |
| 1554 <span>["noDevicesAvailable", "unableToStart", "noSpeechH eard", "noResults", "captureError", "networkError", "internalError", "requestDen ied"]</span> | 1554 <span>["noDevicesAvailable", "unableToStart", "noSpeechH eard", "noResults", "captureError", "networkError", "requestDenied"]</span> |
| 1555 </span> | 1555 </span> |
| 1556 </span> | 1556 </span> |
| 1557 ) | 1557 ) |
| 1558 </div> | 1558 </div> |
| 1559 | 1559 |
| 1560 </em> | 1560 </em> |
| 1561 </dt> | 1561 </dt> |
| 1562 <dd class="todo" style="display: none; "> | 1562 <dd class="todo" style="display: none; "> |
| 1563 Undocumented. | 1563 Undocumented. |
| 1564 </dd> | 1564 </dd> |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2011 _uff=0; | 2011 _uff=0; |
| 2012 urchinTracker(); | 2012 urchinTracker(); |
| 2013 } | 2013 } |
| 2014 catch(e) {/* urchinTracker not available. */} | 2014 catch(e) {/* urchinTracker not available. */} |
| 2015 </script> | 2015 </script> |
| 2016 <!-- end analytics --> | 2016 <!-- end analytics --> |
| 2017 </div> | 2017 </div> |
| 2018 </div> <!-- /gc-footer --> | 2018 </div> <!-- /gc-footer --> |
| 2019 </div> <!-- /gc-container --> | 2019 </div> <!-- /gc-container --> |
| 2020 </body></html> | 2020 </body></html> |
| OLD | NEW |