Reece H. Dunn
830bed1cb1
Android: Fix the remaining tests.
8 years ago
Reece H. Dunn
3b6c327756
Replace SpeechSynthesis.getBufferSizeInBytes with a constant in the C++ source, specified in the correct units (milliseconds).
10 years ago
Reece H. Dunn
e08b1fc624
Update the copyright notices.
10 years ago
Reece H. Dunn
784c5e9c2d
Update the sample text tests for Android 6.0 (marshmallow).
10 years ago
Reece H. Dunn
c14cfbf912
SpeechSynthesis: test for and prevent duplicate voice entries
10 years ago
Reece H. Dunn
1740026c1c
SpeechSynthesisTest: make mVoices a Map
10 years ago
Reece H. Dunn
58047cef67
[Android 5.0] TTS settings crashes on hye-arevmda
10 years ago
Reece H. Dunn
8fe359d0e4
Remove unused imports.
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
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
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
44bd818bc3
Update the tests to cover the voice changes in eSpeak.
12 years ago
Reece H. Dunn
e96f2e3a92
eSpeakTests: update the VoiceData to reflect the directory layout changes
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
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
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
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
Reece H. Dunn
51da7f2478
SpeechSynthesisTest: Add tests for Voice.toString.
12 years ago
Reece H. Dunn
5277a6788a
SpeechSynthesisTest: Add tests for Voice.match.
12 years ago
Reece H. Dunn
1a28553d4c
Add tests for the data returned by the SpeechSynthesis class, specifically the Voice locale entries.
12 years ago