From the paper, I am expecting a mild pH conditions. I am thinking that the final pH will depend on how you introduce N (using ammonia or others) into the solution.
I donot know exactly the way you want to prepare your sample. But, a suitable 'nitridation' of the condensed titania using ethylenediamine before calcination might be a simple method, especially for a post-grafting method. Plz check this reference out: Zhou, et al., Adv. Funct. Mater. 2011, 21, 1922–1930. Hope this works for you.