Amazon Polly TTS code

Amazon Polly is doing that in more than 20 languages.
but I need a web service that my smart app will call and get the sound file dynamically.
so a form with textbox will not help me.