CMUdict works for the english language, but what if I want to count the syllables of content in another language?
You certainly can't do it in a general way for all languages, because different languages render sounds to text differently.
For example, the Hungarian word "vagy" looks like 2 syllables to an English speaker, but it's only one. And the English word "bike" would naturally be read as 2 syllables by speakers of many other languages.
Furthermore, for English you probably can't do this very accurately without a dictionary anyway, because English has so much bizarre variation in its spelling. For example, we pronounce the "oe" in "poet" as two distinct syllables, but only one in "does".  This is probably true of some other languages as well.
Is there anyway in python to count syllables without the use of a dictionary?