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

Unified Diff: chrome/common/extensions/api/hotword_private.idl

Issue 686333002: Hotword Private API: Adds speech training functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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/common/extensions/api/hotword_private.idl
diff --git a/chrome/common/extensions/api/hotword_private.idl b/chrome/common/extensions/api/hotword_private.idl
index 24514f919c88443767e5ac07e9ffe3c1bb8b13c2..fa07067626d350e374ab3e8f0294cae2eca1942f 100644
--- a/chrome/common/extensions/api/hotword_private.idl
+++ b/chrome/common/extensions/api/hotword_private.idl
@@ -33,6 +33,9 @@
// Whether always-on hotwording is enabled.
boolean alwaysOnEnabled;
+
+ // Whether training mode is enabled.
+ boolean trainingEnabled;
};
dictionary LaunchState {
@@ -85,10 +88,21 @@
// Retrieves the state that the Hotword Audio Verification app was
// launched in. The result is put into a LaunchState object.
static void getLaunchState(LaunchStateCallback callback);
+
+ // Starts the speaker model training.
+ static void startTraining(optional GenericDoneCallback callback);
+
+ // Finalizess the speaker model.
+ static void finalizeSpeakerModel(optional GenericDoneCallback callback);
+
+ // Stops the speaker model training.
+ static void stopTraining(optional GenericDoneCallback callback);
};
interface Events {
- // Fired when the hotword search enabled preference is changed.
+ // Fired when the hotword detector enabled state should be changed.
+ // This can be from various sources, e.g. a pref change or training
+ // a speaker model.
static void onEnabledChanged();
// Fired when the browser wants to start a hotword session.
@@ -96,5 +110,11 @@
// Fired when the browser wants to stop the requested hotword session.
static void onHotwordSessionStopped();
+
+ // Fired when the speaker model should be finalized.
+ static void onFinalizeSpeakerModel();
+
+ // Fired when a hotword has triggered.
+ static void onHotwordTriggered();
};
};

Powered by Google App Engine
This is Rietveld 408576698