Reece H. Dunn
bb3b7e9a00
Use BCP 47 locale codes for Voice.getLocale() to support the correct localization on Lollipop and later.
9 years ago
Reece H. Dunn
e08b1fc624
Update the copyright notices.
9 years ago
Reece H. Dunn
0b898ed80d
Re-enable hy-west support.
9 years ago
Reece H. Dunn
c094f4840b
Fix a Parcel `collection == null` exception.
This is caused by the Voice features being set to null. The fix in
Android Marshmallow is to make onGetFeaturesForLanguage return an
empty HashSet object. This does not work for eSpeak because:
1. eSpeak was overriding onGetVoices and initializing each Voice's
features to null;
2. the bug is still present on Lollipop.
Thus, the fix here is two-fold:
1. make onGetVoices use onGetFeaturesForLanguage;
2. make onGetFeaturesForLanguage return an empty HashSet, so that
eSpeak does not crash on Lollipop either.
9 years ago
Reece H. Dunn
7c8128cc12
Fix the tests on Android Marshmallow.
9 years ago
Reece H. Dunn
c4230b01ca
Make Voice return the Java-based (ISO 639-3) language and country codes.
9 years ago
Reece H. Dunn
98208df155
TextToSpeechTest: provide more context information
10 years ago
Reece H. Dunn
c9003c50ba
TextToSpeech: test and fix onIsValidVoiceName
10 years ago
Reece H. Dunn
daa9326eb2
TextToSpeechTest: languages with codes not supported by Android are not present
10 years ago
Reece H. Dunn
83326027bf
TextToSpeechTest: factor out the language checks
10 years ago
Reece H. Dunn
f9912e0c41
TtsService: fix and test onGetVoice.
The default Android 5.0 implementation enumerates the available
locales. This enumerates the voices returned by eSpeak.
10 years ago
Reece H. Dunn
702f8be24f
TextToSpeechTest: always test getLanguage.
This changes the getLanguage helper to return the result from
getLanguage on all platform versions, disabling the deprecated
message on API 21 and above.
10 years ago
Reece H. Dunn
0dd897471c
tests: initial language may be null
10 years ago
Reece H. Dunn
3d2308e285
Use API 21.
10 years ago
Reece H. Dunn
cc0341e799
tests: map TextToSpeech.LANG_* to strings.
This creates a custom hamcrest matcher that maps the TextToSpeech
LANG_* constants to strings. This makes it easier to read the
text output when the tests fail.
10 years ago
Reece H. Dunn
4a1743b174
Factor out the TextToSpeech engine initialization to a TextToSpeechTestCase helper class.
12 years ago
Reece H. Dunn
8e1872c4e9
TextToSpeechTest: add context information to testLanguages.
12 years ago
Reece H. Dunn
e96f2e3a92
eSpeakTests: update the VoiceData to reflect the directory layout changes
12 years ago
Reece H. Dunn
f455a466c3
Do not add a voice if the Locale assigns a blank ISO3 language code.
12 years ago
Reece H. Dunn
32efff8500
VoiceData.Exception: use AssertionError instead of Exception to get the language in the JUnit results.
12 years ago
Reece H. Dunn
b30311a7d7
TextToSpeechTest: move out the unsupported language tests to a separate method and check that the language does not get updated.
12 years ago
Reece H. Dunn
7816a0a204
TtsService: set the language properties to the matched voice, not the requested voice
12 years ago
Reece H. Dunn
4cbf26883b
TextToSpeechTest: add tests for TextToSpeech.set/getLanguage.
12 years ago
Reece H. Dunn
2bdd4aab27
TextToSpeechTest: add tests for TextToSpeech.isLanguageAvailable.
12 years ago