A PHP function that can convert Spanish words into phonetic transcription written with IPA phonetic symbols.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
LICENSE.md
README.md

README.md

spanish-pronunciation-rules-php

A PHP function that converts a Spanish word (UTF-8 encoded) into IPA phonetic transcription symbols.

This function is used in the Spanish phonetic transcription converter. The converter can also insert stress marks in words and takes in consideration sound changes at word boundaries (sandhi). This function can only convert individual words.

List of supported locales:

  • es_ES (Spain),
  • es_MX (Mexico).

spanishphonology - a port of the project to Javascript and Java made by Robert Fromont.

Sample Usage

$ipa = convert_spanish_word_to_phonetic_transcription ("amigo", "es_ES"); // returns "amiɣo"
$ipa = convert_spanish_word_to_phonetic_transcription ("pronunciación", "es_ES"); // returns "pɾonunθjaθjon"
$ipa = convert_spanish_word_to_phonetic_transcription ("pronunciación", "es_MX"); // returns "pɾonunsjasjon"

Author

Timur Baytukalov

Please feel free to contact me, if you want to report an error or suggest improvements.

License

GPL