: m_speechSynthesizerClient(client)
{
m_webSpeechSynthesizerClient = new WebSpeechSynthesizerClientImpl(this, client);
- m_webSpeechSynthesizer = adoptPtr(blink::Platform::current()->createSpeechSynthesizer(m_webSpeechSynthesizerClient));
+ m_webSpeechSynthesizer = adoptPtr(Platform::current()->createSpeechSynthesizer(m_webSpeechSynthesizerClient));
}
PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer()
void PlatformSpeechSynthesizer::speak(PlatformSpeechSynthesisUtterance* utterance)
{
- if (!m_webSpeechSynthesizer || !m_webSpeechSynthesizerClient)
- return;
-
- m_webSpeechSynthesizer->speak(blink::WebSpeechSynthesisUtterance(utterance));
+ if (m_webSpeechSynthesizer && m_webSpeechSynthesizerClient)
+ m_webSpeechSynthesizer->speak(WebSpeechSynthesisUtterance(utterance));
}
void PlatformSpeechSynthesizer::pause()