Commit Graph
119 Commits
Author SHA1 Message Date
Reece H. Dunn 9c00360347 Add the ability to import an eSpeak dictionary file from the SD card. 2013-09-17 13:41:01 +01:00
Reece H. Dunn dea3ee743f FileUtils: Set the initial size of the ByteArrayOutputStream buffer. 2013-09-17 13:28:59 +01:00
Reece H. Dunn bbad97c194 Move the file-related helper methods to a FileUtils class. 2013-09-17 12:37:54 +01:00
Reece H. Dunn 8731c237af Update the copyright statements of several java files. 2013-09-16 15:54:51 +01:00
Reece H. Dunn b3d5e46b83 Remove unused import statements. 2013-09-16 15:52:04 +01:00
Reece H. Dunn ed305acc29 Move the Preference implementations to com.reecedunn.espeak.preference. 2013-09-16 15:40:05 +01:00
Reece H. Dunn cf9dc5b430 DownloadVoiceData.java: Move clearContents to the AsyncExtract inner class. 2013-09-15 15:59:58 +01:00
Reece H. Dunn e516356123 DownloadVoiceData.java: Inline onLanguagesInstalled to the onPostExecute callback. 2013-09-15 15:56:46 +01:00
Reece H. Dunn bd2d3803cc CheckVoiceData.java: dataPath is no longer used, so remove it. 2013-09-15 09:43:48 +01:00
Reece H. Dunn 9d30f6e7a0 CheckVoiceData.java: The filter method is no longer used, so remove it. 2013-09-15 09:40:33 +01:00
Reece H. Dunn f8f025da85 TtsSettingsActivity.java: Use the VoiceSettings.PREF_* constants for the preference names. 2013-09-15 09:26:58 +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 1891740f80 Add an explicit 'None' option to the 'Speak punctuation' setting. 2013-09-09 15:49:09 +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 602a14d76f TtsService.java: Use the locale from the SynthesisRequest, not the last onLoadLanguage call. 2013-09-07 14:45:27 +01:00
Reece H. Dunn edbeb09f21 Add support for the NVDA voice variants. 2013-09-06 17:01:19 +01:00
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.
2013-09-06 13:10:35 +01:00
Reece H. Dunn 596aa025cd InformationListAdapter: Use ArrayAdapter.getItem. 2013-09-06 11:32:32 +01:00
Reece H. Dunn fb64d30c3d TtsSettingsActivity: Rename createPreference to createSeekBarPreference. 2013-09-05 16:28:01 +01:00
Reece H. Dunn 7a359fdb69 Use the information_view layout for the custom preferences. 2013-09-05 15:02:10 +01:00
Reece H. Dunn 960770e80f Use the android title/summary IDs in the information_view.xml layout. 2013-09-05 15:01:29 +01:00
Reece H. Dunn 1de60cdc15 Rework the 'Punctuation level' (now 'Speak punctuation') preference to include a custom punctuation list. 2013-09-05 14:06:57 +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 3cde1f7e6a TtsService.java: Make onSynthesizeText use VoiceSettings to get the voice parameters. 2013-09-04 17:59:56 +01:00
Reece H. Dunn 0086ec61c3 VoiceSettings.java: Support reading the espeak_volume preference. 2013-09-04 17:48:49 +01:00
Reece H. Dunn f1588b3770 VoiceSettings.java: Support reading the espeak_pitch_range preference. 2013-09-04 17:39:08 +01:00
Reece H. Dunn f47729453f VoiceSettings.java: Support reading the default_pitch and espeak_pitch preferences. 2013-09-04 17:17:11 +01:00
Reece H. Dunn 54ccfc39b4 VoiceSettings.java: Support reading the default_rate and espeak_rate preferences. 2013-09-04 16:22:56 +01:00
Reece H. Dunn 6c5631d810 VoiceSettings.java: Support reading the default_gender and espeak_variant preferences. 2013-09-04 13:43:53 +01:00
Reece H. Dunn 00bc5f2c6c VoiceVariant.java: Use MALE and FEMALE string constants. 2013-09-04 13:42:52 +01:00
Reece H. Dunn e7921e80bf VoiceVariant.java: Replace String.split with a regex.Pattern object. 2013-08-27 16:57:17 +01:00
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.
2013-07-28 18:33:24 +01:00
Reece H. Dunn bb0a8a3c7a Ensure the tests pass on Android 4.0 - 4.2. 2013-07-28 15:34:30 +01:00
Reece H. Dunn 3d2d277a10 Avoid MissingResourceException on calls to getISO3CountryCode. 2013-07-27 18:30:34 +01:00
Reece H. Dunn 3815c54cbb CheckVoiceData.java: remove a comment about not returning data that is deprecated in API 18. 2013-07-27 11:15:33 +01:00
Reece H. Dunn 6bbef4e496 GetSampleText.java: API 18 provides a constant for the 'sampleText' return value, so use it 2013-07-27 11:13:28 +01:00
Reece H. Dunn 3d0364ffce CheckVoiceData.java: don't use the deprecated EXTRA_CHECK_VOICE_DATA_FOR value
This is used to filter the list of languages returned. However, the
filtering is not needed on the engine side as the client can simply
enumerate through all the available voices instead.
2013-07-27 10:56:42 +01:00
Reece H. Dunn 7c0f855cac CheckVoiceData.java: use CHECK_VOICE_DATA_FAIL instead of CHECK_VOICE_DATA_MISSING_DATA to fix a deprecated warning using API 18. 2013-07-27 10:45:14 +01:00
Reece H. Dunn fc9bc0e55d SpeechSynthesis.java: fix getAvailableVoices() on Android 4.3 2013-07-27 10:11:16 +01:00
Reece H. Dunn 65cf6c5aa1 Revert the updating of the language when the system language changes. 2013-05-09 16:19:06 +01:00
Reece H. Dunn fe4e139a83 TtsService: fix migrating the default_gender setting. 2013-05-09 15:24:57 +01:00
Reece H. Dunn cddd48e6f6 TtsService: support changing language to the user locale when they change the system language. 2013-05-09 14:54:09 +01:00
Reece H. Dunn 7ee59ed331 SpeechSynthesis: factor out the Voice class into its own file. 2013-05-09 13:56:02 +01:00
Reece H. Dunn 774c909a9c SpeechSynthesis: factor out the VoiceVariant class into its own file. 2013-05-09 13:51:12 +01:00
Reece H. Dunn 927a46d3cc TtsService: Rename mBroadcastReceiver to make its usage clear. 2013-05-09 12:07:21 +01:00
Reece H. Dunn 5ba4971d6b TtsService: fix a 'leaked receiver' exception. 2013-05-08 16:28:58 +01:00
Reece H. Dunn 72bfb4205f eSpeakActivity: do not initiate an install of the voice data when the voice data is not installed 2013-05-08 15:11:19 +01:00
Reece H. Dunn 8bdb644285 eSpeakActivity: use the BROADCAST_LANGUAGES_UPDATED event to handle voice installation 2013-05-08 14:17:40 +01:00
Reece H. Dunn ce94bf8cdf CheckVoiceData: only list English as unavailable if the base resources are not present. 2013-05-08 13:35:59 +01:00