GitHub - easypronunciation/spanish-pronunciation-rules-php: A PHP function that can convert Spanish words into phonetic transcription written with IPA phonetic symbols. (original) (raw)

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.

$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"

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