Reece H. Dunn
385a18bf04
TtsService: clear mAvailableVoices before repopulating it
9 years ago
Reece H. Dunn
ced5afb0a1
TtsService: only set mMatchingVoice when told to load the voice.
9 years ago
Reece H. Dunn
8f6f0966f6
Fix the TtsService.onGetDefaultVoiceNameFor behaviour.
9 years ago
Reece H. Dunn
d6786a4df4
Factor out the onIsLanguageAvailable logic into a findVoice helper method.
9 years ago
Reece H. Dunn
0ac8564fe5
TextToSpeechServiceTest: add mMatchingVoice tests
9 years ago
Reece H. Dunn
c77a83801a
TextToSpeechServiceTest: add onGetDefaultVoiceNameFor tests
9 years ago
Reece H. Dunn
daf688ef51
TextToSpeechServiceTest: test the Android 4.x API
9 years ago
Reece H. Dunn
1e16011ee8
Use onIsLanguageAvailable in onGetDefaultVoiceNameFor instead of onLoadLanguage (language does not need to be loaded at this point).
9 years ago
Reece H. Dunn
1f6d3eeb4b
Make mAvailableVoices final to avoid a lint warning on synchronized calls.
9 years ago
Reece H. Dunn
883e97fbd7
TextToSpeechTestCase: use isTtsLangCode to check TextToSpeech.LANG_*
9 years ago
Reece H. Dunn
c4230b01ca
Make Voice return the Java-based (ISO 639-3) language and country codes.
9 years ago
Reece H. Dunn
37117e7a45
Fix the Marathi sample text test on Android 4.0.
9 years ago
Reece H. Dunn
784c5e9c2d
Update the sample text tests for Android 6.0 (marshmallow).
9 years ago
Reece H. Dunn
90481713de
Remove unused variable.
9 years ago
Reece H. Dunn
e6f6e97680
Remove the use of the native_data_t object.
9 years ago
Reece H. Dunn
66cfe9af2b
Implement SpeechSynthesis.getSampleRate in Java.
9 years ago
Reece H. Dunn
46c5f88c6f
Implement SpeechSynthesis.getBufferSizeInMillis in Java.
9 years ago
Reece H. Dunn
92ac250ddd
Implement SpeechSynthesis.getAudioFormat in Java.
9 years ago
Reece H. Dunn
c62a91fc0f
Implement SpeechSynthesis.getChannelCount in Java.
9 years ago
Reece H. Dunn
48ba1899e4
tests: support the new Marathi language.
10 years ago
Reece H. Dunn
135f852598
getTtsLanguage: workaround NPE in >= Lollipop.
When there is no TTS engine selected, mTts.getVoice() will throw
a NullPointerException. This is a workaround to cope with this bug
in Android.
10 years ago
Reece H. Dunn
05b5837ff0
Use android plugin 1.2.3 for Android Studio 1.3.
10 years ago
Reece H. Dunn
6c8df05fb7
eSpeak for Android 1.48.11
10 years ago
Reece H. Dunn
39eb0d2cff
Theme: use the Material theme on API 21 and later
10 years ago
Reece H. Dunn
7909431259
Theme: use a dark action bar
10 years ago
Reece H. Dunn
d4c6bc2549
Use the Holo Light theme.
10 years ago
Reece H. Dunn
c14cfbf912
SpeechSynthesis: test for and prevent duplicate voice entries
10 years ago
Reece H. Dunn
6fa2e34c7f
Revert "DownloadVoiceData: check the mkdir return value"
This reverts commit 6ac54860a1
.
This change was preventing the voice data from being installed.
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
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.
10 years ago
Reece H. Dunn
736986d609
TextToSpeechService: support SynthesisRequest.getVoiceName
10 years ago
Reece H. Dunn
1c0e4cfaa9
TextToSpeechService: use a HashMap for the voices.
This improves the performance of looking up a voice by name.
10 years ago
Reece H. Dunn
cfb2f9d3cb
Fix TextToSpeech,setLanguage on Android 5.0.
As of Android 5.0, TextToSpeech.setLanguage calls the new
TextToSpeechService.onGetDefaultVoiceNameFor(lang,country,variant)
and uses the specified voice name.
The default Android 5.0 implementation of onGetDefaultVoiceNameFor
does not work with eSpeak. This provides a working implementation.
This fixes the TextToSpeechTest.testLanguages tests on Android 5.0.
10 years ago
Reece H. Dunn
98208df155
TextToSpeechTest: provide more context information
10 years ago
Reece H. Dunn
dbb259056e
Add CheckVoiceData activity tests.
10 years ago
Reece H. Dunn
c9003c50ba
TextToSpeech: test and fix onIsValidVoiceName
10 years ago
Reece H. Dunn
daa9326eb2
TextToSpeechTest: languages with codes not supported by Android are not present
10 years ago
Reece H. Dunn
83326027bf
TextToSpeechTest: factor out the language checks
10 years ago
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.
10 years ago
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
7846e91089
TtsService: add wrappers for the new voice APIs.
This adds method declarations for the new voice APIs, forwarding
them to the default implementations.
10 years ago
Reece H. Dunn
d90e58f9cd
Fix deprecated SynthesisRequest.getText usage.
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
6ac54860a1
DownloadVoiceData: check the mkdir return value
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