forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtts_platform_stub.h
44 lines (30 loc) · 1.19 KB
/
tts_platform_stub.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) 2018 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.
#include "chromecast/browser/tts/tts_controller.h"
#include "chromecast/browser/tts/tts_platform.h"
#ifndef CHROMECAST_BROWSER_TTS_TTS_PLATFORM_STUB_H_
#define CHROMECAST_BROWSER_TTS_TTS_PLATFORM_STUB_H_
namespace chromecast {
// The default stub implementation of TtsPlaform for Cast that merely logs TTS
// events.
class TtsPlatformImplStub : public TtsPlatformImpl {
public:
TtsPlatformImplStub() = default;
~TtsPlatformImplStub() override = default;
bool PlatformImplAvailable() override;
bool Speak(int utterance_id,
const std::string& utterance,
const std::string& lang,
const VoiceData& voice,
const UtteranceContinuousParameters& params) override;
bool StopSpeaking() override;
void Pause() override;
void Resume() override;
bool IsSpeaking() override;
void GetVoices(std::vector<VoiceData>* out_voices) override;
private:
DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplStub);
};
} // namespace chromecast
#endif // CHROMECAST_BROWSER_TTS_TTS_PLATFORM_STUB_H_