sodupath.com Logo
sodupath.com Research Paper
Speech Recognition & Computational Phonetics • Historical Genesis (2006 / 2026) • 16 min read

A Digitized Phoneme-to-Grapheme Conversion and Acoustic Feature Extraction Model for Spoken Sinhala: Integrating MATLAB Signal Processing with Abugida Orthographic Assembly

The 2006 University of Kelaniya foundational speech recognition research and its 20-year trajectory to modern deterministic NLP.

SP
Viraj Peduru Hewage
Digital Humanities & South Asian Language Technology
📌 Abstract

"Speech recognition in morphologically rich, low-resource languages poses profound theoretical and computational challenges. While Hidden Markov Models (HMMs) dominated the early 2000s, statistical acoustic models struggled to bridge the gap between acoustic variability and canonical orthographic representation in non-Latin scripts. In the Sinhala language—an insular Indo-Aryan language characterized by an alphasyllabic (Abugida) script, rich vowel length contrasts, and a complex consonantal inventory including prenasalized stops—phoneme-to-grapheme (P2G) transcription requires deterministic structural modeling. This monograph presents the foundational engineering and empirical validation of a digitized Phoneme-to-Grapheme conversion architecture developed at the University of Kelaniya in 2006. Utilizing MATLAB Digital Signal Processing and the COLEA speech analysis environment, acoustic speech signals from native speakers were segmented, normalized, and modeled using linear regression of energy curves (Y = p1 * x + p2). Acoustic parameters (linear slope p1, base energy p2, and norm of residuals) were extracted across all 40 segmental phonemes of spoken Sinhala (14 vowels and 26 consonants). To synthesize text from isolated and continuous sound units, we formulated the Phoneme Assemble Algorithm (PAA): a sliding three-unit buffer [P1, P2, P3] coupled with a two-dimensional phonological mapping matrix that deterministically governs the assembly of base consonants, inherent vowels, and diacritic vowel signs (පිලි). Finally, we provide a retrospective analysis connecting this 2006 signal-processing model with modern end-to-end neural speech models (Whisper, Wav2Vec 2.0) and the 2026 Sodupath deterministic proofreading engine, demonstrating how structural phoneme-grapheme coordination remains vital for eliminating neural hallucinations in low-resource computational linguistics."

CIPO Reg. No. 1250589 Department of Linguistics, University of Kelaniya (2006) | Sodupath Monograph Series (Paper 5)

Official Archival Milestone: The 20-Year Foundational Genesis of Sodupath.

Bilingual Abstract & සිංහල සාරාංශය

English: Speech recognition in morphologically rich, low-resource languages poses profound theoretical and computational challenges. While Hidden Markov Models (HMMs) served as the predominant stochastic paradigm of the early 2000s, statistical acoustic models struggled to bridge the gap between acoustic variability and canonical orthographic representation in non-Latin scripts. In the Sinhala language—an insular Indo-Aryan language characterized by an alphasyllabic (Abugida) script, rich vowel length contrasts, and a complex consonantal inventory including prenasalized stops—phoneme-to-grapheme (P2G) transcription requires deterministic structural modeling. This monograph presents the foundational engineering and empirical validation of a digitized Phoneme-to-Grapheme conversion architecture developed at the University of Kelaniya in 2006.

සිංහල සාරාංශය: ස්වභාවික භාෂා සැකසුම (NLP) සහ කථන හඳුනාගැනීම (Speech Recognition) විෂයයෙහි ලා සිංහල භාෂාවේ ශබ්ද විද්‍යාත්මක සංඥා සහ අක්ෂර වින්‍යාසය (Orthography) අතර පවතින සබඳතාව ගණිතමය වශයෙන් ආකෘතිගත කිරීම මෙම පර්යේෂණයේ අරමුණයි. 2006 වර්ෂයේදී කැලණිය විශ්වවිද්‍යාලයේදී සම්පාදනය කරන ලද මෙම පර්යේෂණය, සිංහල භාෂාව වෙනුවෙන් සංඥා සැකසුම් (MATLAB / COLEA Signal Processing) සහ ශබ්ද-අක්ෂර පරිවර්තන (Phoneme-to-Grapheme - P2G) ආකෘතියක් ගොඩනැගූ පුරෝගාමී ප්‍රයත්නයයි. මෙහිදී කථන සිංහලයේ ශබ්ද ඒකක 40 ම (ස්වර 14 සහ සඤ්ඤක අක්ෂර ඇතුළු ව්‍යංජන 26) ආවරණය වන පරිදි ධ්වනි විස්තාරය, ශක්ති මට්ටම් (Energy levels) සහ රේඛීය සංගුණක (Y = p1 * x + p2) විශ්ලේෂණය කර දත්ත සමුදායක් ගොඩනංවන ලදී. එම ශබ්ද සංඥා ලිඛිත අක්ෂර බවට පත් කිරීම සඳහා ත්‍රිත්ව බෆරයක් [P1, P2, P3] සහිත අක්ෂර එකලස් කිරීමේ ඇල්ගොරිතමය (Phoneme Assemble Algorithm - PAA) සහ ද්විමාන අනුකෘති සිතියම්කරණයක් හඳුන්වා දෙන ලදී.

