tts_utterance_request.h 881 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (c) 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef CHROME_COMMON_TTS_UTTERANCE_REQUEST_H_
  5. #define CHROME_COMMON_TTS_UTTERANCE_REQUEST_H_
  6. #include <vector>
  7. #include "base/macros.h"
  8. #include "base/strings/string16.h"
  9. struct TtsUtteranceRequest {
  10. TtsUtteranceRequest();
  11. ~TtsUtteranceRequest();
  12. int id;
  13. std::string text;
  14. std::string lang;
  15. std::string voice;
  16. float volume;
  17. float rate;
  18. float pitch;
  19. };
  20. struct TtsVoice {
  21. TtsVoice();
  22. TtsVoice(const TtsVoice&);
  23. ~TtsVoice();
  24. std::string voice_uri;
  25. std::string name;
  26. std::string lang;
  27. bool local_service;
  28. bool is_default;
  29. };
  30. struct TtsUtteranceResponse {
  31. TtsUtteranceResponse();
  32. ~TtsUtteranceResponse();
  33. int id;
  34. };
  35. #endif // CHROME_COMMON_TTS_UTTERANCE_REQUEST_H_