Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Unified Diff: chrome/browser/resources/hotword/constants.js

Issue 1011813006: Make availability of hotword hardware known to hotword component extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/hotword/constants.js
diff --git a/chrome/browser/resources/hotword/constants.js b/chrome/browser/resources/hotword/constants.js
index badd09ce308db02ad8c2b26df3300aea718d7968..988f9b87d89cf741cf6b68ee75ff285799870c6b 100644
--- a/chrome/browser/resources/hotword/constants.js
+++ b/chrome/browser/resources/hotword/constants.js
@@ -12,6 +12,12 @@ cr.define('hotword.constants', function() {
var AUDIO_LOG_SECONDS = 2;
/**
+ * Timeout in seconds, for detecting false positives with a hotword stream.
+ * @const {number}
+ */
+var HOTWORD_STREAM_TIMEOUT_SECONDS = 2;
+
+/**
* Hotword data shared module extension's ID.
* @const {string}
*/
@@ -117,6 +123,7 @@ var NaClPlugin = {
MODEL_PREFIX: 'm',
STOP: 's',
LOG: 'l',
+ DSP: 'd',
BEGIN_SPEAKER_MODEL: 'b',
ADAPT_SPEAKER_MODEL: 'a',
FINISH_SPEAKER_MODEL: 'f',
@@ -276,6 +283,7 @@ return {
CLIENT_PORT_NAME: CLIENT_PORT_NAME,
COMMAND_FIELD_NAME: COMMAND_FIELD_NAME,
FILE_SYSTEM_SIZE_BYTES: FILE_SYSTEM_SIZE_BYTES,
+ HOTWORD_STREAM_TIMEOUT_SECONDS: HOTWORD_STREAM_TIMEOUT_SECONDS,
NUM_TRAINING_UTTERANCES: NUM_TRAINING_UTTERANCES,
SHARED_MODULE_ID: SHARED_MODULE_ID,
SHARED_MODULE_ROOT: SHARED_MODULE_ROOT,
« no previous file with comments | « chrome/browser/extensions/api/hotword_private/hotword_private_api.cc ('k') | chrome/browser/resources/hotword/nacl_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698