Browse Source

Fixes for intonation.md file and new paragraph for add_language.md

master
Valdis Vitolins 9 years ago
parent
commit
1f225e7cb2
2 changed files with 34 additions and 2 deletions
  1. 32
    0
      docs/add_language.md
  2. 2
    2
      docs/intonation.md

+ 32
- 0
docs/add_language.md View File

# Adding or Improving a Language # Adding or Improving a Language


# Table of contents

- [Language Code](#language-code) - [Language Code](#language-code)
- [Language Files](#language-files) - [Language Files](#language-files)
- [Voice File](#voice-file) - [Voice File](#voice-file)
- [Phoneme Definition File](#phoneme-definition-file) - [Phoneme Definition File](#phoneme-definition-file)
- [Dictionary Files](#dictionary-files) - [Dictionary Files](#dictionary-files)
- [Program Code](#program-code) - [Program Code](#program-code)
- [Compiling rules file for debugging](#compiling-rules-file-for-debugging)
- [Improving a Language](#improving-a-language) - [Improving a Language](#improving-a-language)


---------- ----------
during testing because most of the options can also be set in the voice during testing because most of the options can also be set in the voice
file in espeak-data/voices (see [Voice Files](voices.md)). file in espeak-data/voices (see [Voice Files](voices.md)).


## Compiling rules file for debugging

When `espeak-ng` is invoked with `-X` parameter, it shows more detailed trace of
chosen language rules for pronunciation. This trace can show line numbers also,
if language is compiled with `--compile-debug` option.

To do this, go to `espeak-ng` project root folder, then:

cd dictsource/
../src/espeak-ng --compile-debug=en

When invoked in following way:

es -ven -X "Test."

It will show:

--------------
Translate 'test'
1 5965: t [t]
1 2104: e [E]
1 5725: s [s]
1 5965: t [t]
t'Est

## Improving a Language ## Improving a Language


Listen carefully to the eSpeak voice. Try to identify what sounds wrong Listen carefully to the eSpeak voice. Try to identify what sounds wrong

+ 2
- 2
docs/intonation.md View File



`start pitch` give a pitch path for the stressed syllables of the head. `start pitch` give a pitch path for the stressed syllables of the head.


steps` is the maximum number of stressed syllables for which this applies. If
`steps` is the maximum number of stressed syllables for which this applies. If
there are additional stressed syllables, then the `headextend` statement is used there are additional stressed syllables, then the `headextend` statement is used
for them. for them.


headextend <percentage list> headextend <percentage list>


If the head contains more stressed syllables than is specified by `steps` is used. If the head contains more stressed syllables than is specified by `steps` is used.
Itmcontains up to 8 numbers which are used repeatedly for the additional stressed
It contains up to 8 numbers which are used repeatedly for the additional stressed
syllables. A value of 0 corresponds to the lower the `start pitch` values of the syllables. A value of 0 corresponds to the lower the `start pitch` values of the
`head` statement. 100 corresponds to the higher value. `head` statement. 100 corresponds to the higher value.



Loading…
Cancel
Save