Welcome to English Forums! I assume you are referring to the case where a speaker has never seen or heard the word before. In that case, you can always guess on the basis of other words with similar spellings, but the only way to be sure is to look it up in the dictionary or ask someone else who can be trusted to know the correct pronunciation.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Anonymous(ie pneumonia (pronounced nimonia)Certainly not pronounced that way by a lot of English speakers. Many pronounce it as new-monia.
Anonymouspneumatic (pronounced noomatic))In North American pronunciation. In English pronunciation that is not North American, it is new-matic.
Anonymous