Reece H. Dunn
c14cfbf912
SpeechSynthesis: test for and prevent duplicate voice entries
11 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.
11 years ago
Reece H. Dunn
58047cef67
[Android 5.0] TTS settings crashes on hye-arevmda
11 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.
11 years ago
Reece H. Dunn
736986d609
TextToSpeechService: support SynthesisRequest.getVoiceName
11 years ago
Reece H. Dunn
1c0e4cfaa9
TextToSpeechService: use a HashMap for the voices.
This improves the performance of looking up a voice by name.
11 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.
11 years ago
Reece H. Dunn
c9003c50ba
TextToSpeech: test and fix onIsValidVoiceName
11 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.
11 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.
11 years ago
Reece H. Dunn
d90e58f9cd
Fix deprecated SynthesisRequest.getText usage.
11 years ago
Reece H. Dunn
3d2308e285
Use API 21.
11 years ago
Reece H. Dunn
6ac54860a1
DownloadVoiceData: check the mkdir return value
11 years ago
Reece H. Dunn
8fe359d0e4
Remove unused imports.
11 years ago
Reece H. Dunn
328f4cfdc9
Test and fix Java to IANA country code mapping.
11 years ago
Reece H. Dunn
6576742917
Test and fix Java to IANA language code mapping.
11 years ago
Reece H. Dunn
543223441d
Update to support the voice changes (ia, bn)
11 years ago
Reece H. Dunn
0008e7d7d1
ImportVoicePreference.java: fix a crash when no dictionaries are found
11 years ago
Reece H. Dunn
000ee52846
tests: support the new languages and translations
11 years ago
Reece H. Dunn
66818b4e4a
eSpeakActivity: Register the receiver in onStart to avoid an IllegalArgumentEcception.
12 years ago
Reece H. Dunn
8f82baa646
Fix updating the number of installed voices after installing them within the activity.
12 years ago
Reece H. Dunn
a8f09fd4a9
Don't crash or trigger a voice update if there is no selected dictionary to import.
12 years ago
Reece H. Dunn
9c00360347
Add the ability to import an eSpeak dictionary file from the SD card.
12 years ago
Reece H. Dunn
dea3ee743f
FileUtils: Set the initial size of the ByteArrayOutputStream buffer.
12 years ago
Reece H. Dunn
bbad97c194
Move the file-related helper methods to a FileUtils class.
12 years ago
Reece H. Dunn
8731c237af
Update the copyright statements of several java files.
12 years ago
Reece H. Dunn
b3d5e46b83
Remove unused import statements.
12 years ago
Reece H. Dunn
ed305acc29
Move the Preference implementations to com.reecedunn.espeak.preference.
12 years ago
Reece H. Dunn
cf9dc5b430
DownloadVoiceData.java: Move clearContents to the AsyncExtract inner class.
12 years ago
Reece H. Dunn
e516356123
DownloadVoiceData.java: Inline onLanguagesInstalled to the onPostExecute callback.
12 years ago
Reece H. Dunn
bd2d3803cc
CheckVoiceData.java: dataPath is no longer used, so remove it.
12 years ago
Reece H. Dunn
9d30f6e7a0
CheckVoiceData.java: The filter method is no longer used, so remove it.
12 years ago
Reece H. Dunn
f8f025da85
TtsSettingsActivity.java: Use the VoiceSettings.PREF_* constants for the preference names.
12 years ago
Reece H. Dunn
58ae6ea33f
VoiceSettings.java: Add support for converting to a JSON object.
12 years ago
Reece H. Dunn
1891740f80
Add an explicit 'None' option to the 'Speak punctuation' setting.
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
602a14d76f
TtsService.java: Use the locale from the SynthesisRequest, not the last onLoadLanguage call.
12 years ago
Reece H. Dunn
edbeb09f21
Add support for the NVDA voice variants.
12 years ago
Reece H. Dunn
c7a1556101
Rework the Voice variant preference to show a dialog with Category and Variant lists.
The original variant list UI resulted in a long, complex list that
was difficult to navigate. This change splits up that list into
more manageable groups.
12 years ago
Reece H. Dunn
596aa025cd
InformationListAdapter: Use ArrayAdapter.getItem.
12 years ago
Reece H. Dunn
fb64d30c3d
TtsSettingsActivity: Rename createPreference to createSeekBarPreference.
12 years ago
Reece H. Dunn
7a359fdb69
Use the information_view layout for the custom preferences.
12 years ago
Reece H. Dunn
960770e80f
Use the android title/summary IDs in the information_view.xml layout.
12 years ago
Reece H. Dunn
1de60cdc15
Rework the 'Punctuation level' (now 'Speak punctuation') preference to include a custom punctuation list.
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
3cde1f7e6a
TtsService.java: Make onSynthesizeText use VoiceSettings to get the voice parameters.
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