summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMihai Nita <mnita@google.com>2016-04-19 09:09:07 -0700
committerMihai Nita <mnita@google.com>2016-04-19 09:26:23 -0700
commit43af6366f2aad8c0c0a8ae1367215961ccd75c29 (patch)
treecdcd3f0de994f69a214df4d39db9ce2bd593b184 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2f87f1d1c57bd423d6928f9ff46accbea51e8645 (diff)
Framework: change the TTS text to use the current locale
Google TTS currently does not support language auto-switching. Also, not all languages are available in TTS at all times. This means that TTS cannot properly handle text in other languages / scripts than the current language. Languages with different scripts would not be read at all, and the others would be read with "bad pronunciation", to the point of being unrecognizable. This change is not a full fix, but makes things slightly better by using the default locale for the contentDescription in the language / region lists. This might be a bit unsettling, as the label will not match the sound. The label will show "Deutsch" or "Русский" and text-to-speech will say "German" or "Russian" (for English UI), or "Allemand" or "Russe" (if the UI is French). Might also say nothing, if the current UI language has no text-to-speech engine. But this is the best we can do, and better that what we get if we do nothing. Bug: 28087937 Change-Id: I7390a063708647e022be29161c2f2bedc19896ae
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions