How to learn pronunciation effectively with help of books? I'm learning Chinese on a book and it shows the words sometimes in Latin alphabet such as Ni-hao, but it doesn't show how to spell the word with the right pronunciation. Can someone help how I can learn the pronunciation and accent with the aid of the books I have?
I would consider it practically impossible to learn how to pronounce words correctly in Chinese without audio.  There's many obstacles:


The initial x of 需 (xū) doesn't seem to have an equivalent sound in English.  (Have you heard news reporters try to pronounce 习近平 (Xí Jìnpíng)?)
The final u in 出 (chū) and 去 (qù) are pronounced differently (compare their bopomofo), despite being represented by the same letter.
The difference between e.g. 上 (shàng) and 向 (xiàng) is very subtle, likewise for nasal vs. non-nasal finals, e.g. 京 (jīng) vs. 津 (jīn).
There's also tone sandhi, where the tone changes in words，e.g. your example 你好 may be written as two third tones (nǐ hǎo) but this changes to one second tone and one third tone (ní hǎo) when its pronounced.


It may be possible to benefit from knowledge of bopomofo.  However, it's like trying to fight with one arm tied behind your back.  It's vastly easier to simply listen to the sound on some video (or the book's accompanying CD); there's zillions of them available free online.