Reece H. Dunn
830bed1cb1
Android: Fix the remaining tests.
7 years ago
Reece H. Dunn
44f33468c4
Android: Fix mapping voices who's IDs have been updated to be BCP47 compliant.
7 years ago
Reece H. Dunn
3b6c327756
Replace SpeechSynthesis.getBufferSizeInBytes with a constant in the C++ source, specified in the correct units (milliseconds).
9 years ago
Reece H. Dunn
e08b1fc624
Update the copyright notices.
9 years ago
Reece H. Dunn
865ebf61a7
Improve the log message for skipping asia/fa-en-us.
9 years ago
Reece H. Dunn
e308cec7c5
Make no use the more specific nb locale as nb is what Android uses.
9 years ago
Reece H. Dunn
0b898ed80d
Re-enable hy-west support.
9 years ago
Reece H. Dunn
fcd4edfd16
Enable om language support.
9 years ago
Reece H. Dunn
5be36dddf9
Simplify the espeak locale name mapping for maintainability.
9 years ago
Reece H. Dunn
90481713de
Remove unused variable.
9 years ago
Reece H. Dunn
e6f6e97680
Remove the use of the native_data_t object.
9 years ago
Reece H. Dunn
66cfe9af2b
Implement SpeechSynthesis.getSampleRate in Java.
9 years ago
Reece H. Dunn
46c5f88c6f
Implement SpeechSynthesis.getBufferSizeInMillis in Java.
9 years ago
Reece H. Dunn
92ac250ddd
Implement SpeechSynthesis.getAudioFormat in Java.
9 years ago
Reece H. Dunn
c62a91fc0f
Implement SpeechSynthesis.getChannelCount in Java.
9 years ago
Reece H. Dunn
48ba1899e4
tests: support the new Marathi language.
10 years ago
Reece H. Dunn
c14cfbf912
SpeechSynthesis: test for and prevent duplicate voice entries
10 years ago
Reece H. Dunn
58047cef67
[Android 5.0] TTS settings crashes on hye-arevmda
10 years ago
Reece H. Dunn
328f4cfdc9
Test and fix Java to IANA country code mapping.
10 years ago
Reece H. Dunn
6576742917
Test and fix Java to IANA language code mapping.
10 years ago
Reece H. Dunn
543223441d
Update to support the voice changes (ia, bn)
11 years ago
Reece H. Dunn
000ee52846
tests: support the new languages and translations
11 years ago
Reece H. Dunn
8f82baa646
Fix updating the number of installed voices after installing them within the activity.
11 years ago
Reece H. Dunn
1de60cdc15
Rework the 'Punctuation level' (now 'Speak punctuation') preference to include a custom punctuation list.
11 years ago
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.
12 years ago
Reece H. Dunn
bb0a8a3c7a
Ensure the tests pass on Android 4.0 - 4.2.
12 years ago
Reece H. Dunn
3d2d277a10
Avoid MissingResourceException on calls to getISO3CountryCode.
12 years ago
Reece H. Dunn
fc9bc0e55d
SpeechSynthesis.java: fix getAvailableVoices() on Android 4.3
12 years ago
Reece H. Dunn
7ee59ed331
SpeechSynthesis: factor out the Voice class into its own file.
12 years ago
Reece H. Dunn
774c909a9c
SpeechSynthesis: factor out the VoiceVariant class into its own file.
12 years ago
Reece H. Dunn
0867c97336
When specifying dialects of Vietnamese, specify the country code as well as the variant code.
12 years ago
Reece H. Dunn
a42f748f2b
Support voice variants and ages.
12 years ago
Reece H. Dunn
b60ed6c9ae
Display the formatted units on the volume setting.
12 years ago
Reece H. Dunn
233da111db
TtsService.java: rework the logic to use the new Parameter API.
12 years ago
Reece H. Dunn
de78778210
SpeechSynthesis.java: further refine the Parameter API.
12 years ago
Reece H. Dunn
85836eae92
SpeechSynthesis.java: rename the parameter APIs.
12 years ago
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.
12 years ago
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.
12 years ago
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.
12 years ago
Reece H. Dunn
23d34d702a
SpeechSynthesis.java: provide a binding of the eSpeak Get/SetParameter API.
12 years ago
Reece H. Dunn
3a92ee34f2
Support the new voices.
12 years ago
Reece H. Dunn
4d44e88dd2
TtsService: support detecting SSML documents
12 years ago
Reece H. Dunn
c6cca792ee
Correctly handle the new vi-hue language.
12 years ago
Reece H. Dunn
3f5b5bb521
android: support the Aragonese and Farsi/Persian voices from 1.46.31
12 years ago
Reece H. Dunn
f455a466c3
Do not add a voice if the Locale assigns a blank ISO3 language code.
12 years ago
Reece H. Dunn
df1adcfcfb
Use zh-HK for Cantonese Chinese as Android does not properly support the yue language code.
12 years ago
Reece H. Dunn
920dc0ad0c
Report the eSpeak version in the main activity.
12 years ago
Reece H. Dunn
7dd1d66e4a
Fix the shared object name for API 8 compatibility, with tests.
12 years ago
Reece H. Dunn
dc4f85865d
SpeechSynthesis: fix the getSampleText behaviour when passed Java-style locale codes.
12 years ago
Reece H. Dunn
2a3a1a0a81
Move the sample text logic into SpeechSynthesis.getSampleText and add test cases for it.
12 years ago