1. Introduction & Theoretical Background

Speech recognition aims to accurately map raw continuous acoustic pressure waves into meaningful written orthographic representations. In 2006, the overwhelming consensus in Automatic Speech Recognition (ASR) centered on stochastic modeling, specifically Hidden Markov Models (HMMs) coupled with Gaussian Mixture Models (GMMs) (Rabiner & Juang, 1993; Jelinek, 1997). In HMM-based systems, decoding speech is fundamentally probabilistic:

W* = argmax_W   P(A | W) · P(W)

While this probabilistic formulation proved effective for English and European languages with massive statistical corpora, it encountered systemic obstacles when applied to morphologically complex, low-resource Asian languages. For English, the relation between spelling and sound is notoriously opaque, requiring extensive pronunciation dictionaries. Conversely, Sinhala (සිංහල)—an insular Indo-Aryan language spoken by over 17 million people—presents a transparent relationship between spoken phonemes and canonical graphemes in its basic phonetic realization, yet it employs an Abugida (alphasyllabary) script where vowels are not written as independent letters following consonants, but as post-, pre-, sub-, or circum-graphs (diacritics or පිලි / pili) anchored to a base consonantal glyph.

2. Phonological Architecture of Spoken Sinhala (40 Segmental Phonemes)

Spoken Sinhala (කථා සිංහල - Kathā Sinhala) possesses a distinct phonological inventory differing in several crucial dimensions from classical literary Sinhala (Karunathilake et al., 2004). The segmental inventory analyzed in this research consists of 40 segmental phonemes:

  • Vowels (14 Phonemes): 7 short/long pairs: /i, iː/ (ඉ, ඊ), /e, eː/ (එ, ඒ), /æ, æː/ (ඇ, ඈ), /a, aː/ (අ, ආ), /ə, əː/ (අ), /u, uː/ (උ, ඌ), /o, oː/ (ඔ, ඕ). The low-front vowel pair /æ, æː/ is typologically rare in Indo-Aryan and developed via historical umlaut.
  • Consonants (26 Phonemes): Velar (/k, g/), Palatal (/c, j/), Retroflex (/ʈ, ɖ/), Dental (/t, d/), Labial (/p, b/), Nasals (/m, n/), Liquids (/r, l/), Fricatives (/s, h, f/), and Glides (/y, v/).
  • Prenasalized Voiced Stops (සඤ්ඤක අක්ෂර): /ᵑɡ/ (ඟ), /ᶯɖ/ (ඬ), /ⁿd/ (ඳ), and /ᵐb/ (ඹ). Unlike nasal-stop consonant clusters (e.g. /mb/ in කම්බි), prenasalized stops have the temporal duration of a single voiced stop, where the velum is lowered only during the initial 15–25% of the closure duration.

3. Acoustic Signal Processing & Linear Energy Regression

The experimental framework was implemented in MATLAB utilizing specialized speech signal analysis modules (COLEA). Speech was captured via high-fidelity microphones, sampled at 16 kHz with 16-bit quantization. To capture the dynamic trajectory of acoustic intensity across each phoneme segment without requiring heavy computational parameterization, we formulated a linear regression curve fitting over the decibel energy contour:

Y = p1 · x + p2   (dB)

