Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1420)

Unified Diff: chrome/browser/extensions/extension_tts_api_chromeos.cc

Issue 7550049: Fix the speech rate and volume on Chrome OS; after switching the (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_tts_api_chromeos.cc
===================================================================
--- chrome/browser/extensions/extension_tts_api_chromeos.cc (revision 95620)
+++ chrome/browser/extensions/extension_tts_api_chromeos.cc (working copy)
@@ -88,7 +88,7 @@
if (params.rate >= 0.0) {
AppendSpeakOption(
chromeos::SpeechSynthesisLibrary::kSpeechPropertyRate,
- DoubleToString(1.5 + params.rate * 2.5),
+ DoubleToString(params.rate),
&options);
}
@@ -101,10 +101,11 @@
}
if (params.volume >= 0.0) {
- // The TTS service allows a range of 0 to 5 for speech volume.
+ // The Chrome OS TTS service allows a range of 0 to 5 for speech volume,
+ // but 5 clips, so map to a range of 0...4.
AppendSpeakOption(
chromeos::SpeechSynthesisLibrary::kSpeechPropertyVolume,
- DoubleToString(params.volume * 5),
+ DoubleToString(params.volume * 4),
&options);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698