Chromium Code Reviews

Unified Diff: content/public/common/tts_utterance_request.h

Issue 12589005: Implement web speech synthesis. (Closed) Base URL: http://git.chromium.org/chromium/src.git@webtts
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/public/common/tts_utterance_request.h
diff --git a/content/public/common/tts_utterance_request.h b/content/public/common/tts_utterance_request.h
new file mode 100644
index 0000000000000000000000000000000000000000..aef3c411145cfd46a6f5c76024f8447b74d95425
--- /dev/null
+++ b/content/public/common/tts_utterance_request.h
@@ -0,0 +1,49 @@
+// Copyright (c) 2013 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.
+
+#ifndef CONTENT_PUBLIC_COMMON_TTS_UTTERANCE_REQUEST_H
+#define CONTENT_PUBLIC_COMMON_TTS_UTTERANCE_REQUEST_H
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/string16.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+struct CONTENT_EXPORT TtsUtteranceRequest {
+ TtsUtteranceRequest();
+ ~TtsUtteranceRequest();
+
+ int id;
+ std::string text;
+ std::string lang;
+ std::string voice;
+ float volume;
+ float rate;
+ float pitch;
+};
+
+struct CONTENT_EXPORT TtsVoice {
+ TtsVoice();
+ ~TtsVoice();
+
+ std::string voice_uri;
+ std::string name;
+ std::string lang;
+ bool local_service;
+ bool is_default;
+};
+
+struct CONTENT_EXPORT TtsUtteranceResponse {
+ TtsUtteranceResponse();
+ ~TtsUtteranceResponse();
+
+ int id;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_

Powered by Google App Engine