mirror of
https://github.com/electron/electron.git
synced 2026-02-12 08:05:07 -05:00
Update to Chrome 47 version of tts_win
This commit is contained in:
@@ -15,26 +15,26 @@
|
||||
|
||||
class TtsPlatformImplWin : public TtsPlatformImpl {
|
||||
public:
|
||||
virtual bool PlatformImplAvailable() {
|
||||
bool PlatformImplAvailable() override {
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool Speak(
|
||||
bool Speak(
|
||||
int utterance_id,
|
||||
const std::string& utterance,
|
||||
const std::string& lang,
|
||||
const VoiceData& voice,
|
||||
const UtteranceContinuousParameters& params);
|
||||
const UtteranceContinuousParameters& params) override;
|
||||
|
||||
virtual bool StopSpeaking();
|
||||
bool StopSpeaking() override;
|
||||
|
||||
virtual void Pause();
|
||||
void Pause() override;
|
||||
|
||||
virtual void Resume();
|
||||
void Resume() override;
|
||||
|
||||
virtual bool IsSpeaking();
|
||||
bool IsSpeaking() override;
|
||||
|
||||
virtual void GetVoices(std::vector<VoiceData>* out_voices) override;
|
||||
void GetVoices(std::vector<VoiceData>* out_voices) override;
|
||||
|
||||
// Get the single instance of this class.
|
||||
static TtsPlatformImplWin* GetInstance();
|
||||
@@ -43,7 +43,7 @@ class TtsPlatformImplWin : public TtsPlatformImpl {
|
||||
|
||||
private:
|
||||
TtsPlatformImplWin();
|
||||
virtual ~TtsPlatformImplWin() {}
|
||||
~TtsPlatformImplWin() override {}
|
||||
|
||||
void OnSpeechEvent();
|
||||
|
||||
@@ -220,6 +220,8 @@ void TtsPlatformImplWin::OnSpeechEvent() {
|
||||
utterance_id_, TTS_EVENT_SENTENCE, char_position_,
|
||||
std::string());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -246,8 +248,8 @@ TtsPlatformImplWin::TtsPlatformImplWin()
|
||||
|
||||
// static
|
||||
TtsPlatformImplWin* TtsPlatformImplWin::GetInstance() {
|
||||
return base::Singleton< TtsPlatformImplWin,
|
||||
base::LeakySingletonTraits<TtsPlatformImplWin> >::get();
|
||||
return base::Singleton<TtsPlatformImplWin,
|
||||
base::LeakySingletonTraits<TtsPlatformImplWin>>::get();
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
Reference in New Issue
Block a user