Skip to content

A PHP function that can convert Spanish words into phonetic transcription written with IPA phonetic symbols.

License

Notifications You must be signed in to change notification settings

easypronunciation/spanish-pronunciation-rules-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A PHP function that can convert Spanish words into phonetic transcription written with IPA phonetic symbols.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages