Commit Graph
55 Commits
Author SHA1 Message Date
Alexander Epaneshnikov c352597757 android: limit max speech rate to 449 WPM
this is the maximum espeak-ng's speech rate without using libsonic
2022-02-20 16:56:23 +03:00
Reece H. Dunn 830bed1cb1 Android: Fix the remaining tests. 2017-08-30 07:53:59 +01:00
Reece H. Dunn 44f33468c4 Android: Fix mapping voices who's IDs have been updated to be BCP47 compliant. 2017-08-22 18:30:30 +01:00
Reece H. Dunn 3b6c327756 Replace SpeechSynthesis.getBufferSizeInBytes with a constant in the C++ source, specified in the correct units (milliseconds). 2015-10-12 19:02:16 +01:00
Reece H. Dunn e08b1fc624 Update the copyright notices. 2015-10-12 07:24:20 +01:00
Reece H. Dunn 865ebf61a7 Improve the log message for skipping asia/fa-en-us. 2015-10-11 13:11:34 +01:00
Reece H. Dunn e308cec7c5 Make no use the more specific nb locale as nb is what Android uses. 2015-10-11 13:03:43 +01:00
Reece H. Dunn 0b898ed80d Re-enable hy-west support. 2015-10-11 12:28:02 +01:00
Reece H. Dunn fcd4edfd16 Enable om language support. 2015-10-11 12:13:02 +01:00
Reece H. Dunn 5be36dddf9 Simplify the espeak locale name mapping for maintainability. 2015-10-11 11:48:10 +01:00
Reece H. Dunn 90481713de Remove unused variable. 2015-10-07 21:49:42 +01:00
Reece H. Dunn e6f6e97680 Remove the use of the native_data_t object. 2015-10-07 21:23:58 +01:00
Reece H. Dunn 66cfe9af2b Implement SpeechSynthesis.getSampleRate in Java. 2015-10-07 21:12:05 +01:00
Reece H. Dunn 46c5f88c6f Implement SpeechSynthesis.getBufferSizeInMillis in Java. 2015-10-07 20:57:51 +01:00
Reece H. Dunn 92ac250ddd Implement SpeechSynthesis.getAudioFormat in Java. 2015-10-07 20:51:17 +01:00
Reece H. Dunn c62a91fc0f Implement SpeechSynthesis.getChannelCount in Java. 2015-10-07 20:47:19 +01:00
Reece H. Dunn 48ba1899e4 tests: support the new Marathi language. 2015-07-25 12:26:25 +01:00
Reece H. Dunn c14cfbf912 SpeechSynthesis: test for and prevent duplicate voice entries 2014-10-30 16:07:49 +00:00
Reece H. Dunn 58047cef67 [Android 5.0] TTS settings crashes on hye-arevmda 2014-10-30 14:23:58 +00:00
Reece H. Dunn 328f4cfdc9 Test and fix Java to IANA country code mapping. 2014-10-28 15:33:11 +00:00
Reece H. Dunn 6576742917 Test and fix Java to IANA language code mapping. 2014-10-28 15:23:53 +00:00
Reece H. Dunn 543223441d Update to support the voice changes (ia, bn) 2014-08-09 16:15:34 +01:00
Reece H. Dunn 000ee52846 tests: support the new languages and translations 2014-02-27 14:06:42 +00:00
Reece H. Dunn 8f82baa646 Fix updating the number of installed voices after installing them within the activity. 2013-10-14 15:12:23 +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 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 fc9bc0e55d SpeechSynthesis.java: fix getAvailableVoices() on Android 4.3 2013-07-27 10:11:16 +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 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 a42f748f2b Support voice variants and ages. 2013-05-05 13:25:46 +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 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 3a92ee34f2 Support the new voices. 2013-04-29 10:53:54 +01:00
Reece H. Dunn 4d44e88dd2 TtsService: support detecting SSML documents 2013-03-14 16:53:22 +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 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 920dc0ad0c Report the eSpeak version in the main activity. 2013-01-16 18:16:10 +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