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.
12 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.
12 years ago
Reece H. Dunn
bc346db22e
VoiceSettings.java: Support setting an espeak_punctuation_characters preference.
12 years ago
Reece H. Dunn
622e6043ef
Expose the Punctuation Level setting.
12 years ago
Reece H. Dunn
3259a08ca5
VoiceSettingsTest.java: Add missing test case to cover default_pitch and espeak_pitch preferences set.
12 years ago
Reece H. Dunn
0086ec61c3
VoiceSettings.java: Support reading the espeak_volume preference.
12 years ago
Reece H. Dunn
f1588b3770
VoiceSettings.java: Support reading the espeak_pitch_range preference.
12 years ago
Reece H. Dunn
f47729453f
VoiceSettings.java: Support reading the default_pitch and espeak_pitch preferences.
12 years ago
Reece H. Dunn
54ccfc39b4
VoiceSettings.java: Support reading the default_rate and espeak_rate preferences.
12 years ago
Reece H. Dunn
6c5631d810
VoiceSettings.java: Support reading the default_gender and espeak_variant preferences.
12 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
Reece H. Dunn
0a69c19112
SpeechSynthesis.Voice.toString should report the language code (not the voice name), so the correct language name is displayed
12 years ago
Reece H. Dunn
54b9cb161b
VoiceData: update the test data to check the es, fr-be, mk, pl and sw languages.
12 years ago
Reece H. Dunn
5a2cfb2e7c
SpeechSynthesisTest: skip testing voice data for missing voices.
12 years ago
Reece H. Dunn
aed6bc0365
SpeechSynthesisTest: calculate the added and removed voices in the getVoices method.
12 years ago
Reece H. Dunn
ea623385d6
SpeechSynthesisTest: test for added and removed voices to make it easier to maintain and update the VoiceData.voices list.
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
87ccc3a61e
SpeechSynthesisTest: check the number of voices against the length of the test data array (VoiceData.voices) instead of hard coding it.
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
Reece H. Dunn
8d586dd52c
SpeechSynthesisTest: factor out the voice data into a reusable, queryable list
12 years ago
Reece H. Dunn
86fe261425
SpeechSynthesisTest: Add tests for Voice.match using 3-letter language and country codes.
12 years ago