where x is the normalized temporal sample index, Y is measured energy in decibels (dB), p1 (Coefficient 1 - Slope) represents the rate of energy accretion or decay, p2 (Coefficient 2 - Intercept) represents baseline sound pressure level, and the Norm of Residuals (||r||) quantifies articulatory stability across the segment.

4. Empirical Trajectory Parameters Table

Table 1 outlines the empirical trajectory parameters obtained across representative Sinhala phonemes from native speaker recordings:

Context IPA Sinhala Train p1 Train p2 Norm ||r|| Test p1 Test p2
පසළොස්/a/අ-0.3849.544.33-0.4449.50
ආචාර්ය/aː/ආ-0.2348.844.29-0.5550.43
ඇම්බල්/æ/ඇ-0.9048.062.70-0.1748.06
කුඩය/u/උ-0.8649.804.57-0.1049.86
කඩය/k/ක-0.5946.393.21-0.0748.49
ගෙම්බා/g/ග1.2748.662.50-1.1248.66
තනතුර/t/ත3.1644.620.001.0148.35
දොරටුව/d/ද0.0849.210.961.0748.36
ළඟ/ᵑɡ/ඟ0.6151.691.540.2051.69
සවස/s/ස0.4749.902.720.0249.90

5. The Phoneme Assemble Algorithm (PAA) State Machine

The Phoneme Assemble Algorithm operates over a sliding three-member buffer [P1, P2, P3] to resolve whether incoming sound units compose independent vowel letters, consonant-vowel combinations (diacritics), or consonantal ligatures:

PAA State Transition:
• Rule 1 (Word-Initial Vowel): IF P1 ∈ Vowels AND Word-Initial ➔ Emit Independent Vowel (e.g. /a/ ➔ 'අ')
• Rule 2 (Consonant + Vowel): IF P1 ∈ Consonants AND P2 ∈ Vowels ➔ Emit Composite Akshara (e.g. /k/ + /i/ ➔ 'කි')
• Rule 3 (Consonant + Consonant): IF P1 ∈ Consonants AND P2 ∈ Consonants ➔ Append Virama (e.g. 'ක්') OR Ligature (e.g. Rakaransaya)

6. Twenty-Year Retrospective (2006–2026): From MATLAB to Sodupath

The 20-Year Evolution of Sinhala Computational Linguistics

Re-evaluating this 2006 research in 2026 demonstrates the vital importance of deterministic linguistic rules. Modern deep learning models like OpenAI Whisper or Meta MMS process audio through unconstrained neural representations, frequently hallucinating homophone substitutions (such as confusing dental න/ල with retroflex ණ/ළ) because acoustic signals alone cannot disambiguate classical literary grammar.

By uniting the 2006 acoustic-phonetic P2G pipeline with the 2026 Sodupath Deterministic NLP Engine (which enforces Sidath Sangarawa orthography and Nominative Agent Precedence), we bridge the gap between spoken acoustics and pristine literary grammar, establishing a culturally sovereign, zero-hallucination language stack.

7. References

  • Hewage, V. P. (2006). Develop a Digitized Phoneme to Grapheme Conversion Model for Sinhala Language. Master's Thesis, University of Kelaniya.
  • Karunathilake, W. S., Rajapaksha, R. M. W., & Wijethunga, R. (2004). Vāgvidyā Pravēśaya. S. Godage & Brothers, Colombo.
  • Rabiner, L., & Juang, B. H. (1993). Fundamentals of Speech Recognition. Prentice-Hall.
  • Decadt, B., et al. (2002). Phoneme-to-Grapheme conversion for out-of-vocabulary words. IEEE Workshop on Speech Synthesis.

Academic Citation & BibTeX

@article{sodupath_acoustic_phoneme_grapheme_conversion_sinhala,
  title={ A Digitized Phoneme-to-Grapheme Conversion and Acoustic Feature Extraction Model for Spoken Sinhala: Integrating MATLAB Signal Processing with Abugida Orthographic Assembly },
  author={ Viraj Peduru Hewage },
  journal={Sodupath South Asian Computational Linguistics Hub},
  year={2026},
  url={https://www.sodupath.com/research/acoustic-phoneme-grapheme-conversion-sinhala}
}

Test These Computational Rules Live

Experience the Sodupath rule engine in action. Paste complex Sinhala prose and analyze subject-verb concord, orthography, and segmentation in real-time.

Launch Live Editor ➔