In the middle of a word it sounds more like "i". At the end and unstressed it is more of a schwa.

Петербург sounds like Питирбург.