| Index: chrome/browser/speech/tts_win.cc
|
| diff --git a/chrome/browser/speech/tts_win.cc b/chrome/browser/speech/tts_win.cc
|
| index ac258205889449b9658ac9df78d4ee35313bd9d5..055d975803456234ab94c1073f273bad0018097f 100644
|
| --- a/chrome/browser/speech/tts_win.cc
|
| +++ b/chrome/browser/speech/tts_win.cc
|
| @@ -4,7 +4,9 @@
|
|
|
| #include <math.h>
|
| #include <sapi.h>
|
| +#include <stdint.h>
|
|
|
| +#include "base/macros.h"
|
| #include "base/memory/singleton.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| @@ -87,7 +89,7 @@ bool TtsPlatformImplWin::Speak(
|
| // 0.1 -> -10
|
| // 1.0 -> 0
|
| // 10.0 -> 10
|
| - speech_synthesizer_->SetRate(static_cast<int32>(10 * log10(params.rate)));
|
| + speech_synthesizer_->SetRate(static_cast<int32_t>(10 * log10(params.rate)));
|
| }
|
|
|
| if (params.pitch >= 0.0) {
|
| @@ -102,7 +104,7 @@ bool TtsPlatformImplWin::Speak(
|
|
|
| if (params.volume >= 0.0) {
|
| // The TTS api allows a range of 0 to 100 for speech volume.
|
| - speech_synthesizer_->SetVolume(static_cast<uint16>(params.volume * 100));
|
| + speech_synthesizer_->SetVolume(static_cast<uint16_t>(params.volume * 100));
|
| }
|
|
|
| // TODO(dmazzoni): convert SSML to SAPI xml. http://crbug.com/88072
|
|
|