O has three different ways that it can be pronounced.

I've been taught the following:

"Oh"- if it is stressed
"Ah" - at the beginning of the word, or if it immediately preceeds the stressed...