#include "content/browser/speech/tts_platform_impl.h"
#include "build/build_config.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_client.h"
#include <string>
namespace content {
TtsPlatform* TtsPlatform::GetInstance() {
#if !defined(NO_CONTENT_CLIENT)
TtsPlatform* result = GetContentClient()->browser()->GetTtsPlatform();
if (result)
return result;
#endif
#if BUILDFLAG(IS_CHROMEOS)
NOTREACHED();
#else
return TtsPlatformImpl::GetInstance();
#endif
}
void TtsPlatformImpl::LoadBuiltInTtsEngine(BrowserContext* browser_context) {}
void TtsPlatformImpl::WillSpeakUtteranceWithVoice(TtsUtterance* utterance,
const VoiceData& voice_data) {
}
std::string TtsPlatformImpl::GetError() {
return error_;
}
void TtsPlatformImpl::ClearError() {
error_ = std::string();
}
void TtsPlatformImpl::SetError(const std::string& error) {
error_ = error;
}
void TtsPlatformImpl::Shutdown() {}
void TtsPlatformImpl::FinalizeVoiceOrdering(std::vector<VoiceData>& voices) {}
}