Commit Graph
51 Commits
Author SHA1 Message Date
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
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 1c01e36b05 eSpeakTests: Add VoiceVariantTest to test the VoiceVariant class. 2013-08-27 16:29:03 +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 90c4af631c TextToSpeechTestCase.java: wait for the voices to be installed and available before running the tests. 2013-07-28 17:01:32 +01:00
Reece H. Dunn 4a1743b174 Factor out the TextToSpeech engine initialization to a TextToSpeechTestCase helper class. 2013-07-28 16:31:48 +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 7ee59ed331 SpeechSynthesis: factor out the Voice class into its own file. 2013-05-09 13:56:02 +01:00
Reece H. Dunn 8e1872c4e9 TextToSpeechTest: add context information to testLanguages. 2013-05-09 12:58:10 +01:00
Reece H. Dunn 6aa2538104 Fix up a test failure (sync the expected string for the pt-BR sample text) 2013-05-07 22:19:48 +01:00
Reece H. Dunn 0867c97336 When specifying dialects of Vietnamese, specify the country code as well as the variant code. 2013-05-05 14:21:48 +01:00
Reece H. Dunn 3a92ee34f2 Support the new voices. 2013-04-29 10:53:54 +01:00
Reece H. Dunn cd1bd5fcef Include the test voices (these were excluded by espeak_ListVoices in a recent upstream change) 2013-04-03 10:30:21 +01:00
Reece H. Dunn 153d5dabc3 Update the eclipse settings files. 2013-04-03 09:46:35 +01:00
Reece H. Dunn 42bd45c383 eSpeakTests: en-uk is now reported as en-gb by espeak, so update the tests 2013-04-03 09:45:29 +01:00
Reece H. Dunn 44bd818bc3 Update the tests to cover the voice changes in eSpeak. 2013-03-26 11:39:17 +00:00
Reece H. Dunn 956b5179fd VoiceData.java: test/an has moved to europe/an 2013-03-17 12:25:33 +00:00
Reece H. Dunn e96f2e3a92 eSpeakTests: update the VoiceData to reflect the directory layout changes 2013-03-14 17:53:18 +00:00
Reece H. Dunn c6cca792ee Correctly handle the new vi-hue language. 2013-03-13 22:05:41 +00:00
Reece H. Dunn 3f5b5bb521 android: support the Aragonese and Farsi/Persian voices from 1.46.31 2013-01-25 17:14:27 +00:00
Reece H. Dunn 6edd17eb0c Add tests verifying that calling getSampleText does not change the apps locale. 2013-01-16 18:58:11 +00:00
Reece H. Dunn f455a466c3 Do not add a voice if the Locale assigns a blank ISO3 language code. 2013-01-16 18:42:33 +00:00
Reece H. Dunn df1adcfcfb Use zh-HK for Cantonese Chinese as Android does not properly support the yue language code. 2013-01-16 18:27:07 +00:00
Reece H. Dunn 3c05eeb9ed libs: add the hamcrest jar files needed to build the espeak tests 2012-12-18 21:27:50 +00:00
Reece H. Dunn 7dd1d66e4a Fix the shared object name for API 8 compatibility, with tests. 2012-12-18 19:25:09 +00:00
Reece H. Dunn dc4f85865d SpeechSynthesis: fix the getSampleText behaviour when passed Java-style locale codes. 2012-12-18 15:39:00 +00:00
Reece H. Dunn 2a3a1a0a81 Move the sample text logic into SpeechSynthesis.getSampleText and add test cases for it. 2012-12-18 14:38:57 +00:00
Reece H. Dunn 0a69c19112 SpeechSynthesis.Voice.toString should report the language code (not the voice name), so the correct language name is displayed 2012-12-17 18:54:44 +00:00
Reece H. Dunn 54b9cb161b VoiceData: update the test data to check the es, fr-be, mk, pl and sw languages. 2012-12-17 17:01:17 +00:00
Reece H. Dunn 5a2cfb2e7c SpeechSynthesisTest: skip testing voice data for missing voices. 2012-12-17 16:50:24 +00:00
Reece H. Dunn aed6bc0365 SpeechSynthesisTest: calculate the added and removed voices in the getVoices method. 2012-12-17 16:45:50 +00:00
Reece H. Dunn ea623385d6 SpeechSynthesisTest: test for added and removed voices to make it easier to maintain and update the VoiceData.voices list. 2012-12-17 16:36:38 +00:00
Reece H. Dunn 32efff8500 VoiceData.Exception: use AssertionError instead of Exception to get the language in the JUnit results. 2012-12-17 14:13:09 +00:00
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. 2012-12-17 14:10:18 +00:00
Reece H. Dunn b30311a7d7 TextToSpeechTest: move out the unsupported language tests to a separate method and check that the language does not get updated. 2012-12-16 11:27:33 +00:00
Reece H. Dunn 7816a0a204 TtsService: set the language properties to the matched voice, not the requested voice 2012-12-16 11:14:12 +00:00
Reece H. Dunn 4cbf26883b TextToSpeechTest: add tests for TextToSpeech.set/getLanguage. 2012-12-16 01:43:41 +00:00
Reece H. Dunn 2bdd4aab27 TextToSpeechTest: add tests for TextToSpeech.isLanguageAvailable. 2012-12-16 01:34:20 +00:00
Reece H. Dunn 8d586dd52c SpeechSynthesisTest: factor out the voice data into a reusable, queryable list 2012-12-16 01:11:38 +00:00
Reece H. Dunn 86fe261425 SpeechSynthesisTest: Add tests for Voice.match using 3-letter language and country codes. 2012-12-15 14:36:42 +00:00
Reece H. Dunn 51da7f2478 SpeechSynthesisTest: Add tests for Voice.toString. 2012-12-15 14:18:51 +00:00
Reece H. Dunn 5277a6788a SpeechSynthesisTest: Add tests for Voice.match. 2012-12-15 14:16:10 +00:00