I understand speechsynthesis is used to convert the text-to-speech. But is it officially provided by HTML5?
Yes. SpeechSynthesis is an interface for the Web Speech API and has very good browser support. HOWEVER, SpeechSynthesis is currently EXPERIMENTAL and it may change in ways that break current code. It is NOT recommended to be used in production as of writing this post.