Reece H. Dunn
66ac27a94e
Merge branch 'android'
2017-01-05 20:27:27 +00:00
Reece H. Dunn
bb3b7e9a00
Use BCP 47 locale codes for Voice.getLocale() to support the correct localization on Lollipop and later.
2015-10-12 21:29:55 +01:00
Reece H. Dunn
3b6c327756
Replace SpeechSynthesis.getBufferSizeInBytes with a constant in the C++ source, specified in the correct units (milliseconds).
2015-10-12 19:02:16 +01:00
Reece H. Dunn
e08b1fc624
Update the copyright notices.
2015-10-12 07:24:20 +01:00
Reece H. Dunn
e308cec7c5
Make no use the more specific nb locale as nb is what Android uses.
2015-10-11 13:03:43 +01:00
Reece H. Dunn
0b898ed80d
Re-enable hy-west support.
2015-10-11 12:28:02 +01:00
Reece H. Dunn
fcd4edfd16
Enable om language support.
2015-10-11 12:13:02 +01:00
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.
2015-10-11 09:16:21 +01:00
Reece H. Dunn
0b86bc71ad
Test TextToSpeech.setLanguage semantics at the TtsService level.
2015-10-10 23:07:58 +01:00
Reece H. Dunn
7c8128cc12
Fix the tests on Android Marshmallow.
2015-10-10 22:14:17 +01:00
Reece H. Dunn
ced5afb0a1
TtsService: only set mMatchingVoice when told to load the voice.
2015-10-10 14:46:07 +01:00
Reece H. Dunn
8f6f0966f6
Fix the TtsService.onGetDefaultVoiceNameFor behaviour.
2015-10-10 14:37:37 +01:00
Reece H. Dunn
0ac8564fe5
TextToSpeechServiceTest: add mMatchingVoice tests
2015-10-10 14:19:48 +01:00
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