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

Unified Diff: components/arc/common/tts.mojom

Issue 2180263002: Host side implementation of ARC tts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address last round. Created 4 years, 4 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
« no previous file with comments | « components/arc/common/arc_bridge.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/tts.mojom
diff --git a/components/arc/common/tts.mojom b/components/arc/common/tts.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..4b7f044db113c564a9bf696ecda00074d11b592c
--- /dev/null
+++ b/components/arc/common/tts.mojom
@@ -0,0 +1,43 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+// Next MinVersion: 1
+
+module arc.mojom;
+
+[Extensible]
+enum TtsEventType {
+ START = 0,
+ END,
+ INTERRUPTED,
+ ERROR
+};
+
+// Represents a tts utterance sent from Chrome to Android.
+struct TtsUtterance {
+ uint32 utteranceId;
+ string text;
+ double rate;
+ double pitch;
+};
+
+// Next Method ID: 1
+interface TtsHost {
+ // Notifies Chrome of Android tts events.
+ OnTtsEvent@0(uint32 utteranceId,
+ TtsEventType event_type,
+ uint32 charIndex,
+ string error_msg);
+};
+
+// Next Method ID: 3
+interface TtsInstance {
+ // Establishes full-duplex communication with the host.
+ Init@0(TtsHost host_ptr);
+
+ // Sends an utterance to Android for synthesis.
+ Speak@1(TtsUtterance utterance);
+
+ // Sends a stop request to Android text to speech.
+ Stop@2();
+};
« no previous file with comments | « components/arc/common/arc_bridge.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698