A client side API for text-to-speech