Commit Graph
139 Commits
Author SHA1 Message Date
Reece H. Dunn ce8f261495 When upgrading the speech rate, clamp it to between the default and maximum values. 2013-05-06 13:43:48 +01:00
Reece H. Dunn 94c8a1bcce Updated the Turkish translations (translator: https://www.transifex.com/accounts/profile/noname788/). 2013-05-06 13:07:57 +01:00
Reece H. Dunn 906177f68e Updated the Finnish translations (translator: Jani Kinnunen). 2013-05-06 13:06:29 +01:00
Reece H. Dunn d33a56884f Updated the Russian translations (translator: Oleg Glinskiy). 2013-05-06 13:04:57 +01:00
Reece H. Dunn f4de4a0b9d Updated the Italian translations (translator: Simone Dal Maso). 2013-05-06 13:03:27 +01:00
Reece H. Dunn cc70f4251a Use the Transifex created translation files. 2013-05-05 19:20:33 +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 24dbfa59a0 Remove unused strings. 2013-05-05 13:39:35 +01:00
Reece H. Dunn a42f748f2b Support voice variants and ages. 2013-05-05 13:25:46 +01:00
Reece H. Dunn dde42239f3 SeekBarPreference: update the persisted value when the SeekBar changes value
The idea here is that whenever the user changes one of the parameter
values via the SeekBar control, it is reflected immediately by eSpeak.
This is similar to how e.g. the brightness preference UI works.
However, instead of updating every time the value changes while the
slider is being moved, it is updated once the touch interaction is
finished.

Also, if the user Cancels or exits the dialog with the back button,
the old setting value is restored.
2013-05-05 11:09:46 +01:00
Reece H. Dunn 3169ffbc04 SeekBarPreference: don't make the value text selectable
The ADT lint warnings flagged the value text as "consider making
the text selectable", however if you do TalkBack will cause the
first character to be read every time the seekbar changes poisiton
(due to the text being updated via the setText method).

This is annoying and confusing, so textIsSelectable is set to false
to supress the lint warning.
2013-05-04 12:38:12 +01:00
Reece H. Dunn c8d0484e38 SeekBarPreference: make the value text selectable. 2013-05-04 12:02:19 +01:00
Reece H. Dunn 18bfb79a2b SeekBarPreference: clean up the layout styles on the 'Set to default' button. 2013-05-04 11:59:33 +01:00
Reece H. Dunn 747f65522f SeekBarPreferences: adjust the margins and paddings on the dialog items. 2013-05-04 11:36:14 +01:00
Reece H. Dunn 8d6465d6ca SeekBarPreference: ensure that the base class is called in onBindDialogView. 2013-05-04 11:28:13 +01:00
Reece H. Dunn a601d8afb1 SeekBarPreference: set the content description to the value of the parameter. 2013-05-03 18:39:31 +01:00
Reece H. Dunn 4b06b1b024 Support configuring the pitch range parameter. 2013-05-03 16:51:02 +01:00
Reece H. Dunn c62f08c66b The default_rate_values string-array is no longer needed, so remove it. 2013-05-03 16:11:27 +01:00
Reece H. Dunn d0f5dc2ff4 Migrate the speech rate parameter to use the new SeekBar/Parameter UI. 2013-05-03 16:08:30 +01:00
Reece H. Dunn 16164c1c52 SeekBarPreference: fix handling of the minimum value option. 2013-05-03 16:03:27 +01:00
Reece H. Dunn b2785ce823 Remove the 'Default' gender option as this does not make sense. 2013-05-03 15:32:28 +01:00
Reece H. Dunn 1b9df87976 Remove all references to the default_pitch_entries string-array. 2013-05-03 14:56:37 +01:00
Reece H. Dunn c5a62fe076 Reformat the strings.xml files to be consistently formatted. 2013-05-03 14:54:36 +01:00
Reece H. Dunn a91dedf205 remove_string.sh: helper for removing a string resource in all strings.xml files. 2013-05-03 14:54:10 +01:00
Reece H. Dunn 09c79bb013 Make the rate setting use the new SeekBar/Parameter UI. 2013-05-03 13:07:54 +01:00
Reece H. Dunn d0ba13ae1d SeekBarPreference: support resetting to the default value. 2013-05-03 12:43:20 +01:00
Reece H. Dunn 20010daac3 SeekBarPreference: show the formatted current value in the preference dialog. 2013-05-03 12:21:30 +01:00
Reece H. Dunn 8e4b6044dc SeekBarPreference: make formatter an explicit property instead of using the extras bundle. 2013-05-03 11:54:25 +01:00
Reece H. Dunn b60ed6c9ae Display the formatted units on the volume setting. 2013-05-03 11:46:04 +01:00
Reece H. Dunn 5370341abf SeekBarPreference: only commit the preference if requested to. 2013-05-03 11:24:59 +01:00
Reece H. Dunn ac6099ebf1 Hook up the volume parameter to a slider preference dialog. 2013-05-03 11:11:59 +01:00
Reece H. Dunn 233da111db TtsService.java: rework the logic to use the new Parameter API. 2013-05-02 20:33:43 +01:00
Reece H. Dunn de78778210 SpeechSynthesis.java: further refine the Parameter API. 2013-05-02 20:13:00 +01:00
Reece H. Dunn 85836eae92 SpeechSynthesis.java: rename the parameter APIs. 2013-05-02 19:57:52 +01:00
Reece H. Dunn cc72825682 SpeechSynthesis.java: expose the different voice options from eSpeak
This makes the following changes:

1.  setVoice takes a Voice object instead of a language string.

    This is to make the API cleaner and allows SpeechSynthesis
    to pass the correct parameter (identifier for SetVoiceByName,
    or name for SetVoiceByProperties) to espeak.

2.  The espeak_SetVoiceByName API is also exposed to support passing
    the voice variant to use.

3.  The age parameter has been re-added with the constants:
    *  SpeechSynthesis.AGE_ANY
    *  SpeechSynthesis.AGE_YOUNG
    *  SpeechSynthesis.AGE_OLD
    based on the behaviour of the eSpeak voice selection algorithm.

NOTE: Due to the way that voice selection is implemented in eSpeak,
if variant is specified, the age and gender cannot be specified and
vice versa.
2013-05-02 18:06:41 +01:00
Reece H. Dunn 88eab88d8a SpeechSynthesis.java: further simplify the setVoice method.
This renames `setVoiceByProperties` to the more consise `setVoice`
and removes the name parameter as this is not used -- the voice is
set by the language and gender parameters only.
2013-05-02 16:45:46 +01:00
Reece H. Dunn 027217d5f7 SpeechSynthesis.java: Simplify the SetVoiceByProperties parameters.
The `age` parameter is not useful as eSpeak does not use this when
selecting voices. This is always set to `0` by TtsService.java.

The `variant` parameter is not used to select the actual voice
variant (from the `!v` directory) but to select the n^th matching
voice from the list of matching voices. This is always set to
select the first matching voice by TtsService.java.
2013-05-02 16:32:46 +01:00
Reece H. Dunn 23d34d702a SpeechSynthesis.java: provide a binding of the eSpeak Get/SetParameter API. 2013-05-02 16:23:59 +01:00
Reece H. Dunn e50f9e0055 DEFAULT_SAMPLE_RATE is not needed, so remove it.
The sampleRate variable gets overwritten with the actual sample
rate during creation from the espeak_Initialize method, so the
value it is set to in the constructor does not matter.
2013-05-02 10:44:39 +01:00
Reece H. Dunn 3a92ee34f2 Support the new voices. 2013-04-29 10:53:54 +01:00
Reece H. Dunn f57de435ac eSpeak for Android 1.47.04 (rev: 13) 2013-04-03 11:44:37 +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 b066367ee0 eSpeak for Android 1.46.53 (rev: 12) 2013-03-17 12:36:10 +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 4a3a50e658 eSpeak for Android 1.46.49 (rev: 11) 2013-03-14 18:27:23 +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 31b2bf0c56 CheckVoiceData.java: don't check for any voices as they can change directory layout 2013-03-14 17:14:14 +00:00