Commit Graph
38 Commits
Author SHA1 Message Date
Juho Hiltunen c28412db78 Don't set stress_flags with language option "stressRule".
Language option "stressOpt" already handles separate flags instead of a
single integer. There's no reason to have two ways of setting the same
option.
2021-07-27 22:15:28 +03:00
Juho Hiltunen 4f5f1e8310 doc: add documentation for language option "stressOpt" 2021-07-27 22:15:28 +03:00
Juho Hiltunen fb233a7b0c code cleanup: move stressLength, stressAdd and stressAmp handling in LoadVoice()
From now on, stressLength must be set before stressAdd because
stressLength will overwrite any previous value. Usually stressLength is
set in a language file and stressAdd in a voice file.

Previously the order of the two commands didn't matter.
2021-05-22 13:38:03 +03:00
Juho Hiltunen c4740b3053 New language option lowercaseSentence
When set in a language file, a period followed by a lower case letter is
detected as end of sentence. Normal behavior is to require a capital
letter.
2021-04-05 19:29:18 +03:00
Juho Hiltunen 0cf3ee564c Code cleanup: remove param2 from langopts and rename keyword option in language files.
- param2[] is only used to set a second value to LOPT_BRACKET_PAUSE. It is simpler
to have two values in param[] instead. This simplifies the codebase.

- Instead of setting "option bracket X Y" in language files, use
keywords "brackets X" and "bracketsAnnounced Y" instead to follow the
naming convention of other keywords.

- Add missing documentation to docs/voices.md.
2021-02-21 15:01:29 +02:00
Valdis Vitolins b7d2dc0941 Note that language name should be single word only.
See more at: https://github.com/espeak-ng/espeak-ng/pull/863
2020-12-28 15:42:08 +02:00
Valdis Vitolins 52246c4043 docs: add more details about language vs voice settings 2020-10-21 22:32:57 +03:00
Reece H. Dunn 919f3240cb Revert "Move handling of SetLetterVowel() to language files"
This reverts commit 6042eb8d1e.

The change causes an issue with `pt-BR` and possibly other languages
and voices.
2018-10-08 07:38:56 +01:00
Valdis Vitolins 0fb546747f docs: add link to header file 2018-09-11 18:06:16 +03:00
Reece H. Dunn 6049c01f27 docs: Fix the documentation. 2018-04-25 07:04:35 +01:00
Valdis Vitolins 74b35a2616 doc: default sped value fixed 2017-12-24 16:54:50 +02:00
Reece H. Dunn ecd0902a10 Revert "Move most stress rule definitions from tr_languages.c to language files"
This reverts commit 0f55204522.

This breaks using voice files like mb-de5-en. It could also use
named values for the stress rules (e.g. 'first-syllable').
2017-12-21 21:58:46 +00:00
Juho Hiltunen 0f55204522 Move most stress rule definitions from tr_languages.c to language files
Keyword stressRule in voices.c handles setting langopts->stress_rule.

tr_languages.c still contains the setting for some languages that don't have a language file yet.

Contributes to:
Issue #218, https://github.com/espeak-ng/espeak-ng/issues/218
2017-12-10 21:05:21 +02:00
Juho Hiltunen 2ec4ad38ea Use stressRule instead of stressrule for consistency 2017-12-10 21:05:20 +02:00
Juho Hiltunen 6042eb8d1e Move handling of SetLetterVowel() to language files
Contributes to:
Issue #218, https://github.com/espeak-ng/espeak-ng/issues/218

Changes:
language files have a new keyword letterVowel. It can be a latin alphabet from a-z or a hex value (used by bulgarian).
Errors in parsing the values are only reported, nothing is done about them.

About testing:
I haven't noticed any differences in the output audio with letterVowel set or unset in any tested language. The code seems to work and the correct bits seem to be set, but I don't know how to confirm from the final audio.

TODO:
1. Write better documentation in docs/voices.md
2. The code uses new_translator. Should it use translator instead?
2017-12-10 21:04:36 +02:00
Valdis Vitolins 7d2341262e Documentation updates — more details for stressLength 2017-11-10 00:17:29 +02:00
Reece H. Dunn 2f8f125c68 Remove voice/language support for alphabet2.
This is not used by any of the espeak-ng voices and languages.
Additionally, this functionality would be superceded by support
for specifying the language used by different scripts in the
language argument on the command line.
2017-05-07 15:10:42 +01:00
Reece H. Dunn 0b0661cef0 Use the encoding.c tables for 8-bit encodings.
1.  Store the encoding enumeration values in the Translation
    object, instead of the charset table.

2.  Use the encoding.c charset table data instead of the ones
    in translate.c.

3.  Remove the charset language file option -- it is only used
    in the Arabic language file, but is used incorrectly there.

4.  Specify ISO 8859-6 for the 8-bit encoding for Arabic instead
    of UTF-8, so that espeakCHARS_8BIT and espeakCHARS_AUTO work
    correctly for Arabic.
2017-03-31 00:01:14 +01:00
Reece H. Dunn ea365af43c Remove the 'dictdialect' feature. 2017-02-05 17:03:44 +00:00
Reece H. Dunn 285e88c720 Move the language files to espeak-ng-data/lang. 2017-02-04 17:06:22 +00:00
Reece H. Dunn aa83a834b3 docs: clarify the 'dictionary' example in the voice documentation. 2016-12-31 16:31:26 +00:00
Valdis Vitolins 88f79b5177 Documentation: fix for TOC link 2016-12-15 07:49:46 +00:00
Jakub Wilk 0b96f8a91c Fix typos in documentation. 2016-10-19 16:47:51 +02:00
Valdis Vitolins 590c381492 Documentation: folder name updated from espeak-data to espeak-ng-data 2016-10-01 00:59:46 +03:00
Valdis Vitolins 16012ce5ea Documentation: cross-referenced links for dictrules 2016-08-18 22:48:14 +03:00
Reece H. Dunn b620f42775 voices: support a status annotation in voice files 2016-05-21 21:29:39 +01:00
Reece H. Dunn 7e3e2c3854 voices: support a maintainer annotation in voice files 2016-05-21 21:16:55 +01:00
Reece H. Dunn 91779563dd docs: improve the language code documentation 2016-05-21 20:57:10 +01:00
Reece H. Dunn 8a37ce4bf1 docs: restructure voices.md to avoid an extra level in the ToC structure. 2016-05-21 20:10:18 +01:00
Reece H. Dunn fec95643c3 docs: move the 'Voice Files Provided' section of voices.md to the top introduction section of the file. 2016-05-21 20:03:56 +01:00
Reece H. Dunn 517ad81166 docs: move the voice list examples to the man files. 2016-05-21 20:00:55 +01:00
Valdis Vitolins 845aaea00b Incorrect ranges for Voice Files fixed 2016-04-14 11:48:59 +03:00
Reece H. Dunn 77b5f6a1c0 Use BCP 47 conformant language codes for the languages and accents. 2016-01-23 18:41:00 +00:00
Reece H. Dunn 836ba71934 docs/voices.md cleanup 2016-01-20 20:30:52 +00:00
Valdis Vitolins d7dd8f4ee9 Documentation: words parameter documented for voice files. 2016-01-20 00:55:31 +02:00
Reece H. Dunn 6e77ed807d Fix and update the voices.md documentation. 2015-12-24 13:05:08 +00:00
Valdis Vitolins 5530cf85c8 Markdown document files cleaned up. 2015-12-23 21:16:58 +02:00
Valdis Vitolins 78aec60405 Initial conversion of documents from HTML to markdown 2015-12-21 23:18:54 +02:00