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..03c04341c401d6e8764e710cd21838c13787f77a 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,6 +88,15 @@ |
// 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 { |
@@ -96,5 +108,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(); |
}; |
}; |