phonetic-languages-phonetics-basics: A library for working with generalized phonetic languages usage.

[ game, language, library, math, mit, phonetic-languages, phonetics, program, writing-systems ] [ Propose Tags ]

There already exists a Ukrainian implementation for the phonetic languages approach published at: https://hackage.haskell.org/package/phonetic-languages-simplified-examples-array. It is optimized for the Ukrainian only and needs to be rewritten for every new language mostly from scratch using it as a template. To avoid this boilerplate, this one is provided. It can be used for different languages and even for music or other fields. Now it combines the functionality of the r-glpk-phonetic-languages-ukrainian-durations and phonetic-languages-ukrainian-array and some dependencies of the mentioned one.


[Skip to Readme]
Versions [faq] 0.1.0.0, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.3.3.0, 0.3.4.0, 0.4.0.0, 0.5.0.0, 0.5.1.0, 0.6.0.0, 0.6.0.1, 0.6.1.0, 0.6.2.0 (info)
Change log ChangeLog.md
Dependencies base (>=4.8 && <4.15), foldable-ix (>=0.2 && <1), lists-flines (>=0.1.1 && <1), mmsyn2-array (>=0.1.3 && <1), mmsyn5 (>=0.5 && <1) [details]
License MIT
Copyright Oleksandr Zhabenko
Author OleksandrZhabenko
Maintainer olexandr543@yahoo.com
Category Language, Math, Game
Home page https://hackage.haskell.org/package/phonetic-languages-phonetics-basics
Uploaded by OleksandrZhabenko at 2021-05-03T21:08:37Z
Distributions NixOS:0.5.1.0
Executables pldPL
Downloads 1600 total (1600 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
Last success reported on 2021-05-03 [all 3 reports]

Modules

  • Data
    • Phonetic
      • Languages
        • Data.Phonetic.Languages.Base
        • Data.Phonetic.Languages.PrepareText
        • Data.Phonetic.Languages.SpecificationsRead
        • Data.Phonetic.Languages.Syllables
        • Data.Phonetic.Languages.Undefined
  • Numeric
    • Wrapper
      • R
        • GLPK
          • Phonetic
            • Languages
              • Numeric.Wrapper.R.GLPK.Phonetic.Languages.Durations

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for phonetic-languages-phonetics-basics-0.6.0.0

[back to package description]

The executable pldPL is intended to use the functionality of the :

  1. R programming language https://www.r-project.org/

  2. Rglpk library https://cran.r-project.org/web/packages/Rglpk/index.html

  3. GNU GLPK library https://www.gnu.org/software/glpk/glpk.html

For more information, please, see the documentation for them.

  • Some examples.

Let in the file words.txt you have the (phonetic language) words and their durations in seconds as pairs separated with whitespace at the lines.

Also let in the file controlData.txt you have control specifications, an example of syntaxis for which is in the file controlDataExample.txt.

Also let in the file gwrsys.txt you have GWritingSystemPRPLX specifications, an example of syntaxis for which is in the file gwrsysExample.txt.

Then the following commands can be variants of the usage of the pldPL executable.

  1. pldPL 0.001 0.001 0.01 0.02 words.txt controlData.txt gwrsys.txt 0.3 0.2 0.02 0.06 1.8 -1 0.01 0.01 1.5 1.5 1.5 1.5 1.5 1.5 | R --quiet --no-save

This variant tries to minimize the duration of the only one element belonging to the special phonetic language representation elements (-1 as the second parameter after the file name), tries to reduce the influence of the two other elements (the third and the fourth parameters as 0.01) and tries to somewhat make longer the 6 vowels (all the consonants have by that the default coefficients equal to 1.0) (a simple example, though the program supports also the more complicated ones).

  1. pldPL 0.001 0.001 0.01 0.02 words.txt controlData.txt gwrsys.txt 0.3 0.2 0.02 0.06 1.8 -1 0.01 0.01 2.5 2.5 2.5 2.5 2.5 2.5 | R --quiet --no-save

The same as the 1), but with more prolongation of the vowels.

  1. pldPL 0.001 0.001 0.01 0.02 words.txt controlData.txt gwrsys.txt 0.3 0.2 0.02 0.06 1.4 -1 0.01 0.01 2.5 2.5 2.5 2.5 2.5 2.5 | R --quiet --no-save

If the 2) gives you the not NULL result, then it is recommended to minimize the first parameter after the file name.

  1. pldPL 0.001 0.001 0.01 0.02 words.txt controlData.txt gwrsys.txt 0.3 0.2 0.02 0.06 1.6 -1 0.01 0.01 2.5 2.5 2.5 2.5 2.5 2.5 | R --quiet --no-save

If the previous gives NULL result, then try to somewhat increase the first parameter after the file name.

Therefore, using such a binary search for the single parameter above, try to find out the more precise value of the point where the pldPL gives not NULL result and then use the obtained result as the durations for the system of phonetic languages representations.

It is needed to be said that if omitted, the durations coefficients are equal to the default 1.0.

An example of the pldPL functionality already in use is the pldUkr executable of the r-glpk-phonetic-languages-ukrainian-durations package. For more information, please, refer to: https://hackage.haskell.org/package/r-glpk-phonetic-languages-ukrainian-durations


In the file EnglishConnected.txt in the source tarball there are English words the translations of which are intended to be concatenated to the next word in the phonetic language before applying sound processing so that the basic grammar is preserved.