Reece H. Dunn
c77a83801a
TextToSpeechServiceTest: add onGetDefaultVoiceNameFor tests
2015-10-10 13:47:58 +01:00
Reece H. Dunn
daf688ef51
TextToSpeechServiceTest: test the Android 4.x API
2015-10-10 13:40:07 +01:00
Reece H. Dunn
883e97fbd7
TextToSpeechTestCase: use isTtsLangCode to check TextToSpeech.LANG_*
2015-10-09 18:51:43 +01:00
Reece H. Dunn
c4230b01ca
Make Voice return the Java-based (ISO 639-3) language and country codes.
2015-10-09 06:55:52 +01:00
Reece H. Dunn
37117e7a45
Fix the Marathi sample text test on Android 4.0.
2015-10-08 20:43:52 +01:00
Reece H. Dunn
784c5e9c2d
Update the sample text tests for Android 6.0 (marshmallow).
2015-10-08 20:31:33 +01:00
Reece H. Dunn
48ba1899e4
tests: support the new Marathi language.
2015-07-25 12:26:25 +01:00
Reece H. Dunn
c14cfbf912
SpeechSynthesis: test for and prevent duplicate voice entries
2014-10-30 16:07:49 +00:00
Reece H. Dunn
1740026c1c
SpeechSynthesisTest: make mVoices a Map
2014-10-30 14:56:16 +00:00
Reece H. Dunn
58047cef67
[Android 5.0] TTS settings crashes on hye-arevmda
2014-10-30 14:23:58 +00:00
Reece H. Dunn
f4adda18b4
Voice: use the ISO3 language and country codes
...
The Android 5.0 Text-to-speech output settings dialog checks that
the languages from CheckVoiceData use the ISO3 language and
country codes. This change matches that expectation.
2014-10-30 14:16:43 +00:00
Reece H. Dunn
98208df155
TextToSpeechTest: provide more context information
2014-10-30 11:24:41 +00:00
Reece H. Dunn
dbb259056e
Add CheckVoiceData activity tests.
2014-10-30 09:30:01 +00:00
Reece H. Dunn
c9003c50ba
TextToSpeech: test and fix onIsValidVoiceName
2014-10-29 19:50:43 +00:00
Reece H. Dunn
daa9326eb2
TextToSpeechTest: languages with codes not supported by Android are not present
2014-10-29 19:18:41 +00:00
Reece H. Dunn
83326027bf
TextToSpeechTest: factor out the language checks
2014-10-29 19:17:26 +00:00
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.
2014-10-29 18:21:31 +00:00
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.
2014-10-29 16:32:25 +00:00
Reece H. Dunn
0dd897471c
tests: initial language may be null
2014-10-28 19:05:21 +00:00
Reece H. Dunn
3d2308e285
Use API 21.
2014-10-28 18:30:16 +00:00
Reece H. Dunn
8fe359d0e4
Remove unused imports.
2014-10-28 16:47:32 +00:00
Reece H. Dunn
3eab09e166
tests: fix the expected string tests on Android 4
2014-10-28 16:28:55 +00:00
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.
2014-10-28 16:11:51 +00:00
Reece H. Dunn
328f4cfdc9
Test and fix Java to IANA country code mapping.
2014-10-28 15:33:11 +00:00
Reece H. Dunn
6576742917
Test and fix Java to IANA language code mapping.
2014-10-28 15:23:53 +00:00
Reece H. Dunn
f68efe7224
tests: update the expected strings for Android 5.0
2014-10-28 14:54:09 +00:00
Reece H. Dunn
1cfb433438
tests: update the voice data
2014-10-28 13:05:27 +00:00
Reece H. Dunn
543223441d
Update to support the voice changes (ia, bn)
2014-08-09 16:15:34 +01:00
Reece H. Dunn
aabf4602ca
Remove uses-sdk from AndroidMasnifest.xml (specified by gradle).
2014-06-01 16:33:09 +01:00
Reece H. Dunn
c1f3dd8ddc
Fix the tests after updating to 1.48.05.
2014-06-01 16:23:29 +01:00
Reece H. Dunn
000ee52846
tests: support the new languages and translations
2014-02-27 14:06:42 +00:00
Reece H. Dunn
4236fc48db
Update the tests to include the new 'as' and 'gu' voices.
2013-10-14 13:30:53 +01:00
Reece H. Dunn
58ae6ea33f
VoiceSettings.java: Add support for converting to a JSON object.
2013-09-11 13:15:40 +01:00
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.
2013-09-08 12:01:20 +01:00
Reece H. Dunn
bc346db22e
VoiceSettings.java: Support setting an espeak_punctuation_characters preference.
2013-09-04 21:41:35 +01:00
Reece H. Dunn
622e6043ef
Expose the Punctuation Level setting.
2013-09-04 20:23:25 +01:00
Reece H. Dunn
3259a08ca5
VoiceSettingsTest.java: Add missing test case to cover default_pitch and espeak_pitch preferences set.
2013-09-04 17:53:27 +01:00
Reece H. Dunn
0086ec61c3
VoiceSettings.java: Support reading the espeak_volume preference.
2013-09-04 17:48:49 +01:00
Reece H. Dunn
f1588b3770
VoiceSettings.java: Support reading the espeak_pitch_range preference.
2013-09-04 17:39:08 +01:00
Reece H. Dunn
f47729453f
VoiceSettings.java: Support reading the default_pitch and espeak_pitch preferences.
2013-09-04 17:17:11 +01:00
Reece H. Dunn
54ccfc39b4
VoiceSettings.java: Support reading the default_rate and espeak_rate preferences.
2013-09-04 16:22:56 +01:00
Reece H. Dunn
6c5631d810
VoiceSettings.java: Support reading the default_gender and espeak_variant preferences.
2013-09-04 13:43:53 +01:00
Reece H. Dunn
1c01e36b05
eSpeakTests: Add VoiceVariantTest to test the VoiceVariant class.
2013-08-27 16:29:03 +01:00
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.
2013-07-28 18:33:24 +01:00
Reece H. Dunn
90c4af631c
TextToSpeechTestCase.java: wait for the voices to be installed and available before running the tests.
2013-07-28 17:01:32 +01:00
Reece H. Dunn
4a1743b174
Factor out the TextToSpeech engine initialization to a TextToSpeechTestCase helper class.
2013-07-28 16:31:48 +01:00
Reece H. Dunn
bb0a8a3c7a
Ensure the tests pass on Android 4.0 - 4.2.
2013-07-28 15:34:30 +01:00
Reece H. Dunn
7ee59ed331
SpeechSynthesis: factor out the Voice class into its own file.
2013-05-09 13:56:02 +01:00
Reece H. Dunn
8e1872c4e9
TextToSpeechTest: add context information to testLanguages.
2013-05-09 12:58:10 +01:00
Reece H. Dunn
6aa2538104
Fix up a test failure (sync the expected string for the pt-BR sample text)
2013-05-07 22:19:48 +01:00