Commit Graph
24 Commits
Author SHA1 Message Date
Reece H. Dunn 7ec13c5558 The nat object may be null in nativeDestroy. 2013-05-08 15:50:57 +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 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 4d44e88dd2 TtsService: support detecting SSML documents 2013-03-14 16:53:22 +00:00
Reece H. Dunn ef40dee48c Don't use espeakSSML when synthesizing text as this causes problems for some text. 2013-03-13 12:34:42 +00:00
Reece H. Dunn 920dc0ad0c Report the eSpeak version in the main activity. 2013-01-16 18:16:10 +00:00
Reece H. Dunn 03dfacef35 Android.mk: Factor out the ucd-tools files to make it easier to maintain. 2012-12-22 14:30:53 +00:00
Reece H. Dunn 68ec09ab57 Use the ucd-tools toupper/tolower APIs instead of the Android versions. 2012-12-22 10:08:42 +00:00
Reece H. Dunn 8bafda70e2 Use the new ucd-tools project for wide-character compatibility on Android. 2012-12-22 01:54:37 +00:00
Reece H. Dunn 0a37be30b2 Build a version of libttsespeak.so for the MIPS architecture. 2012-12-21 00:47:50 +00:00
Reece H. Dunn 2c20fe7e33 Application.mk: align the ':=' and remove commented out code 2012-12-20 20:23:24 +00:00
Reece H. Dunn 1b436168a1 eSpeakService.cpp: use 'delete' instead of 'free' to release memory allocated via 'new'. 2012-12-20 14:52:40 +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 3d48180e28 espeakengine: currentRate is not used, so remove it. 2012-12-16 18:13:59 +00:00
Reece H. Dunn 4529991fe4 espeakengine: avoid leaking memory from currentLanguage. 2012-12-16 18:11:45 +00:00
Reece H. Dunn f45a01b8e0 espeakengine: correctly implement TtsEngine::setAudioFormat. 2012-12-16 18:05:12 +00:00
Reece H. Dunn b9c0143a9b Rename libttsespeak.so to libespeak.so. 2012-12-16 12:12:00 +00:00
Reece H. Dunn 123e55a39c Relocate the package to com.reecedunn.espeak 2012-12-14 14:23:31 +00:00
Reece H. Dunn bf45142f5d Fix the pitch mapping between Android and eSpeak. 2012-12-13 22:42:06 +00:00
Reece H. Dunn df0f166fb4 Move the android sources to android/... to avoid polluting the APK when it is being built through eclipse 2012-12-13 14:05:26 +00:00