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
8fe359d0e4
Remove unused imports.
10 years ago
Reece H. Dunn
3eab09e166
tests: fix the expected string tests on Android 4
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
328f4cfdc9
Test and fix Java to IANA country code mapping.
10 years ago
Reece H. Dunn
6576742917
Test and fix Java to IANA language code mapping.
10 years ago
Reece H. Dunn
f68efe7224
tests: update the expected strings for Android 5.0
10 years ago
Reece H. Dunn
1cfb433438
tests: update the voice data
10 years ago
Reece H. Dunn
543223441d
Update to support the voice changes (ia, bn)
11 years ago
Reece H. Dunn
aabf4602ca
Remove uses-sdk from AndroidMasnifest.xml (specified by gradle).
11 years ago
Reece H. Dunn
c1f3dd8ddc
Fix the tests after updating to 1.48.05.
11 years ago
Reece H. Dunn
000ee52846
tests: support the new languages and translations
11 years ago
Reece H. Dunn
4236fc48db
Update the tests to include the new 'as' and 'gu' voices.
11 years ago
Reece H. Dunn
58ae6ea33f
VoiceSettings.java: Add support for converting to a JSON object.
11 years ago
Reece H. Dunn
aebd02fa68
Remove the Android 2.x/3.x support code.
The Android 4.x+ code has changed a lot since the initial import
of the eyes-free codebase. A lot of bug fixes and improvements
have been made to it.
The eyes-free codebase had two different code paths:
* one for ICS (4.0) or later, using the Java-based TTS APIs
provided by the Android platform;
* one for pre-ICS using an internal C++-based TTS API.
Thus, any bug fixes or improvements would have to be done to both
code bases if Android 2.x/3.x support is required. This is not
maintainable.
If pre-ICS support is to be re-added in the future, the plan will
be to:
* forward the C++-based APIs to the Java-based APIs via a
compatibility layer;
* use a compatibility layer (Android Support Library?) for using
the ICS settings API on pre-ICS.
11 years ago
Reece H. Dunn
bc346db22e
VoiceSettings.java: Support setting an espeak_punctuation_characters preference.
11 years ago
Reece H. Dunn
622e6043ef
Expose the Punctuation Level setting.
11 years ago
Reece H. Dunn
3259a08ca5
VoiceSettingsTest.java: Add missing test case to cover default_pitch and espeak_pitch preferences set.
11 years ago
Reece H. Dunn
0086ec61c3
VoiceSettings.java: Support reading the espeak_volume preference.
11 years ago
Reece H. Dunn
f1588b3770
VoiceSettings.java: Support reading the espeak_pitch_range preference.
11 years ago
Reece H. Dunn
f47729453f
VoiceSettings.java: Support reading the default_pitch and espeak_pitch preferences.
11 years ago
Reece H. Dunn
54ccfc39b4
VoiceSettings.java: Support reading the default_rate and espeak_rate preferences.
11 years ago
Reece H. Dunn
6c5631d810
VoiceSettings.java: Support reading the default_gender and espeak_variant preferences.
11 years ago
Reece H. Dunn
1c01e36b05
eSpeakTests: Add VoiceVariantTest to test the VoiceVariant class.
12 years ago
Reece H. Dunn
d6308605de
Use en-JM instead of en-029 and es-MX instead of es-419.
Android does not support UN M.49 territory codes. Instead:
* 4.2 and earlier return an empty string;
* 4.3 throws a MissingResourceException.
12 years ago
Reece H. Dunn
90c4af631c
TextToSpeechTestCase.java: wait for the voices to be installed and available before running the tests.
12 years ago
Reece H. Dunn
4a1743b174
Factor out the TextToSpeech engine initialization to a TextToSpeechTestCase helper class.
12 years ago
Reece H. Dunn
bb0a8a3c7a
Ensure the tests pass on Android 4.0 - 4.2.
12 years ago
Reece H. Dunn
7ee59ed331
SpeechSynthesis: factor out the Voice class into its own file.
12 years ago
Reece H. Dunn
8e1872c4e9
TextToSpeechTest: add context information to testLanguages.
12 years ago
Reece H. Dunn
6aa2538104
Fix up a test failure (sync the expected string for the pt-BR sample text)
12 years ago
Reece H. Dunn
0867c97336
When specifying dialects of Vietnamese, specify the country code as well as the variant code.
12 years ago
Reece H. Dunn
3a92ee34f2
Support the new voices.
12 years ago
Reece H. Dunn
cd1bd5fcef
Include the test voices (these were excluded by espeak_ListVoices in a recent upstream change)
12 years ago
Reece H. Dunn
153d5dabc3
Update the eclipse settings files.
12 years ago
Reece H. Dunn
42bd45c383
eSpeakTests: en-uk is now reported as en-gb by espeak, so update the tests
12 years ago
Reece H. Dunn
44bd818bc3
Update the tests to cover the voice changes in eSpeak.
12 years ago
Reece H. Dunn
956b5179fd
VoiceData.java: test/an has moved to europe/an
12 years ago
Reece H. Dunn
e96f2e3a92
eSpeakTests: update the VoiceData to reflect the directory layout changes
12 years ago
Reece H. Dunn
c6cca792ee
Correctly handle the new vi-hue language.
12 years ago
Reece H. Dunn
3f5b5bb521
android: support the Aragonese and Farsi/Persian voices from 1.46.31
12 years ago
Reece H. Dunn
6edd17eb0c
Add tests verifying that calling getSampleText does not change the apps locale.
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
df1adcfcfb
Use zh-HK for Cantonese Chinese as Android does not properly support the yue language code.
12 years ago
Reece H. Dunn
3c05eeb9ed
libs: add the hamcrest jar files needed to build the espeak tests
12 years ago
Reece H. Dunn
7dd1d66e4a
Fix the shared object name for API 8 compatibility, with tests.
12 years ago
Reece H. Dunn
dc4f85865d
SpeechSynthesis: fix the getSampleText behaviour when passed Java-style locale codes.
12 years ago
Reece H. Dunn
2a3a1a0a81
Move the sample text logic into SpeechSynthesis.getSampleText and add test cases for it.
12 years ago