add tts API and test code