A slight tangent, but this is a personal peeve of mine: There should not be a space between syllables of the same word in pinyin.
Ie, it should be written "hanyu pinyin".
well i guess for the text based one it could be either. i assume most? people use hanyu pinyin to input characters anyway. but a speech bot would be more interesting.